Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS15/data/levels/templates/spaceshipHover.oxt @ 10961

Last change on this file since 10961 was 10960, checked in by maxima, 9 years ago

Merged presentation and hover branches. Hover minigame works fine.

File size: 3.6 KB
RevLine 
[10760]1<Template name=spaceshiphover>
[10784]2  <SpaceShip
[10893]3   hudtemplate            = spaceshiphoverhud
[10760]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
[10928]20   primaryThrust     = 200
[10760]21   auxilaryThrust    = 30
22   rotationThrust    = 25
23
[10928]24   jumpBoost = 90
[10784]25
[10760]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
[10784]36   linearDamping     = 0.2
[10760]37   angularDamping    = 0.9999999
38  >
39    <engines>
40      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
41    </engines>
42    <attached>
[10943]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     
[10760]47    </attached>
48    <collisionShapes>
[10952]49      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
[10760]50    </collisionShapes>
51
52<?lua
[10947]53  include("../includes/weaponSettingsHover.oxi")
[10760]54?>
[10784]55  </SpaceShip>
[10760]56</Template>
57
58<Template name=spaceshiphovercameras defaults=0>
59  <SpaceShip>
60    <camerapositions>
[10893]61      <CameraPosition position="0,8, 5" drag=true mouselook=true />
62      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
[10760]63    </camerapositions>
64  </SpaceShip>
65</Template>
66
[10784]67<Template name=spaceshiphoverengine baseclass=Engine>
[10760]68  <MultiStateEngine
69   boostfactor    = 2
70
[10893]71   speedfront     = 90
72   speedback      =  40
73   speedleftright =  40
74   speedupdown    =  40
[10760]75
76   accelerationfront     = 500
77   accelerationbrake     = 500
78   accelerationback      =  125
79   accelerationleftright =  125
80   accelerationupdown    =  125
81  >
82    <EffectContainer condition="not idle">
[10943]83      <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 />
84      <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 />
85      <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 />
[10760]86    </EffectContainer>
87    <EffectContainer condition="normal or boost">
[10943]88      <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" />
89     
[10760]90    </EffectContainer>
91    <EffectContainer condition="boost">
[10943]92      <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" />
[10760]93    </EffectContainer>
94    <EffectContainer condition="brake">
[10943]95      <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 />
96     
[10760]97    </EffectContainer>
98  </MultiStateEngine>
99</Template>
Note: See TracBrowser for help on using the repository browser.