Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12373 was 12267, checked in by kofrey, 6 years ago

working version

  • Property svn:eol-style set to native
File size: 4.6 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            = 100
10   maxhealth         = 100
11   initialhealth     = 100
12 
13
14   primaryThrust     = 25
15   auxilaryThrust    = 25
16   rotationThrust    = 25
17
18   lift = 1;
19   stallSpeed = 100;
20
21
22
23   shakeFrequency = 20
24   shakeAmplitude = 6
25
26   collisionType     = "dynamic"
27   mass              = 100
28   linearDamping     = 0.7
29   angularDamping    = 0.9999999
30  >
31    <engines>
32      <MultiStateEngine position="0,0,0" template=spaceshipghostengine/>
33    </engines>
34    <attached>
35      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" />
36    </attached>
37    <collisionShapes>
38      <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
39    </collisionShapes>
40    <explosion >
41      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
42      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
43      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
44
45      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
46      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
47      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
48      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
49      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
50    </explosion>
51<!-- <?lua
52  include("../includes/weaponSettingsGhost.oxi")
53?>
54 -->  </SpaceShip>
55</Template>
56
57<Template name=spaceshipghostcameras defaults=0>
58  <SpaceShip>
59    <camerapositions>
60      <CameraPosition position="0,20,80" drag=true mouselook=true />
61      <CameraPosition position="0,40,160" drag=true mouselook=true />
62      <CameraPosition position="0,50,200" drag=true mouselook=true />
63    </camerapositions>
64  </SpaceShip>
65</Template>
66
67<Template name=spaceshipghostengine baseclass=MultiStateEngine>
68  <MultiStateEngine
69   boostfactor    = 2
70
71   speedfront     =  50
72   speedback      =  50
73   speedleftright =  50
74   speedupdown    =  0
75
76   accelerationfront     = 1000
77   accelerationbrake     = 300
78   accelerationback      =  100
79   accelerationleftright =  100
80   accelerationupdown    =  0
81  >
82    <EffectContainer condition="normal or boost">
83      <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" />
84      <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" />
85    </EffectContainer>
86    <EffectContainer condition="boost">
87      <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" />
88      <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" />
89    </EffectContainer>
90    <EffectContainer condition="not idle">
91      <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 />
92      <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 />
93    </EffectContainer>
94    <EffectContainer condition="brake">
95      <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 />
96      <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 />
97    </EffectContainer>
98</MultiStateEngine>
99</Template>
100
Note: See TracBrowser for help on using the repository browser.