Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/ModularSpaceShipTest.oxt @ 11183

Last change on this file since 11183 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1<Template name=ModularSpaceShipTest>
2  <ModularSpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipassffcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 1000
10   maxhealth         = 2000
11   initialhealth     = 1000
12
13   shieldhealth        = 30
14   initialshieldhealth = 30
15   maxshieldhealth     = 50
16   shieldabsorption    = 0.8
17   shieldrechargerate  = 1
18   shieldrechargewaittime = 1
19
20   primaryThrust     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 15
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   shakeFrequency = 15
33   shakeAmplitude = 9
34
35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39
40   explosionSound = "sounds/Explosion2.ogg"
41  >
42    <engines>
43      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
44      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
45    </engines>
46    <attached>
47   
48        <Model position="0,0,0" mesh="crate.mesh" scale3D="6,6,6" />
49       
50        <StaticEntity name="one" position="0,60,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
51            <attached>
52                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
53            </attached>
54            <collisionShapes>
55                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
56            </collisionShapes>
57        </StaticEntity>
58       
59        <StaticEntity name="two" position="0,0,62" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
60            <attached>
61                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
62            </attached>
63            <collisionShapes>
64                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
65            </collisionShapes>
66        </StaticEntity>
67       
68        <StaticEntity name="two_2" position="0,0,124" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
69            <attached>
70                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
71            </attached>
72            <collisionShapes>
73                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
74            </collisionShapes>
75        </StaticEntity>
76       
77        <StaticEntity name="three" position="0,-60,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
78            <attached>
79                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
80            </attached>
81            <collisionShapes>
82                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
83            </collisionShapes>
84        </StaticEntity>
85       
86        <StaticEntity name="four" position="0,0,-59" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
87            <attached>
88                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
89            </attached>
90            <collisionShapes>
91                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
92            </collisionShapes>
93        </StaticEntity>
94       
95        <StaticEntity name="four_2" position="0,0,-118" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
96            <attached>
97                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
98            </attached>
99            <collisionShapes>
100                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
101            </collisionShapes>
102        </StaticEntity>
103
104    </attached>
105   
106    <parts>
107        <ShipPart name="one" initialhealth="20" damageabsorption="1" />
108        <ShipPart name="two" initialhealth="20" damageabsorption="1" />
109        <ShipPart name="two_2" initialhealth="20" damageabsorption="1" />
110        <ShipPart name="three" initialhealth="20" damageabsorption="1" />
111        <ShipPart name="four" initialhealth="20" damageabsorption="1" />
112        <ShipPart name="four_2" initialhealth="20" damageabsorption="1" />
113    </parts>
114   
115    <collisionShapes>
116        <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
117    </collisionShapes>
118
119    <explosion >
120      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
121      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
122      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
123    </explosion>
124<?lua
125  include("../includes/weaponSettingsAssff.oxi")
126?>
127  </ModularSpaceShip>
128</Template>
129
130<Template name=spaceshipassffcameras defaults=0>
131  <ModularSpaceShip>
132    <camerapositions>
133      <CameraPosition position="0,10, 40" drag=true mouselook=true />
134    </camerapositions>
135  </ModularSpaceShip>
136</Template>
137
138<Template name=spaceshipassffengine baseclass=MultiStateEngine>
139  <MultiStateEngine
140   boostfactor    = 2
141
142   speedfront     = 150
143   speedback      =  50
144   speedleftright =  50
145   speedupdown    =  50
146
147   defEngineSndNormal = "sounds/Engine_low.ogg"
148   defEngineSndBoost = "sounds/Engine_high.ogg"
149   
150   accelerationfront     = 500
151   accelerationbrake     = 500
152   accelerationback      =  125
153   accelerationleftright =  125
154   accelerationupdown    =  125
155  >
156    <EffectContainer condition="idle">
157
158    </EffectContainer>
159    <EffectContainer condition="not idle">
160
161    </EffectContainer>
162    <EffectContainer condition="normal or brake">
163
164    </EffectContainer>
165    <EffectContainer condition="normal or boost">
166
167    </EffectContainer>
168    <EffectContainer condition="boost">
169
170    </EffectContainer>
171  </MultiStateEngine>
172</Template>
Note: See TracBrowser for help on using the repository browser.