Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/templates/spaceshipAssff2.oxt @ 8593

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

Adjusting Assff2 to fit new engines.

File size: 6.5 KB
Line 
1<Template name=spaceshipassff2>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipassffcameras2
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 50
10   maxhealth         = 100
11   initialhealth     = 50
12
13   shieldhealth        = 130
14   initialshieldhealth = 130
15   maxshieldhealth     = 150
16   shieldabsorption    = 0.95
17   reloadrate          = 5
18   reloadwaittime      = 0.5
19
20   primaryThrust     = 100;
21   auxilaryThrust    = 30;
22   rotationThrust    = 25;
23
24   boostPower            = 10
25   boostPowerRate        = 1
26   boostRate             = 5
27   boostCooldownDuration = 10
28
29   shakeFrequency = 15
30   shakeAmplitude = 7
31
32   collisionType     = "dynamic"
33   mass              = 100
34   linearDamping     = 0.7
35   angularDamping    = 0.9999999
36  >
37    <engines>
38      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine2 />
39      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine2 />
40    </engines>
41    <attached>
42      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
43      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
44      <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 />
45    </attached>
46    <collisionShapes>
47      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
48      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
49      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
50      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
51      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
52      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
53    </collisionShapes>
54<?lua
55  include("includes/weaponSettingsAssff2.oxi")
56?>
57  </SpaceShip>
58</Template>
59
60<Template name=spaceshipassffcameras2 defaults=0>
61  <SpaceShip>
62    <camerapositions>
63      <CameraPosition position="0,10, 40" drag=true mouselook=true />
64      <CameraPosition position="0,20, 80" drag=true mouselook=true />
65      <CameraPosition position="0,30,120" drag=true mouselook=true />
66      <!--CameraPosition position="0,150,-25" pitch=-90 drag=true />
67      <CameraPosition position="0,0,-40" yaw=180 drag=true />
68      <CameraPosition position="0,3,-14" yaw=0 />
69      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
70      <CameraPosition position="50,5,-8" yaw=90 drag=true /-->
71    </camerapositions>
72  </SpaceShip>
73</Template>
74
75<Template name=spaceshipassffengine2 baseclass=MultiStateEngine>
76  <MultiStateEngine
77   boostfactor    = 2
78
79   speedfront     = 150
80   speedback      =  50
81   speedleftright =  50
82   speedupdown    =  50
83
84   defEngineSndNormal = "sounds/Engine_low.ogg"
85   defEngineSndBoost = "sounds/Engine_high.ogg"
86
87   accelerationfront     = 500
88   accelerationbrake     = 500
89   accelerationback      =  125
90   accelerationleftright =  125
91   accelerationupdown    =  125
92  >
93    <EffectContainer condition="idle">
94      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
95    </EffectContainer>
96    <EffectContainer condition="not idle">
97      <FadingBillboard mainstate=activity active=false scale=0.1 position="7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
98      <FadingBillboard mainstate=activity active=false scale=0.1 position="-7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
99    </EffectContainer>
100    <EffectContainer condition="normal or brake">
101
102    </EffectContainer>
103    <EffectContainer condition="normal or boost">
104      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 0" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
105      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 0" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
106    </EffectContainer>
107    <EffectContainer condition="boost">
108      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
109      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
110    </EffectContainer>
111<!--    <EffectContainer condition="brake">
112      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
113      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
114      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
115      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
116    </EffectContainer>
117-->
118  </MultiStateEngine>
119</Template>
120
121<!--Template name=spaceshippirate>
122  <SpaceShip
123   health            = 100
124   maxhealth         = 200
125   initialhealth     = 100
126
127   maxspeed          = 250
128   maxsecondaryspeed = 50
129   maxrotation       = 100
130   transacc          = 200
131   rotacc            = 140
132   transdamp         = 75
133  >
134    <attached>
135      <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
136    </attached>
137  </SpaceShip>
138</Template>
139
140<Template name=spaceshipspacecruiser>
141  <SpaceShip
142   health            = 100
143   maxhealth         = 200
144   initialhealth     = 100
145
146   maxspeed          = 250
147   maxsecondaryspeed = 50
148   maxrotation       = 100
149   transacc          = 200
150   rotacc            = 140
151   transdamp         = 75
152  >
153    <attached>
154      <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
155    </attached>
156  </SpaceShip>
157</Template-->
Note: See TracBrowser for help on using the repository browser.