Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/templates/spaceshipGhost.oxt @ 12216

Last change on this file since 12216 was 12216, checked in by cwaupoti, 5 years ago

Mouse fixed on horizontal axis, added opponent with halth points, adjusted parameters

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
1<Template name=spaceshipghost>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipghostcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 30
10   maxhealth         = 50
11   initialhealth     = 30
12
13   shieldhealth        = 100
14   initialshieldhealth = 100
15   maxshieldhealth     = 150
16   shieldabsorption    = 0.9
17   shieldrechargerate  = 3
18   shieldrechargewaittime = 0.0
19
20   primaryThrust     = 600
21   auxilaryThrust    = 30
22   rotationThrust    = 25
23
24   lift = 1;
25   stallSpeed = 100;
26
27   boostPower            = 30
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 15
31
32   shakeFrequency = 20
33   shakeAmplitude = 6
34
35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39  >
40    <engines>
41      <MultiStateEngine position="0,0,0" template=spaceshipghostengine/>
42    </engines>
43    <attached>
44      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" />
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" />
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
53
54      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
55      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
56      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
57      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
58      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
59    </explosion>
60<?lua
61  include("../includes/weaponSettingsHover.oxi")
62?>
63  </SpaceShip>
64</Template>
65
66<Template name=spaceshipghostcameras defaults=0>
67  <SpaceShip>
68    <camerapositions>
69      <CameraPosition position="0,20,80" drag=true mouselook=true />
70      <CameraPosition position="0,40,160" drag=true mouselook=true />
71      <CameraPosition position="0,50,200" drag=true mouselook=true />
72    </camerapositions>
73  </SpaceShip>
74</Template>
75
76<Template name=spaceshipghostengine baseclass=MultiStateEngine>
77  <MultiStateEngine
78   boostfactor    = 2
79
80   speedfront     =  25
81   speedback      =  50
82   speedleftright =  50
83   speedupdown    =  0
84
85   accelerationfront     = 1000
86   accelerationbrake     = 300
87   accelerationback      =  100
88   accelerationleftright =  100
89   accelerationupdown    =  100
90  >
91    <EffectContainer condition="normal or boost">
92      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
93      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
94    </EffectContainer>
95    <EffectContainer condition="boost">
96      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
97      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
98    </EffectContainer>
99    <EffectContainer condition="not idle">
100      <FadingBillboard mainstate=activity active=false scale=0.4 position="7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
101      <FadingBillboard mainstate=activity active=false scale=0.4 position="-7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
102    </EffectContainer>
103    <EffectContainer condition="brake">
104      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
105      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
106    </EffectContainer>
107</MultiStateEngine>
108</Template>
109
Note: See TracBrowser for help on using the repository browser.