Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/data/levels/templates/spaceship_ghost.oxt @ 6518

Last change on this file since 6518 was 6417, checked in by rgrieder, 15 years ago

Merged presentation2 branch back to trunk.
Major new features:

  • Actual GUI with settings, etc.
  • Improved space ship steering (human interaction)
  • Rocket fire and more particle effects
  • Advanced sound framework
  • Property svn:eol-style set to native
File size: 3.9 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     = 600;
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<?lua
36  include("includes/weaponsettings_ghost.oxi")
37?>
38  </SpaceShip>
39</Template>
40
41<Template name=spaceshipghostcameras defaults=0>
42  <SpaceShip>
43    <camerapositions>
44      <CameraPosition position="0,20,80" drag=true mouselook=true />
45      <CameraPosition position="0,40,160" drag=true mouselook=true />
46      <CameraPosition position="0,50,200" drag=true mouselook=true />
47    </camerapositions>
48  </SpaceShip>
49</Template>
50
51<Template name=spaceshipghostengine baseclass=MultiStateEngine>
52  <MultiStateEngine
53   boostfactor    = 2
54
55   speedfront     = 600
56   speedback      =  50
57   speedleftright =  50
58   speedupdown    =  50
59
60   accelerationfront     = 700
61   accelerationbrake     = 300
62   accelerationback      =  100
63   accelerationleftright =  100
64   accelerationupdown    =  100
65  >
66    <EffectContainer condition="normal or boost">
67      <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" />
68      <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" />
69    </EffectContainer>
70    <EffectContainer condition="boost">
71      <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" />
72      <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" />
73    </EffectContainer>
74    <EffectContainer condition="not idle">
75      <Backlight 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 />
76      <Backlight 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 />
77    </EffectContainer>
78    <EffectContainer condition="brake">
79      <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 />
80      <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 />
81    </EffectContainer>
82</MultiStateEngine>
83</Template>
84
Note: See TracBrowser for help on using the repository browser.