Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11283 was 11201, checked in by tgidron, 9 years ago

Final Project

  • Property svn:eol-style set to native
File size: 4.4 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
[11184]20   primaryThrust     = 2000
[11151]21   auxilaryThrust    = 1
[11168]22   rotationThrust    = 45
[10760]23
[11201]24   jumpBoost = 350
[10784]25
[10760]26   lift = 1;
[11184]27   stallSpeed = 1400;
[10760]28
29   boostPower            = 10
30   boostPowerRate        = 1
31   boostRate             = 5
32   boostCooldownDuration = 10
33
34   collisionType     = "dynamic"
[11192]35   mass              = 1000000
[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>
[11184]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/>
[10943]46     
[10760]47    </attached>
48    <collisionShapes>
[11192]49      <BoxCollisionShape position="0,-12, 42" halfExtents="49, 24 ,180" />
[10760]50    </collisionShapes>
[10962]51    <explosion>
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
[11192]53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=12 />
[10962]54      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
[10760]55
[10962]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
[10760]62<?lua
[10947]63  include("../includes/weaponSettingsHover.oxi")
[10760]64?>
[10784]65  </SpaceShip>
[10760]66</Template>
67
68<Template name=spaceshiphovercameras defaults=0>
69  <SpaceShip>
70    <camerapositions>
[11184]71      <CameraPosition position="0, 48, 30" drag=true mouselook=true />
72      <CameraPosition position="0, 48, 30" yaw="180" drag=true mouselook=true />
[10760]73    </camerapositions>
74  </SpaceShip>
75</Template>
76
[10784]77<Template name=spaceshiphoverengine baseclass=Engine>
[10760]78  <MultiStateEngine
79   boostfactor    = 2
80
[11184]81   speedfront     = 1400
82   speedback      =  800
[11192]83   speedleftright =  700
84   speedupdown    =  700
[10760]85
[11184]86   accelerationfront     = 1000
87   accelerationbrake     = 1000
[11151]88   accelerationback      =  250
[11192]89   accelerationleftright =  350
[10760]90   accelerationupdown    =  125
91  >
92    <EffectContainer condition="not idle">
[10943]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 />
[10760]96    </EffectContainer>
97    <EffectContainer condition="normal or boost">
[10943]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     
[10760]100    </EffectContainer>
101    <EffectContainer condition="boost">
[10943]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" />
[10760]103    </EffectContainer>
104    <EffectContainer condition="brake">
[10943]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     
[10760]107    </EffectContainer>
108  </MultiStateEngine>
109</Template>
Note: See TracBrowser for help on using the repository browser.