Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hoverHS15/data/levels/templates/spaceshipHover.oxt @ 10926

Last change on this file since 10926 was 10926, checked in by meierman, 8 years ago

Fully functional

File size: 5.1 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     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 25
23
24   jumpBoost = 30
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,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
44      <BlinkingBillboard position=" 12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 />
45      <BlinkingBillboard position="-12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="90"/>
46      <BlinkingBillboard position=" 8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="30"/>
47      <BlinkingBillboard position="-8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="60"/>
48    </attached>
49    <collisionShapes>
50      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
51      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
52      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
53      <BoxCollisionShape position="13,-10,0"  halfExtents="3, 1, 2" />
54      <BoxCollisionShape position="-13,-10,0" halfExtents="3, 1, 2" />
55      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
56      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
57      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
58    </collisionShapes>
59
60<?lua
61  include("../includes/weaponSettingsPirate.oxi")
62?>
63  </SpaceShip>
64</Template>
65
66<Template name=spaceshiphovercameras defaults=0>
67  <SpaceShip>
68    <camerapositions>
69      <CameraPosition position="0,8, 5" drag=true mouselook=true />
70      <CameraPosition position="0,8, 60" drag=true mouselook=true />
71      <CameraPosition position="0,60,10" pitch="-80" 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, -4, -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, -4, -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, -4, -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.4 name=bltest position=" 13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
99      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
100    </EffectContainer>
101    <EffectContainer condition="boost">
102      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="  0,  5, 15.5" colour="1.0, 0.65, 0.2, 1.0" width=16 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.1 position=" 4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
106      <FadingBillboard mainstate=activity active=false scale=0.1 position="-4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
107    </EffectContainer>
108  </MultiStateEngine>
109</Template>
Note: See TracBrowser for help on using the repository browser.