Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipSpacecruiser.oxt @ 9535

Last change on this file since 9535 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 6.1 KB
Line 
1<Template name=spaceshipspacecruiser>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipcruisercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 2
7   explosionchunks        = 12
8
9   health            = 300
10   maxhealth         = 400
11   initialhealth     = 300
12
13   shieldhealth        = 75
14   initialshieldhealth = 75
15   maxshieldhealth     = 90
16   shieldabsorption    = 0.9
17   reloadrate          = 1
18   reloadwaittime      = 1
19
20   primaryThrust     = 90
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 16
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   shakeFrequency = 12
33   shakeAmplitude = 7
34
35   collisionType     = "dynamic"
36   mass              = 300
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39  >
40    <engines>
41      <MultiStateEngine position=" 7.6, -20, 6" template=spaceshipcruiserengine />
42      <MultiStateEngine position="-7.6, -20, 0" template=spaceshipcruiserengine />
43      <MultiStateEngine position=" 7.6, 20, 6" template=spaceshipcruiserengine />
44      <MultiStateEngine position="-7.6, 20, 0" template=spaceshipcruiserengine />
45    </engines>
46    <attached>
47      <Model position="12,-5,-10" yaw=90 pitch=-90 roll=0 scale=6 mesh="spacecruiser.mesh" />
48      <!--Model mesh="cube.mesh" mass=10 position="0,-30,-108" scale3D="38,6,62" />
49      <Model mesh="cube.mesh" mass=10 position="0,-20,-108" scale3D="20,6,40" />
50      <Model mesh="cube.mesh" mass=10 position="-16,-35,-112" scale3D="15,5,57" roll=-14 pitch=3.5/>
51      <Model mesh="cube.mesh" mass=10 position="16,-35,-112" scale3D="15,5,57" roll=14 pitch=3.5/>
52      <Model mesh="cube.mesh" mass=10 position="19,-21.5,-108" scale3D="18,5,52" roll=-21 />
53      <Model mesh="cube.mesh" mass=10 position="-19,-21.5,-108" scale3D="18,5,52" roll=21 />
54      <Model mesh="cube.mesh" mass=10 position="0,-21,-169" scale3D="18,1,16" pitch=-30 /-->
55
56
57    </attached>
58    <collisionShapes>
59      <BoxCollisionShape position="0,-5,2"     halfExtents="38,6,62" />
60      <BoxCollisionShape position="0,5,2"      halfExtents="20,6,40" />
61      <BoxCollisionShape position="-16,-10,-2" halfExtents="15,5,57" roll=-14 pitch=3.5/>
62      <BoxCollisionShape position="16,-10,-2"  halfExtents="15,5,57" roll=14  pitch=3.5/>
63      <BoxCollisionShape position="19,3.5,2"   halfExtents="18,5,52" roll=-21 />
64      <BoxCollisionShape position="-19,4.5,2"  halfExtents="18,5,52" roll=21  />
65      <BoxCollisionShape position="0,4,-59"    halfExtents="18,1,16" pitch=-30/>
66
67    </collisionShapes>
68<?lua
69  include("../includes/weaponSettingsSpacecruiser.oxi")
70?>
71  </SpaceShip>
72</Template>
73
74<Template name=spaceshipcruisercameras defaults=0>
75  <SpaceShip>
76    <camerapositions>
77      <CameraPosition position="0,40, 170" drag=true mouselook=true />
78      <CameraPosition position="0,55, 230" drag=true mouselook=true />
79      <CameraPosition position="0,65, 460" drag=true mouselook=true />
80    </camerapositions>
81  </SpaceShip>
82</Template>
83
84<Template name=spaceshipcruiserengine baseclass=MultiStateEngine>
85  <MultiStateEngine
86   boostfactor    = 2
87
88   speedfront     = 200
89   speedback      =  70
90   speedleftright =  70
91   speedupdown    =  70
92
93   defEngineSndNormal = "sounds/Engine_low.ogg"
94   defEngineSndBoost = "sounds/Engine_high.ogg"
95
96   accelerationfront     = 500
97   accelerationbrake     = 500
98   accelerationback      =  125
99   accelerationleftright =  125
100   accelerationupdown    =  125
101  >
102    <EffectContainer condition="idle">
103      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
104    </EffectContainer>
105    <EffectContainer condition="not idle">
106      <FadingBillboard mainstate=activity active=false scale=0.1 position="20,  0, 70" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
107      <FadingBillboard mainstate=activity active=false scale=0.1 position="-20, 0, 70" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
108    </EffectContainer>
109    <EffectContainer condition="normal or brake">
110
111    </EffectContainer>
112    <EffectContainer condition="normal or boost">
113      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 20, 0, 70" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1300 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
114      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-20, 0, 70" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1300 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
115    </EffectContainer>
116    <EffectContainer condition="boost">
117      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 20, 0, 70" colour="0.6, 0.75, 0.8, 0.7" width=40 length=800 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
118      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-20, 0, 70" colour="0.6, 0.75, 0.8, 0.7" width=40 length=800 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
119    </EffectContainer>
120<!--    <EffectContainer condition="brake">
121      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 20,  0, 70" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
122      <FadingBillboard mainstate=activity active=false scale=0.3 position="-20,  0, 70" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
123      <FadingBillboard mainstate=activity active=false scale=0.15 position="20,  0, 70" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
124      <FadingBillboard mainstate=activity active=false scale=0.15 position="-20, 0, 70" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
125    </EffectContainer>
126-->
127  </MultiStateEngine>
128</Template>
129
Note: See TracBrowser for help on using the repository browser.