Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoKart_HS18/data/levels/templates/OrxoKartKart.oxt @ 12108

Last change on this file since 12108 was 12079, checked in by ottka, 6 years ago

fixed HUD

File size: 4.4 KB
RevLine 
[12071]1
2<Template name=OrxoKartKart>
3  <SpaceShip
[12079]4   hudtemplate            = spaceshiporxokarthud
[12071]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
21   primaryThrust     = 600
22   auxilaryThrust    = 300
23   rotationThrust    = 50
24
25   jumpBoost = 30
26
27   lift = 1;
28   stallSpeed = 500;
29
30   boostPower            = 30
31   boostPowerRate        = 1
32   boostRate             = 5
33   boostCooldownDuration = 10
34
35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.2
38   angularDamping    = 0.9999999
39  >
40    <engines>
41      <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
42    </engines>
43    <attached>
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/>   
47     
48    </attached>
49    <collisionShapes>
50      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
51    </collisionShapes>
52    <explosion>
53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
54      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
55      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
56
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
63<?lua
64  include("../includes/weaponSettingsHover.oxi")
65?>
66  </SpaceShip>
67</Template>
68
69<Template name=spaceshiphovercameras defaults=0>
70  <SpaceShip>
71    <camerapositions>
72      <CameraPosition position="0,8, 5" drag=true mouselook=true />
73      <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
74    </camerapositions>
75  </SpaceShip>
76</Template>
77
78<Template name=spaceshiphoverengine baseclass=Engine>
79  <MultiStateEngine
80   boostfactor    = 2
81
82   speedfront     = 200
83   speedback      =  40
84   speedleftright =  40
85   speedupdown    =  40
86
87   accelerationfront     = 500
88   accelerationbrake     = 500
89   accelerationback      =  125
90   accelerationleftright =  125
91   accelerationupdown    =  125
92  >
93    <EffectContainer condition="not idle">
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 />
97    </EffectContainer>
98    <EffectContainer condition="normal or boost">
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     
101    </EffectContainer>
102    <EffectContainer condition="boost">
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" />
104    </EffectContainer>
105    <EffectContainer condition="brake">
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     
108    </EffectContainer>
109  </MultiStateEngine>
110</Template>
Note: See TracBrowser for help on using the repository browser.