Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/templates/spaceshipzombie.oxt @ 12394

Last change on this file since 12394 was 12390, checked in by cwaupoti, 6 years ago

Zombie can now approach, tried to add waves

File size: 4.9 KB
RevLine 
[12300]1<Template name=spaceshipzombie>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshiphovercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
[12390]9   health            = 200
[12300]10   maxhealth         = 200
[12390]11   initialhealth     = 100
[12300]12
13   shieldhealth        = 25
14   initialshieldhealth = 0
15   maxshieldhealth     = 40
16   shieldabsorption    = 0.6
17   reloadrate          = 2
18   reloadwaittime      = 0.5
19
20   primaryThrust     = 200
21   auxilaryThrust    = 30
22   rotationThrust    = 20
23
24   jumpBoost = 90
25
26   lift = 1;
27   stallSpeed = 220;
28
29   boostPower            = 30
30   boostPowerRate        = 1
31   boostRate             = 5
32   boostCooldownDuration = 10
33
34   collisionType     = "dynamic"
35   mass              = 100
[12390]36   linearDamping     = 0
37   angularDamping    = 0
[12300]38
39
40  >
41    <engines>
42      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
43    </engines>
44  <attached>
45      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="escortShip.mesh" />
46      <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=4 mesh="escortWeapon.mesh" />
47     
48    </attached>
49    <collisionShapes>
50      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
51      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
52      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
53      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
54    </collisionShapes>
55    <explosion >
56      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
57      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
58      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
59
60      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
61      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
62      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
63      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
64      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
65    </explosion>
66
67<!-- <?lua
68  include("../includes/weaponSettingsHover.oxi")
69?> -->
[12390]70    <controller>
71      <WaypointPatrolController alertnessradius=2000 attackradius=1 team=1 >
72         <waypoints>
73          <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" />
74
75          </waypoints>
76     
77      </WaypointPatrolController>
78
79    </controller>
80
[12300]81  </SpaceShip>
82</Template>
83
84<Template name=spaceshiphovercameras defaults=0>
85  <SpaceShip>
86    <camerapositions>
87      <CameraPosition position="0,8, 5" drag=true mouselook=true />
88      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
89    </camerapositions>
90  </SpaceShip>
91</Template>
92
93<Template name=spaceshiphoverengine baseclass=Engine>
94  <MultiStateEngine
95   boostfactor    = 2
96
97   speedfront     =   90
98   speedback      =   90
99   speedleftright =   90
100   speedupdown    =   0
101
102   accelerationfront     =  500
103   accelerationbrake     =  500
104   accelerationback      =  500
105   accelerationleftright =  500
106   accelerationupdown    =  0
107  >
108    <EffectContainer condition="not idle">
109      <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
110      <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
111      <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
112    </EffectContainer>
113    <EffectContainer condition="normal or boost">
114      <Backlight mainstate=activity active=false scale=0.8 name=bltest position=" 0, 0,  40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
115     
116    </EffectContainer>
117    <EffectContainer condition="boost">
118      <Backlight mainstate=activity active=false scale=0.8 name=bltest position="  0, 0, 40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
119    </EffectContainer>
120    <EffectContainer condition="brake">
121      <FadingBillboard mainstate=activity active=false scale=0.5 position=" 0, 0, 40" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
122     
123    </EffectContainer>
124  </MultiStateEngine>
125</Template>
[12390]126
Note: See TracBrowser for help on using the repository browser.