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 | <explosion > |
---|
66 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
67 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
68 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
69 | |
---|
70 | <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" /> |
---|
71 | <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
72 | <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
73 | <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
74 | <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
75 | </explosion> |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | <?lua |
---|
80 | include("../includes/weaponSettingsCollateral.oxi") |
---|
81 | ?> |
---|
82 | </SpaceShip> |
---|
83 | </Template> |
---|
84 | |
---|
85 | <Template name=spaceshipCDcameras defaults=0> |
---|
86 | <SpaceShip> |
---|
87 | <camerapositions> |
---|
88 | <CameraPosition position="0,10, 40" drag=true mouselook=true /> |
---|
89 | <CameraPosition position="0,20, 80" drag=true mouselook=true /> |
---|
90 | <CameraPosition position="0,30,120" drag=true mouselook=true /> |
---|
91 | <CameraPosition position="0,50,150" drag=true mouselook=true /> |
---|
92 | </camerapositions> |
---|
93 | </SpaceShip> |
---|
94 | </Template> |
---|
95 | |
---|
96 | <Template name=spaceshipCDengine baseclass=MultiStateEngine> |
---|
97 | <MultiStateEngine |
---|
98 | boostfactor = 5 |
---|
99 | |
---|
100 | speedfront = 150 |
---|
101 | speedback = 50 |
---|
102 | speedleftright = 50 |
---|
103 | speedupdown = 50 |
---|
104 | |
---|
105 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
106 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
107 | |
---|
108 | accelerationfront = 500 |
---|
109 | accelerationbrake = 500 |
---|
110 | accelerationback = 125 |
---|
111 | accelerationleftright = 125 |
---|
112 | accelerationupdown = 125 |
---|
113 | > |
---|
114 | |
---|
115 | <EffectContainer condition="idle"> |
---|
116 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
117 | </EffectContainer> |
---|
118 | |
---|
119 | <EffectContainer condition="not idle"> |
---|
120 | <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 /> |
---|
121 | <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 /> |
---|
122 | </EffectContainer> |
---|
123 | <EffectContainer condition="normal or brake"> |
---|
124 | </EffectContainer> |
---|
125 | |
---|
126 | <EffectContainer condition="normal or boost"> |
---|
127 | <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" /> |
---|
128 | <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" /> |
---|
129 | </EffectContainer> |
---|
130 | |
---|
131 | <EffectContainer condition="normal or boost"> |
---|
132 | <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" /> |
---|
133 | <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" /> |
---|
134 | |
---|
135 | <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 /> |
---|
136 | <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 /> |
---|
137 | |
---|
138 | </EffectContainer> |
---|
139 | |
---|
140 | |
---|
141 | <EffectContainer condition="boost"> |
---|
142 | <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" /> |
---|
143 | <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" /> |
---|
144 | </EffectContainer> |
---|
145 | |
---|
146 | <!-- <EffectContainer condition="brake"> |
---|
147 | <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 /> |
---|
148 | <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 /> |
---|
149 | <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 /> |
---|
150 | <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 /> |
---|
151 | </EffectContainer> |
---|
152 | --> |
---|
153 | </MultiStateEngine> |
---|
154 | </Template> |
---|