Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/particles2/data/levels/templates/spaceship_ghost.oxt @ 6331

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

ghost weapons 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
47<?lua
48  include("includes/weaponsettings_ghost.oxi")
49?>
50
51  </SpaceShip>
52</Template>
53
54<Template name=spaceshipghostengine baseclass=MultiStateEngine>
55  <MultiStateEngine
56   boostfactor    = 2
57
58   speedfront     = 150
59   speedback      =  50
60   speedleftright =  50
61   speedupdown    =  50
62
63   accelerationfront     = 300
64   accelerationbrake     = 300
65   accelerationback      =  100
66   accelerationleftright =  100
67   accelerationupdown    =  100
68  >
69
70
71    <forward>
72      <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" />
73      <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" />
74      <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" />
75      <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" />
76      <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" />
77      <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" />
78    </forward>
79    <boost>
80      <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" />
81      <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" />
82      <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" />
83      <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" />
84      <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" />
85      <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" />
86    </boost>
87  </MultiStateEngine>
88</Template>
89
Note: See TracBrowser for help on using the repository browser.