Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/templates/spaceshipHover.oxt @ 12397

Last change on this file since 12397 was 12299, checked in by kofrey, 6 years ago

changed appearance of enemy

  • Property svn:eol-style set to native
File size: 4.5 KB
Line 
1<Template name=spaceshiphover>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshiphovercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 100
10   maxhealth         = 200
11   initialhealth     = 100
12
13   shieldhealth        = 25
14   initialshieldhealth = 25
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   collisiondamage = 20
39   enablecollisiondamage = true
40
41  >
42    <engines>
43      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
44    </engines>
45    <attached>
46      <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> 
47      <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/>       
48      <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/>   
49     
50    </attached>
51    <collisionShapes>
52      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
53    </collisionShapes>
54    <explosion>
55      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
56      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
57      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
58
59      <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
60      <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
61      <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
62      <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
63    </explosion>
64
65<?lua
66  include("../includes/weaponSettingsHover.oxi")
67?>
68  </SpaceShip>
69</Template>
70
71<Template name=spaceshiphovercameras defaults=0>
72  <SpaceShip>
73    <camerapositions>
74      <CameraPosition position="0,8, 5" drag=true mouselook=true />
75      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
76    </camerapositions>
77  </SpaceShip>
78</Template>
79
80<Template name=spaceshiphoverengine baseclass=Engine>
81  <MultiStateEngine
82   boostfactor    = 2
83
84   speedfront     =   90
85   speedback      =   90
86   speedleftright =   90
87   speedupdown    =   0
88
89   accelerationfront     =  500
90   accelerationbrake     =  500
91   accelerationback      =  500
92   accelerationleftright =  500
93   accelerationupdown    =  0
94  >
95    <EffectContainer condition="not idle">
96      <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 />
97      <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 />
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    </EffectContainer>
100    <EffectContainer condition="normal or boost">
101      <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" />
102     
103    </EffectContainer>
104    <EffectContainer condition="boost">
105      <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" />
106    </EffectContainer>
107    <EffectContainer condition="brake">
108      <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 />
109     
110    </EffectContainer>
111  </MultiStateEngine>
112</Template>
Note: See TracBrowser for help on using the repository browser.