Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipShuttle.oxt @ 11458

Last change on this file since 11458 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.6 KB
RevLine 
[10804]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>
[10932]26      <Model position="0,0,0" yaw=180 pitch=0 roll=0 scale=10 mesh="Transporterspaceship.mesh" />
[10804]27    </attached>
28    <collisionShapes>
[10957]29      <BoxCollisionShape position=" 0, 0, 20"      halfExtents=" 37, 25, 80" />
30      <BoxCollisionShape position=" 0, 21, 20"      halfExtents=" 37, 21, 80" />
31      <BoxCollisionShape position=" 0, 40, 110"      halfExtents=" 20, 10, 40" />
32      <BoxCollisionShape position=" 0, 45, 170"      halfExtents=" 33, 25, 20" />
33      <BoxCollisionShape position=" -60, 33, 0"      halfExtents=" 24, 16, 120" />
34      <BoxCollisionShape position=" 60, 33, 0"      halfExtents=" 24, 16, 120" />
35      <BoxCollisionShape position=" 0, 10, -90"      halfExtents=" 30, 25, 30" />
36      <BoxCollisionShape position=" 0, -3, -145"      halfExtents=" 20, 20, 30" />
[10804]37    </collisionShapes>
38
39<?lua
40  include("../includes/weaponSettingsTransporter.oxi")
41?>
42  </SpaceShip>
43</Template>
44
45<Template name=spaceshipTransportercameras defaults=0>
46  <SpaceShip>
47    <camerapositions>
48      <CameraPosition position="0,90,350" drag=true mouselook=true />
[10957]49      <CameraPosition position="0,125, 400" drag=true mouselook=true />
[10804]50      <CameraPosition position="0,200,550" 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
[10956]68   accelerationbrake     = 30
[10804]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">
[10956]83      <Backlight mainstate=activity active=false scale=2 name=bltest position=" -80, 33, 100" 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=" 80, 33, 100" 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      <Backlight mainstate=activity active=false scale=2 name=bltest position=" -75, 25, -57" 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" />
86      <Backlight mainstate=activity active=false scale=2 name=bltest position=" 75, 25, -57" 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" />
[10804]87    </EffectContainer>
88    <EffectContainer condition="boost">
[10956]89      <Backlight mainstate=activity active=false scale=3 name=bltest position=" -80, 33, 100" 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" />
90      <Backlight mainstate=activity active=false scale=3 name=bltest position=" 80, 33, 100" 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" />
91      <Backlight mainstate=activity active=false scale=3 name=bltest position=" -75, 25, -57" 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" />
92      <Backlight mainstate=activity active=false scale=3 name=bltest position=" 75, 25, -57" 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" />
[10804]93    </EffectContainer>
94    <EffectContainer condition="brake">
[10956]95      <FadingBillboard mainstate=activity active=false scale=2 position=" -75, 33, 40" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
96      <FadingBillboard mainstate=activity active=false scale=2 position=" 75, 33, 40" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
97      <FadingBillboard mainstate=activity active=false scale=1 position=" -68, 25, -115" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
98      <FadingBillboard mainstate=activity active=false scale=1 position=" 68, 25, -115" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
[10804]99    </EffectContainer>
100  </MultiStateEngine>
101</Template>
Note: See TracBrowser for help on using the repository browser.