Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/sagerjFS16/data/levels/templates/spaceshipAssff2.oxt @ 11846

Last change on this file since 11846 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 6.3 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   shieldrechargerate  = 5
18   shieldrechargewaittime = 0.5
19
20   primaryThrust     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 10
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=spaceshipassffengine2 />
44      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine2 />
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    <explosion >
60      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
61      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
62      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
63
64      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
65      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
66      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
67      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
68      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
69    </explosion>
70<?lua
71  include("../includes/weaponSettingsAssff2.oxi")
72?>
73  </SpaceShip>
74</Template>
75
76<Template name=spaceshipassffcameras2 defaults=0>
77  <SpaceShip>
78    <camerapositions>
79      <CameraPosition position="0,10, 40" drag=true mouselook=true />
80      <CameraPosition position="0,20, 80" drag=true mouselook=true />
81      <CameraPosition position="0,30,120" drag=true mouselook=true />
82    </camerapositions>
83  </SpaceShip>
84</Template>
85
86<Template name=spaceshipassffengine2 baseclass=MultiStateEngine>
87  <MultiStateEngine
88   boostfactor    = 2
89
90   speedfront     = 150
91   speedback      =  50
92   speedleftright =  50
93   speedupdown    =  50
94
95   defEngineSndNormal = "sounds/Engine_low.ogg"
96   defEngineSndBoost = "sounds/Engine_high.ogg"
97
98   accelerationfront     = 500
99   accelerationbrake     = 500
100   accelerationback      =  125
101   accelerationleftright =  125
102   accelerationupdown    =  125
103  >
104    <EffectContainer condition="idle">
105      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
106    </EffectContainer>
107    <EffectContainer condition="not idle">
108      <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 />
109      <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 />
110    </EffectContainer>
111    <EffectContainer condition="normal or brake">
112
113    </EffectContainer>
114    <EffectContainer condition="normal or boost">
115      <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" />
116      <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" />
117    </EffectContainer>
118    <EffectContainer condition="boost">
119      <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" />
120      <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" />
121    </EffectContainer>
122<!--    <EffectContainer condition="brake">
123      <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 />
124      <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 />
125      <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 />
126      <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 />
127    </EffectContainer>
128-->
129  </MultiStateEngine>
130</Template>
Note: See TracBrowser for help on using the repository browser.