Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Tutorial_HS19/data/levels/templates/spaceshipTransporter.oxt @ 12373

Last change on this file since 12373 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=spaceshipTransporter>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipTransportercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 1000
10   maxhealth         = 1500
11   initialhealth     = 1000
12
13   primaryThrust     = 50;
14   auxilaryThrust    = 10;
15   rotationThrust    = 15;
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      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
30      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
31      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
32      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
33      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
34      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
35    </collisionShapes>
36    <explosion >
37      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
38      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
39      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
40
41      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
42      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
43      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
44      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
45      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
46    </explosion>
47
48<?lua
49  include("../includes/weaponSettingsTransporter.oxi")
50?>
51  </SpaceShip>
52</Template>
53
54<Template name=spaceshipTransportercameras defaults=0>
55  <SpaceShip>
56    <camerapositions>
57      <CameraPosition position="0,90,350" drag=true mouselook=true />
58      <CameraPosition position="0,150, 400" drag=true mouselook=true />
59      <CameraPosition position="0,200,550" drag=true mouselook=true />
60      <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
61    </camerapositions>
62  </SpaceShip>
63</Template>
64
65<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
66  <MultiStateEngine
67   boostfactor    = 2
68
69   speedfront     = 50
70   speedback      =  10
71   speedleftright =  10
72   speedupdown    =  10
73
74   defEngineSndNormal = "sounds/Engine_low.ogg"
75   defEngineSndBoost = "sounds/Engine_high.ogg"
76
77   accelerationfront     = 20
78   accelerationbrake     = 20
79   accelerationback      = 10
80   accelerationleftright =  10
81   accelerationupdown    =  10
82  >
83    <EffectContainer condition="idle">
84      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
85    </EffectContainer>
86    <EffectContainer condition="not idle">
87
88    </EffectContainer>
89    <EffectContainer condition="normal or brake">
90
91    </EffectContainer>
92    <EffectContainer condition="normal or boost">
93      <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" />
94      <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" />
95    </EffectContainer>
96    <EffectContainer condition="boost">
97      <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" />
98      <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" />
99    </EffectContainer>
100    <EffectContainer condition="brake">
101      <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 />
102      <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 />
103      <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 />
104      <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 />
105    </EffectContainer>
106  </MultiStateEngine>
107</Template>
Note: See TracBrowser for help on using the repository browser.