Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipHover.oxt @ 11183

Last change on this file since 11183 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

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