Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/output/data/levels/templates/spaceshipGhost.oxt @ 9215

Last change on this file since 9215 was 8820, checked in by landauf, 13 years ago

fixed some stuff that became visible after the recent changes in the output system:

  • fixed ogre exception because of included files in xml template files (it was searching for templates/includes/*.oxi instead of includes/*.oxi)
  • initializing worldentities with mass 1 instead of 0 to avoid a warning
  • Loader::open now also supports a bVerbose flag to hide output for internal xml files (like resource files)
  • Property svn:eol-style set to native
File size: 4.0 KB
RevLine 
[5988]1<Template name=spaceshipghost>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipghostcameras
[8706]5
[5988]6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 100
11   maxhealth         = 200
12   initialhealth     = 100
13
[6417]14   primaryThrust     = 600;
[5988]15   auxilaryThrust    = 30;
16   rotationThrust    = 25;
17
18   collisionType     = "dynamic"
19   mass              = 100
20   linearDamping     = 0.7
21   angularDamping    = 0.9999999
22  >
[8706]23    <engines>
24      <MultiStateEngine position="0,0,0" template=spaceshipghostengine/>
25    </engines>
[5988]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>
[6417]37<?lua
[8820]38  include("../includes/weaponSettingsGhost.oxi")
[6417]39?>
[5988]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
[6417]57   speedfront     = 600
[5988]58   speedback      =  50
59   speedleftright =  50
60   speedupdown    =  50
61
[6417]62   accelerationfront     = 700
[5988]63   accelerationbrake     = 300
64   accelerationback      =  100
65   accelerationleftright =  100
66   accelerationupdown    =  100
67  >
[6417]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">
[7071]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 />
[6417]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>
[5988]85</Template>
86
Note: See TracBrowser for help on using the repository browser.