Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationFS15/data/levels/templates/spaceshipFS15.oxt @ 10498

Last change on this file since 10498 was 10498, checked in by maxima, 9 years ago

Pres level modified

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