Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/campaignHS15/data/levels/templates/spaceshipShuttle.oxt @ 10836

Last change on this file since 10836 was 10804, checked in by paulsc, 9 years ago

Started work on spaceshipShuttle.oxt, furthered quests.

File size: 4.5 KB
Line 
1<Template name=spaceshipShuttle>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipTransportercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 2000
10   maxhealth         = 2500
11   initialhealth     = 2000
12
13   primaryThrust     = 120;
14   auxilaryThrust    = 20;
15   rotationThrust    = 30;
16
17   collisionType     = "dynamic"
18   mass              = 1000
19   linearDamping     = 0.7
20   angularDamping    = 0.9999999
21  >
22    <engines>
23      <MultiStateEngine position=" 0, 0, 0" template=spaceshipTransporterengine />
24    </engines>
25    <attached>
26      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
27    </attached>
28    <collisionShapes>
29      <!--TODO: real collision shapes -->
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
38<?lua
39  include("../includes/weaponSettingsTransporter.oxi")
40?>
41  </SpaceShip>
42</Template>
43
44<Template name=spaceshipTransportercameras defaults=0>
45  <SpaceShip>
46    <camerapositions>
47      <CameraPosition position="0,90,350" drag=true mouselook=true />
48      <CameraPosition position="0,150, 400" drag=true mouselook=true />
49      <CameraPosition position="0,200,550" drag=true mouselook=true />
50      <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
51    </camerapositions>
52  </SpaceShip>
53</Template>
54
55<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
56  <MultiStateEngine
57   boostfactor    = 2
58
59   speedfront     = 120
60   speedback      =  20
61   speedleftright =  20
62   speedupdown    =  20
63
64   defEngineSndNormal = "sounds/Engine_low.ogg"
65   defEngineSndBoost = "sounds/Engine_high.ogg"
66
67   accelerationfront     = 40
68   accelerationbrake     = 40
69   accelerationback      = 20
70   accelerationleftright =  20
71   accelerationupdown    =  20
72  >
73    <EffectContainer condition="idle">
74      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
75    </EffectContainer>
76    <EffectContainer condition="not idle">
77
78    </EffectContainer>
79    <EffectContainer condition="normal or brake">
80
81    </EffectContainer>
82    <EffectContainer condition="normal or boost">
83      <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
84      <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
85    </EffectContainer>
86    <EffectContainer condition="boost">
87      <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
88      <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
89    </EffectContainer>
90    <EffectContainer condition="brake">
91      <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
92      <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
93      <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
94      <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
95    </EffectContainer>
96  </MultiStateEngine>
97</Template>
Note: See TracBrowser for help on using the repository browser.