Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12300 was 12300, checked in by kofrey, 5 years ago

try

File size: 4.6 KB
Line 
1<Template name=spaceshipzombie>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshiphovercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 60
10   maxhealth         = 200
11   initialhealth     = 60
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
36   linearDamping     = 0.2
37   angularDamping    = 0.9999999
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?> -->
70  </SpaceShip>
71</Template>
72
73<Template name=spaceshiphovercameras defaults=0>
74  <SpaceShip>
75    <camerapositions>
76      <CameraPosition position="0,8, 5" drag=true mouselook=true />
77      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
78    </camerapositions>
79  </SpaceShip>
80</Template>
81
82<Template name=spaceshiphoverengine baseclass=Engine>
83  <MultiStateEngine
84   boostfactor    = 2
85
86   speedfront     =   90
87   speedback      =   90
88   speedleftright =   90
89   speedupdown    =   0
90
91   accelerationfront     =  500
92   accelerationbrake     =  500
93   accelerationback      =  500
94   accelerationleftright =  500
95   accelerationupdown    =  0
96  >
97    <EffectContainer condition="not idle">
98      <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 />
99      <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 />
100      <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 />
101    </EffectContainer>
102    <EffectContainer condition="normal or boost">
103      <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" />
104     
105    </EffectContainer>
106    <EffectContainer condition="boost">
107      <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" />
108    </EffectContainer>
109    <EffectContainer condition="brake">
110      <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 />
111     
112    </EffectContainer>
113  </MultiStateEngine>
114</Template>
Note: See TracBrowser for help on using the repository browser.