Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipHover.oxt @ 12118

Last change on this file since 12118 was 11495, checked in by patricwi, 7 years ago

reverted commit from merge with tgidronFS16 because failed to compile

  • 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
[11495]20   primaryThrust     = 200
21   auxilaryThrust    = 30
22   rotationThrust    = 25
[10760]23
[11495]24   jumpBoost = 90
[10784]25
[10760]26   lift = 1;
[11495]27   stallSpeed = 220;
[10760]28
29   boostPower            = 10
30   boostPowerRate        = 1
31   boostRate             = 5
32   boostCooldownDuration = 10
33
34   collisionType     = "dynamic"
[11495]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>
[11495]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/>   
[10943]46     
[10760]47    </attached>
48    <collisionShapes>
[11495]49      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
[10760]50    </collisionShapes>
[10962]51    <explosion>
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
[11495]53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
[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>
[11495]71      <CameraPosition position="0,8, 5" drag=true mouselook=true />
72      <CameraPosition position="0,8,5" 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
[11495]81   speedfront     = 90
82   speedback      =  40
83   speedleftright =  40
84   speedupdown    =  40
[10760]85
[11495]86   accelerationfront     = 500
87   accelerationbrake     = 500
88   accelerationback      =  125
89   accelerationleftright =  125
[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.