Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickupsFS14/data/levels/templates/enemyInvader.oxt @ 10233

Last change on this file since 10233 was 9954, checked in by landauf, 11 years ago

moved all invader enemy templates into one file. fixed warning about duplicate definition of "spaceshipescortengine"

  • Property svn:eol-style set to native
File size: 5.8 KB
Line 
1<Template name=enemyinvader>
2  <InvaderEnemy
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
8
9   health            = 10
10   maxhealth         = 10
11   initialhealth     = 10
12
13   shieldhealth        = 10
14   initialshieldhealth = 10
15   maxshieldhealth     = 10
16   shieldabsorption    = 0.9
17   reloadrate          = 1
18   reloadwaittime      = 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              = 0.00001
37   linearDamping     = 0
38   angularDamping    = 0
39
40    collisiondamage = 100
41    enablecollisiondamage = true
42  >
43    <engines>
44      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipescortengine />
45      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine />
46    </engines>
47    <attached>
48      <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="swallow_mat.mesh" />
49      <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="escortWeapon.mesh" />
50    </attached>
51    <collisionShapes>
52      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
53      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
54      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
55      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
56    </collisionShapes>
57<?lua
58  include("../includes/invaderWeapon.oxi")
59?>
60  </InvaderEnemy>
61</Template>
62
63<Template name=enemyinvadershooter>
64  <InvaderEnemyShooter
65   hudtemplate            = spaceshiphud
66   camerapositiontemplate = spaceshipescortcameras
67   spawnparticlesource    = "Orxonox/fairytwirl"
68   spawnparticleduration  = 3
69   explosionchunks        = 4
70
71   health            = 20
72   maxhealth         = 20
73   initialhealth     = 20
74
75   shieldhealth        = 20
76   initialshieldhealth = 20
77   maxshieldhealth     = 20
78   shieldabsorption    = 0.9
79   reloadrate          = 1
80   reloadwaittime      = 1
81
82   primaryThrust     = 150
83   auxilaryThrust    = 30
84   rotationThrust    = 50
85
86   lift = 1;
87   stallSpeed = 220;
88
89   boostPower            = 20
90   boostPowerRate        = 1
91   boostRate             = 5
92   boostCooldownDuration = 10
93
94   shakeFrequency = 15
95   shakeAmplitude = 6
96
97   collisionType     = "dynamic"
98   mass              = 100
99   linearDamping     = 0
100   angularDamping    = 0
101
102    collisiondamage = 100
103    enablecollisiondamage = true
104  >
105    <engines>
106      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipescortengine />
107      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine />
108    </engines>
109    <attached>
110      <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="ghost.mesh" />
111      <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="escortWeapon.mesh" />
112    </attached>
113    <collisionShapes>
114      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
115      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
116      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
117      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
118    </collisionShapes>
119<?lua
120  include("../includes/invaderWeaponEnemy.oxi")
121?>
122  </InvaderEnemyShooter>
123</Template>
124
125<Template name=spaceshipescortengine baseclass=MultiStateEngine>
126  <MultiStateEngine
127   boostfactor    = 2.2
128
129   speedfront     = 200
130   speedback      =  70
131   speedleftright =  70
132   speedupdown    =  70
133
134   defEngineSndNormal = "sounds/Engine_low.ogg"
135   defEngineSndBoost = "sounds/Engine_high.ogg"
136
137   accelerationfront     = 700
138   accelerationbrake     = 700
139   accelerationback      =  125
140   accelerationleftright =  125
141   accelerationupdown    =  125
142  >
143    <EffectContainer condition="idle">
144      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
145    </EffectContainer>
146    <EffectContainer condition="not idle">
147      <FadingBillboard mainstate=activity active=false scale=0.09 position="12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
148      <FadingBillboard mainstate=activity active=false scale=0.09 position="-12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
149    </EffectContainer>
150    <EffectContainer condition="normal or brake">
151
152    </EffectContainer>
153    <EffectContainer condition="normal or boost">
154      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
155      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
156    </EffectContainer>
157    <EffectContainer condition="boost">
158      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
159      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, 0, 10" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
160    </EffectContainer>
161
162  </MultiStateEngine>
163</Template>
Note: See TracBrowser for help on using the repository browser.