Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10760 was 10760, checked in by fvultier, 9 years ago

2 problems fixed: The collidesAgainst function in the hovership get now properly called. The Hoverhalls have a collisionShape that works.

File size: 4.9 KB
Line 
1<Template name=spaceshiphover>
2  <HoverShip
3   camerapositiontemplate = spaceshiphovercameras
4   spawnparticlesource    = "Orxonox/fairytwirl"
5   spawnparticleduration  = 3
6   explosionchunks        = 6
7
8   health            = 100
9   maxhealth         = 200
10   initialhealth     = 100
11
12   shieldhealth        = 25
13   initialshieldhealth = 25
14   maxshieldhealth     = 40
15   shieldabsorption    = 0.6
16   reloadrate          = 2
17   reloadwaittime      = 0.5
18
19   primaryThrust     = 100
20   auxilaryThrust    = 30
21   rotationThrust    = 25
22
23   lift = 1;
24   stallSpeed = 220;
25
26   boostPower            = 10
27   boostPowerRate        = 1
28   boostRate             = 5
29   boostCooldownDuration = 10
30
31   collisionType     = "dynamic"
32   mass              = 100
33   linearDamping     = 0.7
34   angularDamping    = 0.9999999
35  >
36    <engines>
37      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
38    </engines>
39    <attached>
40      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
41      <BlinkingBillboard position=" 12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 />
42      <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"/>
43      <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"/>
44      <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"/>
45    </attached>
46    <collisionShapes>
47      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
48      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
49      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
50      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
51      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
52      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
53    </collisionShapes>
54
55<?lua
56  include("../includes/weaponSettingsPirate.oxi")
57?>
58  </HoverShip>
59</Template>
60
61<Template name=spaceshiphovercameras defaults=0>
62  <SpaceShip>
63    <camerapositions>
64      <CameraPosition position="0,8, 60" drag=true mouselook=true />
65      <CameraPosition position="0,16, 120" drag=true mouselook=true />
66      <CameraPosition position="0,24,180" drag=true mouselook=true />
67      <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
68    </camerapositions>
69  </SpaceShip>
70</Template>
71
72<Template name=spaceshiphoverengine baseclass=MultiStateEngine>
73  <MultiStateEngine
74   boostfactor    = 2
75
76   speedfront     = 150
77   speedback      =  50
78   speedleftright =  50
79   speedupdown    =  50
80
81   accelerationfront     = 500
82   accelerationbrake     = 500
83   accelerationback      =  125
84   accelerationleftright =  125
85   accelerationupdown    =  125
86  >
87    <EffectContainer condition="not idle">
88      <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 />
89      <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 />
90      <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 />
91    </EffectContainer>
92    <EffectContainer condition="normal or boost">
93      <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" />
94      <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" />
95    </EffectContainer>
96    <EffectContainer condition="boost">
97      <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" />
98    </EffectContainer>
99    <EffectContainer condition="brake">
100      <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 />
101      <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 />
102    </EffectContainer>
103  </MultiStateEngine>
104</Template>
Note: See TracBrowser for help on using the repository browser.