Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceship_ghost.oxt @ 5988

Last change on this file since 5988 was 5988, checked in by dave, 15 years ago

Ghost files added

File size: 5.1 KB
Line 
1<Template name=spaceshipghost>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipghostcameras
5   engine                 = spaceshipghostengine
6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 100
11   maxhealth         = 200
12   initialhealth     = 100
13
14   primaryThrust     = 100;
15   auxilaryThrust    = 30;
16   rotationThrust    = 25;
17
18   collisionType     = "dynamic"
19   mass              = 100
20   linearDamping     = 0.7
21   angularDamping    = 0.9999999
22  >
23
24    <attached>
25      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" />
26    </attached>
27    <collisionShapes>
28      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
29      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
30      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
31      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
32      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
33      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
34    </collisionShapes>
35
36  </SpaceShip>
37</Template>
38
39<Template name=spaceshipghostcameras defaults=0>
40  <SpaceShip>
41    <camerapositions>
42      <CameraPosition position="0,20,80" drag=true mouselook=true />
43      <CameraPosition position="0,40,160" drag=true mouselook=true />
44      <CameraPosition position="0,50,200" drag=true mouselook=true />
45    </camerapositions>
46  </SpaceShip>
47</Template>
48
49<Template name=spaceshipghostengine baseclass=MultiStateEngine>
50  <MultiStateEngine
51   boostfactor    = 2
52
53   speedfront     = 150
54   speedback      =  50
55   speedleftright =  50
56   speedupdown    =  50
57
58   accelerationfront     = 300
59   accelerationbrake     = 300
60   accelerationback      =  100
61   accelerationleftright =  100
62   accelerationupdown    =  100
63  >
64
65    <forward>
66      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.06, 3.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
67      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.06, 3.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
68      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.06, 5.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
69      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.06, 5.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
70      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.86, 4.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
71      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.86, 4.66, 9.6" colour="1, 1, 1, 0.4" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
72    </forward>
73    <boost>
74      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.06, 5.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
75      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.06, 5.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
76      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.06, 3.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
77      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.06, 3.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
78      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.86, 4.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
79      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.86, 4.66, 11.6" colour="0.5, 0.85, 0.5, 0.1" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
80    </boost>
81  </MultiStateEngine>
82</Template>
83
Note: See TracBrowser for help on using the repository browser.