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 | 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 = 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 | <explosion > |
---|
58 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
59 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
60 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
61 | |
---|
62 | <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" /> |
---|
63 | <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
64 | <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
65 | <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
66 | <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
67 | </explosion> |
---|
68 | <?lua |
---|
69 | include("../includes/invaderWeapon.oxi") |
---|
70 | ?> |
---|
71 | </InvaderEnemy> |
---|
72 | </Template> |
---|
73 | |
---|
74 | <Template name=enemyinvadershooter> |
---|
75 | <InvaderEnemyShooter |
---|
76 | hudtemplate = spaceshiphud |
---|
77 | camerapositiontemplate = spaceshipescortcameras |
---|
78 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
79 | spawnparticleduration = 3 |
---|
80 | explosionchunks = 4 |
---|
81 | |
---|
82 | health = 20 |
---|
83 | maxhealth = 20 |
---|
84 | initialhealth = 20 |
---|
85 | |
---|
86 | shieldhealth = 20 |
---|
87 | initialshieldhealth = 20 |
---|
88 | maxshieldhealth = 20 |
---|
89 | shieldabsorption = 0.9 |
---|
90 | shieldrechargerate = 1 |
---|
91 | shieldrechargewaittime = 1 |
---|
92 | |
---|
93 | primaryThrust = 150 |
---|
94 | auxilaryThrust = 30 |
---|
95 | rotationThrust = 50 |
---|
96 | |
---|
97 | lift = 1; |
---|
98 | stallSpeed = 220; |
---|
99 | |
---|
100 | boostPower = 20 |
---|
101 | boostPowerRate = 1 |
---|
102 | boostRate = 5 |
---|
103 | boostCooldownDuration = 10 |
---|
104 | |
---|
105 | shakeFrequency = 15 |
---|
106 | shakeAmplitude = 6 |
---|
107 | |
---|
108 | collisionType = "dynamic" |
---|
109 | mass = 100 |
---|
110 | linearDamping = 0 |
---|
111 | angularDamping = 0 |
---|
112 | |
---|
113 | collisiondamage = 100 |
---|
114 | enablecollisiondamage = true |
---|
115 | > |
---|
116 | <engines> |
---|
117 | <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipescortengine /> |
---|
118 | <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine /> |
---|
119 | </engines> |
---|
120 | <attached> |
---|
121 | <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="ghost.mesh" /> |
---|
122 | <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="escortWeapon.mesh" /> |
---|
123 | </attached> |
---|
124 | <collisionShapes> |
---|
125 | <BoxCollisionShape position="0 ,0 , 3" halfExtents="10, 4,8" /> |
---|
126 | <BoxCollisionShape position="12.6 ,-2, 3" halfExtents="2.8,2.8,11"/> |
---|
127 | <BoxCollisionShape position="-12.6,-2, 3" halfExtents="2.8,2.8,11"/> |
---|
128 | <BoxCollisionShape position="0, 0,-12" halfExtents="4 , 4 ,7" /> |
---|
129 | </collisionShapes> |
---|
130 | <?lua |
---|
131 | include("../includes/invaderWeaponEnemy.oxi") |
---|
132 | ?> |
---|
133 | </InvaderEnemyShooter> |
---|
134 | </Template> |
---|
135 | |
---|
136 | <Template name=spaceshipescortengine baseclass=MultiStateEngine> |
---|
137 | <MultiStateEngine |
---|
138 | boostfactor = 2.2 |
---|
139 | |
---|
140 | speedfront = 200 |
---|
141 | speedback = 70 |
---|
142 | speedleftright = 70 |
---|
143 | speedupdown = 70 |
---|
144 | |
---|
145 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
146 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
147 | |
---|
148 | accelerationfront = 700 |
---|
149 | accelerationbrake = 700 |
---|
150 | accelerationback = 125 |
---|
151 | accelerationleftright = 125 |
---|
152 | accelerationupdown = 125 |
---|
153 | > |
---|
154 | <EffectContainer condition="idle"> |
---|
155 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
156 | </EffectContainer> |
---|
157 | <EffectContainer condition="not idle"> |
---|
158 | <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 /> |
---|
159 | <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 /> |
---|
160 | </EffectContainer> |
---|
161 | <EffectContainer condition="normal or brake"> |
---|
162 | |
---|
163 | </EffectContainer> |
---|
164 | <EffectContainer condition="normal or boost"> |
---|
165 | <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" /> |
---|
166 | <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" /> |
---|
167 | </EffectContainer> |
---|
168 | <EffectContainer condition="boost"> |
---|
169 | <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" /> |
---|
170 | <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" /> |
---|
171 | </EffectContainer> |
---|
172 | |
---|
173 | </MultiStateEngine> |
---|
174 | </Template> |
---|