Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/modularships/data/levels/templates/ModularSpaceShipTest.oxt @ 10053

Last change on this file since 10053 was 10053, checked in by noep, 10 years ago

Fixed yet another segfault (which we hadn't seen yet).
Cleared emptyLevel, created two testlevels (testing with boxes)

File size: 4.5 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   reloadrate          = 1
18   reloadwaittime      = 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,60" 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="three" position="0,-60,0" 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="four" position="0,0,-60" 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    </attached>
87   
88    <parts>
89        <ShipPart name="one" initialhealth="15" damageabsorption="1" />
90        <ShipPart name="two" initialhealth="15" damageabsorption="1" />
91        <ShipPart name="three" initialhealth="18" damageabsorption="1" />
92        <ShipPart name="four" initialhealth="20" damageabsorption="1" />
93    </parts>
94   
95    <collisionShapes>
96        <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
97    </collisionShapes>
98<?lua
99  include("../includes/weaponSettingsAssff.oxi")
100?>
101  </ModularSpaceShip>
102</Template>
103
104<Template name=spaceshipassffcameras defaults=0>
105  <ModularSpaceShip>
106    <camerapositions>
107      <CameraPosition position="0,10, 40" drag=true mouselook=true />
108    </camerapositions>
109  </ModularSpaceShip>
110</Template>
111
112<Template name=spaceshipassffengine baseclass=MultiStateEngine>
113  <MultiStateEngine
114   boostfactor    = 2
115
116   speedfront     = 150
117   speedback      =  50
118   speedleftright =  50
119   speedupdown    =  50
120
121   defEngineSndNormal = "sounds/Engine_low.ogg"
122   defEngineSndBoost = "sounds/Engine_high.ogg"
123   
124   accelerationfront     = 500
125   accelerationbrake     = 500
126   accelerationback      =  125
127   accelerationleftright =  125
128   accelerationupdown    =  125
129  >
130    <EffectContainer condition="idle">
131
132    </EffectContainer>
133    <EffectContainer condition="not idle">
134
135    </EffectContainer>
136    <EffectContainer condition="normal or brake">
137
138    </EffectContainer>
139    <EffectContainer condition="normal or boost">
140
141    </EffectContainer>
142    <EffectContainer condition="boost">
143
144    </EffectContainer>
145  </MultiStateEngine>
146</Template>
Note: See TracBrowser for help on using the repository browser.