Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tgidronFS16/data/levels/templates/spaceshipHover.oxt @ 11495

Last change on this file since 11495 was 11201, checked in by tgidron, 8 years ago

Final Project

  • 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     = 2000
21   auxilaryThrust    = 1
22   rotationThrust    = 45
23
24   jumpBoost = 350
25
26   lift = 1;
27   stallSpeed = 1400;
28
29   boostPower            = 10
30   boostPowerRate        = 1
31   boostRate             = 5
32   boostCooldownDuration = 10
33
34   collisionType     = "dynamic"
35   mass              = 1000000
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,-120" mesh="hovership_body.mesh" scale="30" yaw=180/>       
44      <Model position="0,0,-120" mesh="hovership_engine.mesh" scale="30" yaw=180/>     
45      <Model position="0,0,-120" mesh="hovership_gun.mesh" scale="30" yaw=180/>
46     
47    </attached>
48    <collisionShapes>
49      <BoxCollisionShape position="0,-12, 42" halfExtents="49, 24 ,180" />
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=12 />
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, 48, 30" drag=true mouselook=true />
72      <CameraPosition position="0, 48, 30" 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     = 1400
82   speedback      =  800
83   speedleftright =  700
84   speedupdown    =  700
85
86   accelerationfront     = 1000
87   accelerationbrake     = 1000
88   accelerationback      =  250
89   accelerationleftright =  350
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.