Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12155 was 12155, checked in by emustafa, 5 years ago

fixed speed

File size: 4.4 KB
Line 
1
2<Template name=OrxoKartKart>
3  <SpaceShip
4   hudtemplate            = spaceshiporxokarthud
5   camerapositiontemplate = spaceshipcameras
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   lift = 1;
25   stallSpeed = 500;
26
27   boostPower            = 10
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   collisionType     = "dynamic"
33   mass              = 100
34   linearDamping     = 0.2
35   angularDamping    = 0.9999999
36  >
37    <engines>
38      <MultiStateEngine position=" 0, 0, 0" template=spaceshipengine />
39    </engines>
40    <attached>
41      <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> 
42      <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/>       
43      <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/>   
44     
45    </attached>
46    <collisionShapes>
47      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
48    </collisionShapes>
49    <explosion>
50      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
51      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
53
54      <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
55      <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
56      <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
57      <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
58    </explosion>
59
60<?lua
61  include("../includes/weaponSettingsHover.oxi")
62?>
63  </SpaceShip>
64</Template>
65 
66<Template name=spaceshipcameras defaults=0>
67  <SpaceShip>
68    <camerapositions>
69      <CameraPosition position="0,8, 5" drag=True mouselook=False />
70      <CameraPosition position="0,8,5" yaw="180" drag=True mouselook=False />
71    </camerapositions>
72  </SpaceShip>
73</Template>
74
75<Template name=spaceshipengine baseclass=Engine>
76  <MultiStateEngine
77   boostfactor    = 2
78
79   speedfront     =  300
80   speedback      =  40
81   speedleftright =  300
82   speedupdown    =  40
83
84   accelerationfront     = 300
85   accelerationbrake     = 300
86   accelerationback      =  125
87   accelerationleftright =  125
88   accelerationupdown    =  125
89  >
90    <EffectContainer condition="not idle">
91      <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 />
92      <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 />
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    </EffectContainer>
95    <EffectContainer condition="normal or boost">
96      <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" />
97     
98    </EffectContainer>
99    <EffectContainer condition="boost">
100      <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" />
101    </EffectContainer>
102    <EffectContainer condition="brake">
103      <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 />
104     
105    </EffectContainer>
106  </MultiStateEngine>
107</Template>
Note: See TracBrowser for help on using the repository browser.