Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/templates/spaceshipHXY.oxt @ 11845

Last change on this file since 11845 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1<Template name=spaceshipHXY>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipHXYcameras
5   engine                 = spaceshipHXYengine
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    <engines>
24      <MultiStateEngine position=" 0, 0, 0" template=spaceshipHXYengine />
25    </engines>
26    <attached>
27      <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.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    <explosion >
38      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
39      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
40      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
41
42      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
43      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
44      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
45      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
46      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
47    </explosion>
48
49<?lua
50  include("../includes/weaponSettingsHXY.oxi")
51?>
52  </SpaceShip>
53</Template>
54
55<Template name=spaceshipHXYcameras defaults=0>
56  <SpaceShip>
57    <camerapositions>
58      <CameraPosition position="0,8, 60" drag=true mouselook=true />
59      <CameraPosition position="0,16, 120" drag=true mouselook=true />
60      <CameraPosition position="0,24,180" drag=true mouselook=true />
61      <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
62    </camerapositions>
63  </SpaceShip>
64</Template>
65
66<Template name=spaceshipHXYengine baseclass=MultiStateEngine>
67  <MultiStateEngine
68   boostfactor    = 6
69
70   speedfront     = 150
71   speedback      =  50
72   speedleftright =  50
73   speedupdown    =  50
74
75   defEngineSndNormal = "sounds/Engine_low.ogg"
76   defEngineSndBoost = "sounds/Engine_high.ogg"
77
78   accelerationfront     = 500
79   accelerationbrake     = 500
80   accelerationback      =  125
81   accelerationleftright =  125
82   accelerationupdown    =  125
83  >
84    <EffectContainer condition="idle">
85      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
86    </EffectContainer>
87    <EffectContainer condition="not idle">
88
89    </EffectContainer>
90    <EffectContainer condition="normal or brake">
91
92    </EffectContainer>
93    <EffectContainer condition="normal or boost">
94      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
95      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
96    </EffectContainer>
97    <EffectContainer condition="boost">
98      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
99      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
100    </EffectContainer>
101    <EffectContainer condition="brake">
102      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
103      <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
104      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
105      <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
106    </EffectContainer>
107  </MultiStateEngine>
108</Template>
Note: See TracBrowser for help on using the repository browser.