Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SciptableControllerFS15/data/levels/templates/ModularSpaceShipTest.oxt @ 10618

Last change on this file since 10618 was 10262, checked in by landauf, 10 years ago

eol-style native. no changes in code.

  • Property svn:eol-style set to native
File size: 5.4 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,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<?lua
119  include("../includes/weaponSettingsAssff.oxi")
120?>
121  </ModularSpaceShip>
122</Template>
123
124<Template name=spaceshipassffcameras defaults=0>
125  <ModularSpaceShip>
126    <camerapositions>
127      <CameraPosition position="0,10, 40" drag=true mouselook=true />
128    </camerapositions>
129  </ModularSpaceShip>
130</Template>
131
132<Template name=spaceshipassffengine baseclass=MultiStateEngine>
133  <MultiStateEngine
134   boostfactor    = 2
135
136   speedfront     = 150
137   speedback      =  50
138   speedleftright =  50
139   speedupdown    =  50
140
141   defEngineSndNormal = "sounds/Engine_low.ogg"
142   defEngineSndBoost = "sounds/Engine_high.ogg"
143   
144   accelerationfront     = 500
145   accelerationbrake     = 500
146   accelerationback      =  125
147   accelerationleftright =  125
148   accelerationupdown    =  125
149  >
150    <EffectContainer condition="idle">
151
152    </EffectContainer>
153    <EffectContainer condition="not idle">
154
155    </EffectContainer>
156    <EffectContainer condition="normal or brake">
157
158    </EffectContainer>
159    <EffectContainer condition="normal or boost">
160
161    </EffectContainer>
162    <EffectContainer condition="boost">
163
164    </EffectContainer>
165  </MultiStateEngine>
166</Template>
Note: See TracBrowser for help on using the repository browser.