Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS14merge/data/levels/templates/spaceshipDodgeRace.oxt @ 10238

Last change on this file since 10238 was 10237, checked in by landauf, 10 years ago

merged surfaceraceHS14 (but without all the strange stuff that happened to the invaders module in this branch)

File size: 4.8 KB
RevLine 
[10127]1<Template name=spaceshipdodgerace>
2  <DodgeRaceShip
[10093]3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
8
[10128]9   health            = 40
10   maxhealth         = 40
11   initialhealth     = 40
[10093]12
[10154]13   shieldhealth        = 20
14   initialshieldhealth = 20
15   maxshieldhealth     = 20
16   shieldabsorption    = 0.1
[10107]17   reloadrate          = 1
18   reloadwaittime      = 1
[10093]19
20   primaryThrust     = 150
21   auxilaryThrust    = 30
[10107]22   rotationThrust    = 50
[10093]23
24   lift = 1;
25   stallSpeed = 220;
26
[10107]27   boostPower            = 20
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
[10093]31
[10107]32   shakeFrequency = 15
33   shakeAmplitude = 6
[10093]34
35   collisionType     = "dynamic"
[10107]36   mass              = 4200000
[10128]37   linearDamping     = 0.9999999
[10093]38   angularDamping    = 0.9999999
[10107]39
[10128]40   collisiondamage = 100
41   enablecollisiondamage = true
42   
[10093]43  >
44    <engines>
[10107]45      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipinvaderengine />
46      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipinvaderengine />
[10093]47    </engines>
48    <attached>
49      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="escortShip.mesh" />
50      <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=4 mesh="escortWeapon.mesh" />
51<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
52<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
53<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
54<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
55    </attached>
56    <collisionShapes>
57      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
58      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
59      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
60      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
61    </collisionShapes>
62<?lua
[10107]63  include("../includes/invaderWeapon.oxi")
[10093]64?>
[10127]65  </DodgeRaceShip>
[10093]66</Template>
67
68<Template name=spaceshipescortcameras defaults=0>
[10127]69  <DodgeRaceShip>
[10093]70    <camerapositions>
[10166]71                <CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
72                <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
73                <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
74                <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
[10093]75    </camerapositions>
[10127]76  </DodgeRaceShip>
[10093]77</Template>
78
[10107]79<Template name=spaceshipinvaderengine baseclass=MultiStateEngine>
[10093]80  <MultiStateEngine
81   boostfactor    = 2.2
82
83   speedfront     = 200
[10107]84   speedback      =  70
85   speedleftright =  70
86   speedupdown    =  70
[10093]87
88   defEngineSndNormal = "sounds/Engine_low.ogg"
89   defEngineSndBoost = "sounds/Engine_high.ogg"
90
[10107]91   accelerationfront     = 700
92   accelerationbrake     = 700
93   accelerationback      =  125
94   accelerationleftright =  125
95   accelerationupdown    =  125
[10093]96  >
97    <EffectContainer condition="idle">
98      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
99    </EffectContainer>
100    <EffectContainer condition="not idle">
101      <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 />
102      <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 />
103    </EffectContainer>
104    <EffectContainer condition="normal or brake">
105
106    </EffectContainer>
107    <EffectContainer condition="normal or boost">
108      <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" />
109      <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" />
110    </EffectContainer>
111    <EffectContainer condition="boost">
112      <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" />
113      <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" />
114    </EffectContainer>
115
116  </MultiStateEngine>
[10107]117</Template>
Note: See TracBrowser for help on using the repository browser.