Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/particleEffectsHS15/data/levels/templates/spaceshipEscort.oxt @ 10706

Last change on this file since 10706 was 10706, checked in by holzerj, 9 years ago

New engine effect

  • Property svn:eol-style set to native
File size: 4.0 KB
Line 
1<Template name=spaceshipescort>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
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=spaceshipescortengine />
42      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine />
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<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
48<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
49<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
50<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
51    </attached>
52    <collisionShapes>
53      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
54      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
55      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
56      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
57    </collisionShapes>
58<?lua
59  include("../includes/weaponSettingsEscort.oxi")
60?>
61  </SpaceShip>
62</Template>
63
64<Template name=spaceshipescortcameras defaults=0>
65  <SpaceShip>
66    <camerapositions>
67      <CameraPosition position="0,15, 60" drag=true mouselook=true />
68      <CameraPosition position="0,20, 90" drag=true mouselook=true />
69      <CameraPosition position="0,30,120" drag=true mouselook=true />
70    </camerapositions>
71  </SpaceShip>
72</Template>
73
74<Template name=spaceshipescortengine baseclass=MultiStateEngine>
75  <MultiStateEngine
76   boostfactor    = 2.2
77
78   speedfront     = 200
79   speedback      =  70
80   speedleftright =  70
81   speedupdown    =  70
82
83   defEngineSndNormal = "sounds/Engine_low.ogg"
84   defEngineSndBoost = "sounds/Engine_high.ogg"
85
86   accelerationfront     = 700
87   accelerationbrake     = 700
88   accelerationback      =  125
89   accelerationleftright =  125
90   accelerationupdown    =  125
91  >
92    <EffectContainer condition="idle">
93      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
94    </EffectContainer>
95    <EffectContainer condition="not idle">
96    </EffectContainer>
97    <EffectContainer condition="normal or brake">
98
99    </EffectContainer>
100    <EffectContainer condition="normal or boost">
101      <ParticleEmitter
102        source="Orxonox/engine"
103        position="-12,-1.75,13"
104        lifetime=5.0 loop=1 startdelay=0.0
105        scale=0.3
106    />
107        <ParticleEmitter
108        source="Orxonox/engine"
109        position="12,-1.75,13"
110        lifetime=5.0 loop=1 startdelay=0.0
111        scale=0.3
112    />
113     
114    </EffectContainer>
115    <EffectContainer condition="boost">
116      <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" />
117      <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" />
118    </EffectContainer>
119
120  </MultiStateEngine>
121</Template>
Note: See TracBrowser for help on using the repository browser.