Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoKart_HS18/data/levels/templates/spaceshipHover.oxt @ 12066

Last change on this file since 12066 was 12066, checked in by emustafa, 6 years ago

OrxoKartKart controls optimized

  • Property svn:eol-style set to native
File size: 4.4 KB
RevLine 
[12066]1
[10760]2<Template name=spaceshiphover>
[10784]3  <SpaceShip
[10893]4   hudtemplate            = spaceshiphoverhud
[10760]5   camerapositiontemplate = spaceshiphovercameras
6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 100
11   maxhealth         = 200
12   initialhealth     = 100
13
14   shieldhealth        = 25
15   initialshieldhealth = 25
16   maxshieldhealth     = 40
17   shieldabsorption    = 0.6
18   reloadrate          = 2
19   reloadwaittime      = 0.5
20
[12066]21   primaryThrust     = 600
[12056]22   auxilaryThrust    = 300
[12066]23   rotationThrust    = 50
[10760]24
[12066]25   jumpBoost = 30
[10784]26
[10760]27   lift = 1;
[12056]28   stallSpeed = 500;
[10760]29
[12056]30   boostPower            = 30
[10760]31   boostPowerRate        = 1
32   boostRate             = 5
33   boostCooldownDuration = 10
34
35   collisionType     = "dynamic"
[11495]36   mass              = 100
[10784]37   linearDamping     = 0.2
[10760]38   angularDamping    = 0.9999999
39  >
40    <engines>
41      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
42    </engines>
43    <attached>
[11495]44      <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> 
45      <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/>       
46      <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/>   
[10943]47     
[10760]48    </attached>
49    <collisionShapes>
[11495]50      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
[10760]51    </collisionShapes>
[10962]52    <explosion>
53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
[11495]54      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
[10962]55      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
[10760]56
[10962]57      <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
58      <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
59      <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
60      <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
61    </explosion>
62
[10760]63<?lua
[10947]64  include("../includes/weaponSettingsHover.oxi")
[10760]65?>
[10784]66  </SpaceShip>
[10760]67</Template>
68
69<Template name=spaceshiphovercameras defaults=0>
70  <SpaceShip>
71    <camerapositions>
[11495]72      <CameraPosition position="0,8, 5" drag=true mouselook=true />
73      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
[10760]74    </camerapositions>
75  </SpaceShip>
76</Template>
77
[10784]78<Template name=spaceshiphoverengine baseclass=Engine>
[10760]79  <MultiStateEngine
80   boostfactor    = 2
81
[12056]82   speedfront     = 200
[11495]83   speedback      =  40
84   speedleftright =  40
85   speedupdown    =  40
[10760]86
[11495]87   accelerationfront     = 500
88   accelerationbrake     = 500
89   accelerationback      =  125
90   accelerationleftright =  125
[10760]91   accelerationupdown    =  125
92  >
93    <EffectContainer condition="not idle">
[10943]94      <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 />
95      <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 />
96      <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]97    </EffectContainer>
98    <EffectContainer condition="normal or boost">
[10943]99      <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" />
100     
[10760]101    </EffectContainer>
102    <EffectContainer condition="boost">
[10943]103      <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]104    </EffectContainer>
105    <EffectContainer condition="brake">
[10943]106      <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 />
107     
[10760]108    </EffectContainer>
109  </MultiStateEngine>
110</Template>
Note: See TracBrowser for help on using the repository browser.