1 | <Template name=HeavyCruiser> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphud |
---|
4 | camerapositiontemplate = heavycruisercameras |
---|
5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
6 | spawnparticleduration = 3 |
---|
7 | explosionchunks = 6 |
---|
8 | |
---|
9 | health = 100 |
---|
10 | maxhealth = 200 |
---|
11 | initialhealth = 100 |
---|
12 | |
---|
13 | shieldhealth = 100 |
---|
14 | initialshieldhealth = 30 |
---|
15 | maxshieldhealth = 50 |
---|
16 | shieldabsorption = 0.8 |
---|
17 | reloadrate = 1 |
---|
18 | reloadwaittime = 1 |
---|
19 | |
---|
20 | primaryThrust = 300 |
---|
21 | auxilaryThrust = 30 |
---|
22 | rotationThrust = 0.1 |
---|
23 | |
---|
24 | lift = 1; |
---|
25 | stallSpeed = 220; |
---|
26 | |
---|
27 | boostPower = 30 |
---|
28 | boostPowerRate = 1.5 |
---|
29 | boostRate = 4 |
---|
30 | boostCooldownDuration = 10 |
---|
31 | |
---|
32 | shakeFrequency = 15 |
---|
33 | shakeAmplitude = 9 |
---|
34 | |
---|
35 | collisionType = "dynamic" |
---|
36 | mass = 10000 |
---|
37 | linearDamping = 0.1 |
---|
38 | angularDamping = 0.5 |
---|
39 | > |
---|
40 | <engines> |
---|
41 | <MultiStateEngine position="85,0,0" template=heavycruiserengine /> |
---|
42 | <MultiStateEngine position="-85,0,0" template=heavycruiserengine /> |
---|
43 | </engines> |
---|
44 | <attached> |
---|
45 | |
---|
46 | <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=1000 friction=0.01 > |
---|
47 | <attached> |
---|
48 | <Model mesh="HeavyCruiser_frontR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
49 | </attached> |
---|
50 | <collisionShapes> |
---|
51 | <BoxCollisionShape position="79,33,-320" halfExtents="8,11,54" info="frontR"/> |
---|
52 | <BoxCollisionShape position="79,31,-399" halfExtents="3,6,26" info="frontR"/> |
---|
53 | </collisionShapes> |
---|
54 | </StaticEntity> |
---|
55 | <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=1000 friction=0.01 > |
---|
56 | <attached> |
---|
57 | <Model mesh="HeavyCruiser_frontL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
58 | </attached> |
---|
59 | <collisionShapes> |
---|
60 | <BoxCollisionShape position="-79,33,-320" halfExtents="8,11,54" info="frontL"/> |
---|
61 | <BoxCollisionShape position="-79,31,-399" halfExtents="3,6,26" info="frontL"/> |
---|
62 | </collisionShapes> |
---|
63 | </StaticEntity> |
---|
64 | <Model mesh="HeavyCruiser_body.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
65 | |
---|
66 | |
---|
67 | <Model mesh="HeavyCruiser_partL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
68 | <Model mesh="HeavyCruiser_partR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
69 | <Model mesh="HeavyCruiser_sidearmL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
70 | <Model mesh="HeavyCruiser_sidearmLfront.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
71 | <Model mesh="HeavyCruiser_sidearmR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
72 | <Model mesh="HeavyCruiser_sidearmRfront.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> |
---|
73 | |
---|
74 | <!-- bay1 lights --> |
---|
75 | <BlinkingBillboard position="75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> |
---|
76 | <BlinkingBillboard position="-75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> |
---|
77 | <BlinkingBillboard position="74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 /> |
---|
78 | <BlinkingBillboard position="-74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 /> |
---|
79 | <BlinkingBillboard position="73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> |
---|
80 | <BlinkingBillboard position="-73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> |
---|
81 | <!-- front position lights --> |
---|
82 | <BlinkingBillboard position="67,-5,-240" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
83 | <BlinkingBillboard position="-67,-5,-240" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
84 | <BlinkingBillboard position="72,51,-380" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
85 | <BlinkingBillboard position="-72,51,-380" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
86 | <!-- rear position lights --> |
---|
87 | <BlinkingBillboard position="95,-15,483" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
88 | <BlinkingBillboard position="-95,-15,483" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
89 | <BlinkingBillboard position="74,103,524" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> |
---|
90 | <BlinkingBillboard position="-74,103,524" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | <!-- <Model position="0,8,17" yaw=0 pitch=180 roll=0 scale3D="8, 10, 10" mesh="cube.mesh" /> |
---|
95 | <Model position="0,0,22" yaw=0 pitch=180 roll=0 scale3D="18, 2, 10" mesh="cube.mesh" /> |
---|
96 | <Model position="0,0,9" yaw=0 pitch=180 roll=0 scale3D="12, 2, 20" mesh="cube.mesh" /> |
---|
97 | <Model position="0,0,-18" yaw=0 pitch=180 roll=0 scale3D="6, 2, 18" mesh="cube.mesh" /> |
---|
98 | --> |
---|
99 | |
---|
100 | </attached> |
---|
101 | <collisionShapes> |
---|
102 | <BoxCollisionShape position="93,33,-179" halfExtents="12,13,45" info="partR"/> |
---|
103 | <BoxCollisionShape position="93,33,-230" halfExtents="15,17,22" info="partR"/> |
---|
104 | |
---|
105 | <BoxCollisionShape position="-93,33,-179" halfExtents="12,13,45" info="partL"/> |
---|
106 | <BoxCollisionShape position="-93,33,-230" halfExtents="15,17,22" info="partL"/> |
---|
107 | |
---|
108 | <BoxCollisionShape position="145,21,115" roll="-15" halfExtents="19,31,105" info="sidearmR"/> |
---|
109 | |
---|
110 | <BoxCollisionShape position="60,35,-310" halfExtents="13,28,60" info="body, bay1, Rwall"/> |
---|
111 | <BoxCollisionShape position="-60,35,-310" halfExtents="13,28,60" info="body, bay1, Lwall"/> |
---|
112 | <BoxCollisionShape position="0,56,-310" halfExtents="65,6,60" info="body, bay1, Twall"/> |
---|
113 | <BoxCollisionShape position="0,33,-260" halfExtents="65,28,5" info="body, bay1, Bwall"/> |
---|
114 | <BoxCollisionShape position="0,10,-310" halfExtents="65,5,60" info="body, bay1, BottomWall"/> |
---|
115 | |
---|
116 | <BoxCollisionShape position="0,35,-125" halfExtents="83,30,130" info="body, front"/> |
---|
117 | <BoxCollisionShape position="0,6,-307" halfExtents="19,3,43" info="body, frontbottom"/> |
---|
118 | <BoxCollisionShape position="0,5,-196" halfExtents="27,3,24" info="body, dock"/> |
---|
119 | <BoxCollisionShape position="0,7,-248" pitch="25" halfExtents="63,4,12" info="body, dockF"/> |
---|
120 | <BoxCollisionShape position="70,6,-120" roll="20" halfExtents="12,6,120" info="body, dockR"/> |
---|
121 | <BoxCollisionShape position="63,-2,-180" halfExtents="3,3,60" info="body, dockR"/> |
---|
122 | <BoxCollisionShape position="-70,6,-120" roll="-20" halfExtents="12,6,120" info="body, dockL"/> |
---|
123 | <BoxCollisionShape position="-63,-2,-180" halfExtents="3,3,60" info="body, dockL"/> |
---|
124 | <BoxCollisionShape position="87,32,-63" halfExtents="4,23,50" info="body, frontCR"/> |
---|
125 | <BoxCollisionShape position="-87,32,-63" halfExtents="4,23,50" info="body, frontCL"/> |
---|
126 | |
---|
127 | <BoxCollisionShape position="0,72,-213" halfExtents="37,8,60" info="body, Fbridge"/> |
---|
128 | <BoxCollisionShape position="0,72,-110" halfExtents="53,11,53" info="body, Cbridge"/> |
---|
129 | <BoxCollisionShape position="0,86,-110" halfExtents="40,4,40" info="body, Cbridge"/> |
---|
130 | <BoxCollisionShape position="0,70,-60" halfExtents="65,11,30" info="body, Bbridge"/> |
---|
131 | <BoxCollisionShape position="0,84,-45" halfExtents="33,11,26" info="body, Bbridge"/> |
---|
132 | <BoxCollisionShape position="0,79,-6" pitch="10" halfExtents="32,13,17" info="body, Bbridge"/> |
---|
133 | <BoxCollisionShape position="38,67,-45" roll="50" halfExtents="16,23,25" info="body, BbridgeR"/> |
---|
134 | <BoxCollisionShape position="35,63,-17" pitch="25" yaw="-20" roll="40" halfExtents="16,23,16" info="body, BbridgeR"/> |
---|
135 | <BoxCollisionShape position="-38,67,-45" roll="-50" halfExtents="16,23,25" info="body, BbridgeL"/> |
---|
136 | <BoxCollisionShape position="-35,63,-17" pitch="25" yaw="20" roll="-40" halfExtents="16,23,16" info="body, BbridgeL"/> |
---|
137 | |
---|
138 | <BoxCollisionShape position="-67,18,58" roll="-22" halfExtents="13,5,53" info="body, CFL"/> |
---|
139 | <BoxCollisionShape position="-76,36,86" halfExtents="5,18,81" info="body, CL"/> |
---|
140 | <BoxCollisionShape position="-71,55,140" pitch="-4" roll="31" halfExtents="9,5,27" info="body, CBTopL"/> |
---|
141 | <BoxCollisionShape position="-62,2,140" roll="24" halfExtents="10,24,32" info="body, CBBottomL"/> |
---|
142 | <BoxCollisionShape position="67,18,58" roll="22" halfExtents="13,5,53" info="body, CFL"/> |
---|
143 | <BoxCollisionShape position="76,36,86" halfExtents="5,18,81" info="body, CL"/> |
---|
144 | <BoxCollisionShape position="71,55,140" pitch="-4" roll="-31" halfExtents="9,5,27" info="body, CBTopL"/> |
---|
145 | <BoxCollisionShape position="62,2,140" roll="-24" halfExtents="10,24,32" info="body, CBBottomL"/> |
---|
146 | <BoxCollisionShape position="0,60,12" halfExtents="81,5,11" info="body, CFTop"/> |
---|
147 | <BoxCollisionShape position="0,55,40" pitch="15" halfExtents="81,5,20" info="body, CFTop"/> |
---|
148 | <BoxCollisionShape position="0,50,85" pitch="1" halfExtents="81,5,29" info="body, CTop"/> |
---|
149 | <BoxCollisionShape position="0,59,140" pitch="-4" halfExtents="68,5,27" info="body, CBTop"/> |
---|
150 | |
---|
151 | <BoxCollisionShape position="0,81,238" halfExtents="26,5,59" info="body, BFTop"/> |
---|
152 | <BoxCollisionShape position="0,67,234" halfExtents="54,5,67" info="body, BFTop"/> |
---|
153 | <BoxCollisionShape position="0,77,175" pitch="-36" halfExtents="26,5,9" info="body, BFTop"/> |
---|
154 | <BoxCollisionShape position="0,62,161" pitch="-30" halfExtents="56,5,10" info="body, BFTop"/> |
---|
155 | <BoxCollisionShape position="0,69,162" halfExtents="16,7,10" info="body, BFTop"/> |
---|
156 | <BoxCollisionShape position="31,76,238" roll="-46" halfExtents="10,3,59" info="body, BFTopR"/> |
---|
157 | <BoxCollisionShape position="64,64,234" roll="-24" halfExtents="13,3,67" info="body, BFTopR"/> |
---|
158 | <BoxCollisionShape position="-31,76,238" roll="46" halfExtents="10,3,59" info="body, BFTopL"/> |
---|
159 | <BoxCollisionShape position="-64,64,234" roll="24" halfExtents="13,3,67" info="body, BFTopL"/> |
---|
160 | |
---|
161 | <BoxCollisionShape position="0,106,381" halfExtents="36,5,71" info="body, BTop"/> |
---|
162 | <BoxCollisionShape position="0,93,299" pitch="-49" halfExtents="34,5,20" info="body, BTop"/> |
---|
163 | <BoxCollisionShape position="41,101,381" roll="-42" halfExtents="10,4,71" info="body, BTopR"/> |
---|
164 | <BoxCollisionShape position="-41,101,381" roll="42" halfExtents="10,4,71" info="body, BTopL"/> |
---|
165 | |
---|
166 | <BoxCollisionShape position="48,-29,400" halfExtents="5,8,58" info="body, BBottomRBeam"/> |
---|
167 | <BoxCollisionShape position="48,-29,451" halfExtents="10,13,14" info="body, BBottomRBeam"/> |
---|
168 | <BoxCollisionShape position="-48,-29,400" halfExtents="5,8,58" info="body, BBottomLBeam"/> |
---|
169 | <BoxCollisionShape position="-48,-29,451" halfExtents="10,13,14" info="body, BBottomLBeam"/> |
---|
170 | |
---|
171 | <BoxCollisionShape position="0,-15,-60" halfExtents="60,25,65" info="body, bay3, Fwall"/> |
---|
172 | <BoxCollisionShape position="47,-11,90" halfExtents="13,20,90" info="body, bay3, Rwall"/> |
---|
173 | <BoxCollisionShape position="-47,-11,90" halfExtents="13,20,90" info="body, bay3, Lwall"/> |
---|
174 | <BoxCollisionShape position="0,-29,149" halfExtents="10,2,11" info="body, bay3, platform"/> |
---|
175 | <BoxCollisionShape position="0,-20,240" halfExtents="60,20,78" info="body, bay3, Bwall"/> |
---|
176 | |
---|
177 | <BoxCollisionShape position="103,60,420" halfExtents="18,9,64" info="body, bay2, Rextrusion"/> |
---|
178 | <BoxCollisionShape position="-103,60,420" halfExtents="18,9,64" info="body, bay2, Lextrusion"/> |
---|
179 | |
---|
180 | <BoxCollisionShape position="76,27,440" roll="-19" halfExtents="18,38,85" info="body, bay2, Rwall"/> |
---|
181 | <BoxCollisionShape position="75,71,440" roll="35" halfExtents="18,27,85" info="body, bay2, Rwall"/> |
---|
182 | <BoxCollisionShape position="-76,27,440" roll="19" halfExtents="18,38,85" info="body, bay2, Lwall"/> |
---|
183 | <BoxCollisionShape position="-75,71,440" roll="-35" halfExtents="18,27,85" info="body, bay2, Rwall"/> |
---|
184 | <BoxCollisionShape position="0,75,465" halfExtents="72,28,60" info="body, bay2, Twall"/> |
---|
185 | <BoxCollisionShape position="0,35,423" halfExtents="85,35,5" info="body, bay2, Fwall"/> |
---|
186 | <BoxCollisionShape position="0,-5,465" halfExtents="85,6,60" info="body, bay2, BottomWall"/> |
---|
187 | <BoxCollisionShape position="0,78,526" halfExtents="43,17,5" info="body, bay2, Twall"/> |
---|
188 | <BoxCollisionShape position="0,69,80" halfExtents="8,4,80" info="body, Cbeam"/> |
---|
189 | </collisionShapes> |
---|
190 | <?lua |
---|
191 | include("../includes/weaponSettingsHeavyCruiser.oxi") |
---|
192 | ?> |
---|
193 | </SpaceShip> |
---|
194 | </Template> |
---|
195 | |
---|
196 | <Template name=heavycruisercameras defaults=0> |
---|
197 | <SpaceShip> |
---|
198 | <camerapositions> |
---|
199 | <CameraPosition position="0,200, 1000" drag=true mouselook=true /> |
---|
200 | <CameraPosition position="0,100, 1000" drag=true mouselook=true /> |
---|
201 | <CameraPosition position="0,150,600" drag=true mouselook=true /> |
---|
202 | <CameraPosition position="0,80,-300" drag=false mouselook=false /> |
---|
203 | <CameraPosition position="200,80,300" drag=false mouselook=false /> |
---|
204 | <CameraPosition position="0,1100,60" pitch="-90" drag=false mouselook=true /> |
---|
205 | </camerapositions> |
---|
206 | </SpaceShip> |
---|
207 | </Template> |
---|
208 | |
---|
209 | <Template name=heavycruiserengine baseclass=MultiStateEngine> |
---|
210 | <MultiStateEngine |
---|
211 | boostfactor = 2 |
---|
212 | |
---|
213 | speedfront = 300 |
---|
214 | speedback = 50 |
---|
215 | speedleftright = 50 |
---|
216 | speedupdown = 50 |
---|
217 | |
---|
218 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
219 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
220 | |
---|
221 | accelerationfront = 100 |
---|
222 | accelerationbrake = 10 |
---|
223 | accelerationback = 10 |
---|
224 | accelerationleftright = 10 |
---|
225 | accelerationupdown = 10 |
---|
226 | > |
---|
227 | <EffectContainer condition="idle"> |
---|
228 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
229 | </EffectContainer> |
---|
230 | <EffectContainer condition="not idle"> |
---|
231 | <FadingBillboard mainstate=activity active=false scale=1 position="-85,58,525" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
232 | <FadingBillboard mainstate=activity active=false scale=1 position="85,58,525" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
233 | </EffectContainer> |
---|
234 | <EffectContainer condition="normal or brake"> |
---|
235 | </EffectContainer> |
---|
236 | <EffectContainer condition="normal or boost"> |
---|
237 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="85,58,525" colour="0.2, 0.65, 1.0, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
238 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-85,58,525" colour="0.2, 0.65, 1.0, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail30" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare130" /> |
---|
239 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="85,58,525" colour="0.2, 0.65, 1, 0.4" width=5 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
240 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-85,58,525" colour="0.2, 0.65, 1, 0.4" width=5 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
241 | </EffectContainer> |
---|
242 | <EffectContainer condition="boost"> |
---|
243 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="85,58,525" 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" /> |
---|
244 | <Backlight mainstate=activity active=false scale=0.6 name=bltest position="-85,58,525" 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" /> |
---|
245 | </EffectContainer> |
---|
246 | <!-- <EffectContainer condition="brake"> |
---|
247 | <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 /> |
---|
248 | <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 /> |
---|
249 | <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 /> |
---|
250 | <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 /> |
---|
251 | </EffectContainer> |
---|
252 | --> |
---|
253 | </MultiStateEngine> |
---|
254 | </Template> |
---|