Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationFS15/data/levels/templates/spaceshipAssff.oxt @ 10444

Last change on this file since 10444 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 5.4 KB
Line 
1<Template name=spaceshipassff>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipassffcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 100
10   maxhealth         = 200
11   initialhealth     = 100
12
13   shieldhealth        = 30
14   initialshieldhealth = 30
15   maxshieldhealth     = 50
16   shieldabsorption    = 0.8
17   reloadrate          = 1
18   reloadwaittime      = 1
19
20   primaryThrust     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 50
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, 6" template=spaceshipassffengine />
44      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
45    </engines>
46    <attached>
47      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.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,0"      halfExtents="10, 3, 5" />
53      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
54      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
55      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
56      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
57      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
58    </collisionShapes>
59<?lua
60  include("../includes/weaponSettingsAssff.oxi")
61?>
62  </SpaceShip>
63</Template>
64
65<Template name=spaceshipassffcameras defaults=0>
66  <SpaceShip>
67    <camerapositions>
68      <CameraPosition position="0,10, 40" drag=true mouselook=true />
69      <CameraPosition position="0,20, 80" drag=true mouselook=true />
70      <CameraPosition position="0,30,120" drag=true mouselook=true />
71    </camerapositions>
72  </SpaceShip>
73</Template>
74
75<Template name=spaceshipassffengine 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, 6" 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, 6" 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>
Note: See TracBrowser for help on using the repository browser.