Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipH2.oxt @ 8777

Last change on this file since 8777 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 4.3 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
44  </SpaceShip>
45</Template>
46
47<Template name=spaceshipHtwocameras defaults=0>
48  <SpaceShip>
49    <camerapositions>
50      <CameraPosition position="0,10, 40" drag=true mouselook=true />
51      <CameraPosition position="0,20, 80" drag=true mouselook=true />
52      <CameraPosition position="0,30,120" drag=true mouselook=true />
53    </camerapositions>
54  </SpaceShip>
55</Template>
56
57<Template name=spaceshipHtwoengine baseclass=MultiStateEngine>
58  <MultiStateEngine
59   boostfactor    = 2
60
61   speedfront     = 150
62   speedback      =  50
63   speedleftright =  50
64   speedupdown    =  50
65
66   accelerationfront     = 500
67   accelerationbrake     = 500
68   accelerationback      =  125
69   accelerationleftright =  125
70   accelerationupdown    =  125
71  >
72    <active>
73      <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 />
74      <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 />
75      <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 />
76      <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 />
77      <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 />
78    </active>
79    <forward>
80      <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" />
81      <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" />
82    </forward>
83    <boost>
84      <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" />
85      <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" />
86    </boost>
87  </MultiStateEngine>
88</Template>
89
Note: See TracBrowser for help on using the repository browser.