Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS13/data/levels/templates/enemyInvaderShooter.oxt @ 9928

Last change on this file since 9928 was 9900, checked in by smerkli, 11 years ago

Merged the invaders branch of Florian

File size: 4.8 KB
Line 
1<Template name=enemyinvadershooter>
2  <InvaderEnemyShooter
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
8
9   health            = 20
10   maxhealth         = 20
11   initialhealth     = 20
12
13   shieldhealth        = 20
14   initialshieldhealth = 20
15   maxshieldhealth     = 20
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              = 100
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="ghost.mesh" />
49      <Model position="0,0,0" yaw=180 pitch=270 roll=0 scale=2 mesh="escortWeapon.mesh" />
50<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
51
52swallow_mat.mesh
53"ghost.mesh"
54
55<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
56<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
57<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
58    </attached>
59    <collisionShapes>
60      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
61      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
62      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
63      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
64    </collisionShapes>
65<?lua
66  include("../includes/invaderWeaponEnemy.oxi")
67?>
68  </InvaderEnemyShooter>
69</Template>
70
71<!-- <Template name=spaceshipescortcameras defaults=0>
72  <InvaderEnemyShooter>
73    <camerapositions>
74      <CameraPosition position="0,15, 60" drag=true mouselook=true />
75      <CameraPosition position="0,20, 90" drag=true mouselook=true />
76      <CameraPosition position="0,30,120" drag=true mouselook=true />
77      <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
78    </camerapositions>
79  </InvaderEnemyShooter>
80</Template> -->
81
82<Template name=spaceshipescortengine baseclass=MultiStateEngine>
83  <MultiStateEngine
84   boostfactor    = 2.2
85
86   speedfront     = 200
87   speedback      =  70
88   speedleftright =  70
89   speedupdown    =  70
90
91   defEngineSndNormal = "sounds/Engine_low.ogg"
92   defEngineSndBoost = "sounds/Engine_high.ogg"
93
94   accelerationfront     = 700
95   accelerationbrake     = 700
96   accelerationback      =  125
97   accelerationleftright =  125
98   accelerationupdown    =  125
99  >
100    <EffectContainer condition="idle">
101      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
102    </EffectContainer>
103    <EffectContainer condition="not idle">
104      <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 />
105      <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 />
106    </EffectContainer>
107    <EffectContainer condition="normal or brake">
108
109    </EffectContainer>
110    <EffectContainer condition="normal or boost">
111      <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" />
112      <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" />
113    </EffectContainer>
114    <EffectContainer condition="boost">
115      <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" />
116      <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" />
117    </EffectContainer>
118
119  </MultiStateEngine>
120</Template>
Note: See TracBrowser for help on using the repository browser.