Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/keckslevelHS14/data/levels/templates/spaceshipCollateralDamage.oxt @ 10169

Last change on this file since 10169 was 9664, checked in by landauf, 11 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 6.3 KB
Line 
1<!-- keuschr /-->
2<Template name=spaceshipcollateraldamage>
3  <SpaceShip
4   hudtemplate            = spaceshiphud
5   camerapositiontemplate = spaceshipCDcameras
6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 200
11   maxhealth         = 400
12   initialhealth     = 200
13
14   shieldhealth        = 30
15   initialshieldhealth = 30
16   maxshieldhealth     = 50
17   shieldabsorption    = 0.8
18   reloadrate          = 1
19   reloadwaittime      = 1
20
21   primaryThrust     = 100
22   auxilaryThrust    = 30
23   rotationThrust    = 50
24
25   lift = 1;
26   stallSpeed = 220;
27
28   boostPower            = 15
29   boostPowerRate        = 1
30   boostRate             = 5
31   boostCooldownDuration = 10
32
33   shakeFrequency = 15
34   shakeAmplitude = 12
35
36   collisionType     = "dynamic"
37   mass              = 100
38   linearDamping     = 0.7
39   angularDamping    = 0.9999999
40  >
41    <engines>
42      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipCDengine />
43      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipCDengine />
44    </engines>
45    <attached>
46      <Model position="0,0,0" yaw=-90 pitch=0 roll=0 scale=4 mesh="collateralDamage.mesh" />
47     
48      <BlinkingBillboard position="18.5,0.5,1.5" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=.5 quadratic=1 />
49      <BlinkingBillboard position="-18.5,0.5,1.5" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=.5 phase=180 quadratic=1 />
50
51        <!--Model mesh="cube.mesh" mass=10 position="0,0,0" scale3D="18,2,14" /-->
52        <!--Model mesh="cube.mesh" mass=10 position="0,2.5,0" scale3D="8,2.5,14" /-->
53
54    </attached>
55
56    <collisionShapes>
57        <BoxCollisionShape position="0,0,0" halfExtents="18,2,14" />
58        <BoxCollisionShape position="0,2.5,0" halfExtents="8,2.5,14" />
59
60
61
62
63    </collisionShapes>
64
65
66
67<?lua
68  include("../includes/weaponSettingsCollateral.oxi")
69?>
70  </SpaceShip>
71</Template>
72
73<Template name=spaceshipCDcameras defaults=0>
74  <SpaceShip>
75    <camerapositions>
76      <CameraPosition position="0,10, 40" drag=true mouselook=true />
77      <CameraPosition position="0,20, 80" drag=true mouselook=true />
78      <CameraPosition position="0,30,120" drag=true mouselook=true />
79      <CameraPosition position="0,50,150" drag=true mouselook=true />
80    </camerapositions>
81  </SpaceShip>
82</Template>
83
84<Template name=spaceshipCDengine baseclass=MultiStateEngine>
85  <MultiStateEngine
86   boostfactor    = 5
87
88   speedfront     = 150
89   speedback      =  50
90   speedleftright =  50
91   speedupdown    =  50
92
93   defEngineSndNormal = "sounds/Engine_low.ogg"
94   defEngineSndBoost = "sounds/Engine_high.ogg"
95
96   accelerationfront     = 500
97   accelerationbrake     = 500
98   accelerationback      =  125
99   accelerationleftright =  125
100   accelerationupdown    =  125
101  >
102
103    <EffectContainer condition="idle">
104      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
105    </EffectContainer>
106   
107<EffectContainer condition="not idle">
108      <FadingBillboard mainstate=activity active=false scale=0.05 position="1, 0.5, 14" colour="1.0, 0.65, 0.2, 1.0" material="Examples/Flare" turnontime=0.2 turnofftime=0.5 />
109      <FadingBillboard mainstate=activity active=false scale=0.05 position="-1, 0.5, 14" colour="1.0, 0.65, 0.2, 1.0" material="Examples/Flare" turnontime=0.2 turnofftime=0.5 />
110    </EffectContainer>
111    <EffectContainer condition="normal or brake">
112    </EffectContainer>
113
114    <EffectContainer condition="normal or boost">
115      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 1, 0, 17" colour="1, 0.4, 0.15, 1.0" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=1 material="Flares/ThrusterFlare1" />
116      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-1, 0, 17" colour="1, 0.4, 0.15, 1.0" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=1 material="Flares/ThrusterFlare1" />
117    </EffectContainer>
118
119    <EffectContainer condition="normal or boost">
120      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 8, 0, 12" colour="1, 0.8, 0, 0.3" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=3 turnofftime=1 material="Flares/ThrusterFlare1" />
121      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-8, 0, 12" colour="1, 0.8, 0, 0.3" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=3 turnofftime=1 material="Flares/ThrusterFlare1" />
122
123      <FadingBillboard mainstate=activity active=false scale=0.05 position="8, -1, 12" colour="1, 0.8, 0, 0.3" material="Examples/Flare" turnontime=1 turnofftime=0.5 />
124      <FadingBillboard mainstate=activity active=false scale=0.05 position="-8, -1, 12" colour="1, 0.8, 0, 0.3" material="Examples/Flare" turnontime=1 turnofftime=0.5 />
125
126    </EffectContainer>
127
128
129    <EffectContainer condition="boost">
130      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 3, 0, 20" colour="0.8,0.4,0, 0.15" width=5 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=0.5 material="Examples/Flare" />
131      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-3, 0, 20" colour="0.8,0.4,0, 0.15" width=5 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=0.5 material="Examples/Flare" />
132    </EffectContainer>
133
134<!--    <EffectContainer condition="brake">
135      <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 />
136      <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 />
137      <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 />
138      <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 />
139    </EffectContainer>
140-->
141  </MultiStateEngine>
142</Template>
Note: See TracBrowser for help on using the repository browser.