Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/explosionChunksHS15/data/levels/templates/spaceshipFS15.oxt @ 10807

Last change on this file since 10807 was 10807, checked in by vaydin, 8 years ago

added explosioneffects to the xml files

  • Property svn:eol-style set to native
File size: 6.7 KB
Line 
1<Template name=spaceshipfs15>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipfs15cameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 200
10   maxhealth         = 300
11   initialhealth     = 150
12
13   shieldhealth        = 50
14   initialshieldhealth = 50
15   maxshieldhealth     = 800
16   shieldabsorption    = 0.8
17   reloadrate          = 1
18   reloadwaittime      = 1
19
20   primaryThrust     = 40
21   auxilaryThrust    = 30
22   rotationThrust    = 35
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, 19" template=spaceshipfs15engine />
44      <MultiStateEngine position="-7.6, 0, 19" template=spaceshipfs15engine />
45    </engines>
46    <attached>
47      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="HeartAttack.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.8,6"      halfExtents="12, 3, 10" />
53        <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
54  <BoxCollisionShape position="4.7,1,-8"      halfExtents="2, 3, 5" />
55  <BoxCollisionShape position="-4.7,1,-8"      halfExtents="2, 3, 5" />
56        <BoxCollisionShape position="13.5,1,5"  halfExtents="1.4, 3, 7" />
57  <BoxCollisionShape position="-13.5,1,5"  halfExtents="1.4, 3, 7" />
58  <BoxCollisionShape position="16,2,4"  halfExtents="1.4, 1.5, 4" />
59  <BoxCollisionShape position="-16,2,4"  halfExtents="1.4, 1.5, 4" />
60  <BoxCollisionShape position="-2.8,5,4"  halfExtents="1.4, 1.5, 2" />
61  <BoxCollisionShape position="2.8,5,4"  halfExtents="1.4, 1.5, 2" />
62  <BoxCollisionShape position="5,5,4.3"  halfExtents="1.4, 1.5, 1.4" />
63  <BoxCollisionShape position="-5,5,4.3"  halfExtents="1.4, 1.5, 1.4" />
64    </collisionShapes>
65
66    <explosion >
67      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
68      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
69      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
70
71      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
72      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
73      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
74      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
75      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
76    </explosion>
77<?lua
78  include("../includes/weaponSettingsFS15.oxi")
79?>
80  </SpaceShip>
81</Template>
82
83<Template name=spaceshipfs15cameras defaults=0>
84  <SpaceShip>
85    <camerapositions>
86      <CameraPosition position="0,12, 48" drag=true mouselook=true />
87      <CameraPosition position="0,20, 80" drag=true mouselook=true />
88      <CameraPosition position="0,30,120" drag=true mouselook=true />
89    </camerapositions>
90  </SpaceShip>
91</Template>
92
93<Template name=spaceshipfs15engine baseclass=MultiStateEngine>
94  <MultiStateEngine
95   boostfactor    = 2
96
97   speedfront     = 150
98   speedback      =  50
99   speedleftright =  50
100   speedupdown    =  50
101
102   defEngineSndNormal = "sounds/Engine_low.ogg"
103   defEngineSndBoost = "sounds/Engine_high.ogg"
104   
105   accelerationfront     = 420
106   accelerationbrake     = 420
107   accelerationback      =  125
108   accelerationleftright =  125
109   accelerationupdown    =  125
110  >
111    <EffectContainer condition="idle">
112      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
113    </EffectContainer>
114    <EffectContainer condition="not idle">
115      <FadingBillboard mainstate=activity active=false scale=0.1 position="4, 1.9, 19" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
116      <FadingBillboard mainstate=activity active=false scale=0.1 position="-4, 1.9, 19" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
117    </EffectContainer>
118    <EffectContainer condition="normal or brake">
119
120    </EffectContainer>
121    <EffectContainer condition="normal or boost">
122      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 4, 1.9, 19" colour="0.6, 0.2, 0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
123      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-4, 1.9, 19" colour="0.6, 0.2, 0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
124    </EffectContainer>
125    <EffectContainer condition="boost">
126      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 4, 1.9, 19" colour="1, 0, 0, 0.5" width=20 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
127      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-4, 1.9, 19" colour="1, 0, 0, 1" width=20 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
128    </EffectContainer>
129   <EffectContainer condition="brake">
130      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 4, 1.9, 19" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
131      <FadingBillboard mainstate=activity active=false scale=0.3 position="-4, 1.9, 19" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
132      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 4, 1.9, 19" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
133      <FadingBillboard mainstate=activity active=false scale=0.15 position="-4, 1.9, 19" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
134    </EffectContainer>
135
136  </MultiStateEngine>
137</Template>
Note: See TracBrowser for help on using the repository browser.