Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/animated_space_boundaries/data/levels/templates/spaceshipGhost.oxt @ 11353

Last change on this file since 11353 was 8589, checked in by dafrick, 14 years ago

Merging bigships branch into presentation branch.

  • Property svn:eol-style set to native
File size: 4.0 KB
Line 
1<Template name=spaceshipghost>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipghostcameras
5
6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 100
11   maxhealth         = 200
12   initialhealth     = 100
13
14   primaryThrust     = 600;
15   auxilaryThrust    = 30;
16   rotationThrust    = 25;
17
18   collisionType     = "dynamic"
19   mass              = 100
20   linearDamping     = 0.7
21   angularDamping    = 0.9999999
22  >
23    <engines>
24      <MultiStateEngine position="0,0,0" template=spaceshipghostengine/>
25    </engines>
26    <attached>
27      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" />
28    </attached>
29    <collisionShapes>
30      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
31      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
32      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
33      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
34      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
35      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
36    </collisionShapes>
37<?lua
38  include("includes/weaponSettingsGhost.oxi")
39?>
40  </SpaceShip>
41</Template>
42
43<Template name=spaceshipghostcameras defaults=0>
44  <SpaceShip>
45    <camerapositions>
46      <CameraPosition position="0,20,80" drag=true mouselook=true />
47      <CameraPosition position="0,40,160" drag=true mouselook=true />
48      <CameraPosition position="0,50,200" drag=true mouselook=true />
49    </camerapositions>
50  </SpaceShip>
51</Template>
52
53<Template name=spaceshipghostengine baseclass=MultiStateEngine>
54  <MultiStateEngine
55   boostfactor    = 2
56
57   speedfront     = 600
58   speedback      =  50
59   speedleftright =  50
60   speedupdown    =  50
61
62   accelerationfront     = 700
63   accelerationbrake     = 300
64   accelerationback      =  100
65   accelerationleftright =  100
66   accelerationupdown    =  100
67  >
68    <EffectContainer condition="normal or boost">
69      <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" />
70      <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" />
71    </EffectContainer>
72    <EffectContainer condition="boost">
73      <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" />
74      <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" />
75    </EffectContainer>
76    <EffectContainer condition="not idle">
77      <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 />
78      <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 />
79    </EffectContainer>
80    <EffectContainer condition="brake">
81      <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 />
82      <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 />
83    </EffectContainer>
84</MultiStateEngine>
85</Template>
86
Note: See TracBrowser for help on using the repository browser.