Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mergeFS18/data/levels/templates/spaceshipH2.oxt @ 12064

Last change on this file since 12064 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.2 KB
Line 
1<Template name=spaceshipHtwo>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipHtwocameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 100
10   maxhealth         = 200
11   initialhealth     = 100
12
13   primaryThrust     = 100;
14   auxilaryThrust    = 30;
15   rotationThrust    = 25;
16
17   collisionType     = "dynamic"
18   mass              = 100
19   linearDamping     = 0.7
20   angularDamping    = 0.9999999
21  >
22
23<?lua
24  include("../includes/weaponSettingsH2.oxi")
25?>
26    <engines>
27      <MultiStateEngine position="0,0,0" template=spaceshipHtwoengine />
28
29    </engines>
30    <attached>
31      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale3D="3,0.833,0.833" mesh="h2_green.mesh" />
32      <BlinkingBillboard position=" 11.7,4.0,8.5" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
33      <BlinkingBillboard position="-11.7,4.0,8.5" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
34    </attached>
35    <collisionShapes>
36      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
37      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
38      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
39      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
40      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
41      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
42    </collisionShapes>
43    <explosion >
44      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
45      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
46      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
47
48      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
49      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
50      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
51      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
52      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
53    </explosion>
54
55  </SpaceShip>
56</Template>
57
58<Template name=spaceshipHtwocameras defaults=0>
59  <SpaceShip>
60    <camerapositions>
61      <CameraPosition position="0,10, 40" drag=true mouselook=true />
62      <CameraPosition position="0,20, 80" drag=true mouselook=true />
63      <CameraPosition position="0,30,120" drag=true mouselook=true />
64    </camerapositions>
65  </SpaceShip>
66</Template>
67
68<Template name=spaceshipHtwoengine baseclass=MultiStateEngine>
69  <MultiStateEngine
70   boostfactor    = 2
71
72   speedfront     = 150
73   speedback      =  50
74   speedleftright =  50
75   speedupdown    =  50
76
77   accelerationfront     = 500
78   accelerationbrake     = 500
79   accelerationback      =  125
80   accelerationleftright =  125
81   accelerationupdown    =  125
82  >
83    <active>
84      <FadingBillboard mainstate=activity active=false scale=0.05 position=" 0.0, 2.0, 12.0" colour="0.0, 0.65, 0.0, 0.5" material="Examples/FlareZwei_1" turnontime=0.5 turnofftime=0.5 />
85      <FadingBillboard mainstate=activity active=false scale=0.05 position=" 3.8, 7.5, 11.0" colour="1.0, 1.00, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
86      <FadingBillboard mainstate=activity active=false scale=0.05 position="-3.8, 7.5, 11.0" colour="1.0, 1.00, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
87      <FadingBillboard mainstate=activity active=false scale=0.05 position=" 3.5, 0.0,-10.8" colour="1.0, 1.00, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
88      <FadingBillboard mainstate=activity active=false scale=0.05 position="-3.5, 0.0,-10.8" colour="1.0, 1.00, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
89    </active>
90    <forward>
91      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.06, 1.66, 11.6" colour="0, 0.65, 0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
92      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.26, 1.66, 11.6" colour="0, 0.65, 0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
93    </forward>
94    <boost>
95      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.06, 1.66, 11.6" colour="0.5, 0.85, 0.5, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
96      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.26, 1.66, 11.6" colour="0.5, 0.85, 0.5, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
97    </boost>
98  </MultiStateEngine>
99</Template>
100
Note: See TracBrowser for help on using the repository browser.