Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipEscort.oxt @ 9415

Last change on this file since 9415 was 9415, checked in by jo, 12 years ago

Integrating Felix' EscortShip in the game (new weaponsetting and spaceshiptemplate added).

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