Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/PresentationFS18/data/levels/templates/spaceshipOrxyRoad.oxt @ 12050

Last change on this file since 12050 was 12014, checked in by patricwi, 7 years ago

Merged OrxyRoad

File size: 5.8 KB
Line 
1<Template name=spaceshiporxyroad>
2  <OrxyRoadShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
8
9   health            = 40
10   maxhealth         = 40
11   initialhealth     = 40
12
13   shieldhealth        = 20
14   initialshieldhealth = 20
15   maxshieldhealth     = 20
16   shieldabsorption    = 0.1
17   shieldrechargerate  = 1
18   shieldrechargewaittime = 1
19
20   primaryThrust     = 150
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 20
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   shakeFrequency = 15
33   shakeAmplitude = 6
34
35   collisionType     = "dynamic"
36   mass              = 4200000
37   linearDamping     = 0.9999999
38   angularDamping    = 0.9999999
39
40   collisiondamage = 100
41   enablecollisiondamage = true
42   
43  >
44    <engines>
45      <MultiStateEngine position=" 15.2, 0, 12" template=spaceshipinvaderengine />
46      <MultiStateEngine position="-15.2, 0, 0" template=spaceshipinvaderengine />
47    </engines>
48    <attached>
49      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=8 mesh="escortShip.mesh" />       <!-- EXPERIMENTAL: changed scale form 4 to 8 /-->
50      <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=8 mesh="escortWeapon.mesh" />
51<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
52<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
53<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
54<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
55    </attached>
56    <collisionShapes>
57      <BoxCollisionShape position="0    ,0 ,  6" halfExtents="20,   8,16" />
58      <BoxCollisionShape position="25.2 ,-4,  6" halfExtents="5.6,5.6,22"/>
59      <BoxCollisionShape position="-25.2,-4,  6" halfExtents="5.6,5.6,22"/>
60      <BoxCollisionShape position="0,     0,-24" halfExtents="8  , 8 ,14
61        " />
62    </collisionShapes>
63    <explosion >
64      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
65      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
66      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
67
68      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
69      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
70      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
71      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
72      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
73    </explosion>
74<?lua
75  include("../includes/invaderWeapon.oxi")
76?>
77  </OrxyRoadShip>
78</Template>
79
80<Template name=spaceshipescortcameras defaults=0>
81  <OrxyRoadShip>
82    <camerapositions>
83                <CameraPosition position="400,400,720" direction="-0.4, -0.4, -1" yaw="0" drag=false mouselook=true />
84                <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
85                <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
86                <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
87    </camerapositions>
88  </OrxyRoadShip>
89</Template>
90
91<Template name=spaceshipinvaderengine baseclass=MultiStateEngine>
92  <MultiStateEngine
93   boostfactor    = 2.2
94
95   speedfront     = 200
96   speedback      =  70
97   speedleftright =  70
98   speedupdown    =  70
99
100   defEngineSndNormal = "sounds/Engine_low.ogg"
101   defEngineSndBoost = "sounds/Engine_high.ogg"
102
103   accelerationfront     = 700
104   accelerationbrake     = 700
105   accelerationback      =  125
106   accelerationleftright =  125
107   accelerationupdown    =  125
108  >
109    <EffectContainer condition="idle">
110      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
111    </EffectContainer>
112    <EffectContainer condition="not idle">
113      <FadingBillboard mainstate=activity active=false scale=0.18 position="24, -4, 26" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
114      <FadingBillboard mainstate=activity active=false scale=0.18 position="-24, -4, 26" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
115    </EffectContainer>
116    <EffectContainer condition="normal or brake">
117
118    </EffectContainer>
119    <EffectContainer condition="normal or boost">
120      <Backlight mainstate=activity active=false scale=0.66 name=bltest position=" 24, 0, 20" colour="0.2, 1.0, 0.65, 1.0" width=30 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
121      <Backlight mainstate=activity active=false scale=0.66 name=bltest position=" -24, 0, 20" colour="0.2, 1.0, 0.65, 1.0" width=30 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
122    </EffectContainer>
123    <EffectContainer condition="boost">
124      <Backlight mainstate=activity active=false scale=0.66 name=bltest position=" 24, 0, 20" colour="0.6, 0.8, 0.75, 0.7" width=50 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
125      <Backlight mainstate=activity active=false scale=0.66 name=bltest position=" -24, 0, 20" colour="0.6, 0.8, 0.75, 0.7" width=50 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
126    </EffectContainer>
127   
128
129  </MultiStateEngine>
130</Template>
Note: See TracBrowser for help on using the repository browser.