author | unc0rr |
Thu, 08 Feb 2007 16:29:33 +0000 | |
changeset 415 | d6d3a6a473a3 |
parent 411 | fe3a3bd0512f |
child 423 | 5f4559ce7062 |
permissions | -rw-r--r-- |
4 | 1 |
(* |
2 |
* Hedgewars, a worms-like game |
|
393 | 3 |
* Copyright (c) 2004-2007 Andrey Korotaev <unC0Rr@gmail.com> |
4 | 4 |
* |
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
4 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
4 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
4 | 17 |
*) |
18 |
||
19 |
unit uConsts; |
|
20 |
interface |
|
80 | 21 |
uses SDLh, uLocale; |
4 | 22 |
{$INCLUDE options.inc} |
271 | 23 |
{$INCLUDE proto.inc} |
80 | 24 |
type TStuff = (sConsoleBG, sPowerBar, sQuestion, sWindBar, |
35 | 25 |
sWindL, sWindR, sRopeNode); |
282 | 26 |
|
4 | 27 |
TGameState = (gsLandGen, gsStart, gsGame, gsConsole, gsExit); |
282 | 28 |
|
155
401f4ea24715
Engine can generate land preview and send it via IPC
unc0rr
parents:
112
diff
changeset
|
29 |
TGameType = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview); |
282 | 30 |
|
80 | 31 |
TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps, |
32 |
ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts, |
|
161 | 33 |
ptLocale, ptAmmoMenu); |
282 | 34 |
|
4 | 35 |
TSprite = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame, |
36 |
sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO, |
|
10 | 37 |
sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff, |
78 | 38 |
sprMineOn, sprCase, sprFAid, sprDynamite, sprPower, |
80 | 39 |
sprClusterBomb, sprClusterParticle, sprFlame, sprHorizont, |
161 | 40 |
sprSky, sprAMBorders, sprAMSlot, sprAMSlotName, sprAMAmmos, |
283 | 41 |
sprAMSlotKeys, sprAMSelection, sprFinger, sprAirBomb, |
409 | 42 |
sprAirplane, sprAmAirplane, sprAmGirder); |
282 | 43 |
|
4 | 44 |
TGearType = (gtCloud, gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, |
83 | 45 |
gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope, |
49 | 46 |
gtSmokeTrace, gtExplosion, gtMine, gtCase, gtDEagleShot, gtDynamite, |
82 | 47 |
gtTeamHealthSorter, gtClusterBomb, gtCluster, gtShover, gtFlame, |
211 | 48 |
gtFirePunch, gtATStartGame, gtATSmoothWindCh, gtATFinishGame, |
409 | 49 |
gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, gtGirder); |
282 | 50 |
|
16 | 51 |
TGearsType = set of TGearType; |
282 | 52 |
|
53 |
TSound = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease, |
|
54 |
sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact, |
|
55 |
sndMineTick, sndPickhammer); |
|
56 |
||
82 | 57 |
TAmmoType = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer, |
58 |
amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, |
|
409 | 59 |
amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch, |
60 |
amGirder); |
|
282 | 61 |
|
4 | 62 |
THWFont = (fnt16, fntBig); |
282 | 63 |
|
174 | 64 |
TCapGroup = (capgrpGameState, capgrpAmmoinfo, capgrpNetSay, capgrpVolume); |
282 | 65 |
|
307 | 66 |
TStatInfoType = (siGameResult, siMaxStepDamage, siKilledHHs); |
306 | 67 |
|
4 | 68 |
THHFont = record |
69 |
Handle: PTTF_Font; |
|
371 | 70 |
Height: LongInt; |
71 |
style: LongInt; |
|
4 | 72 |
Name: string[15]; |
73 |
end; |
|
282 | 74 |
|
4 | 75 |
TAmmo = record |
76 |
Propz: LongWord; |
|
77 |
Count: LongWord; |
|
78 |
NumPerTurn: LongWord; |
|
79 |
Timer: LongWord; |
|
408 | 80 |
Pos: LongWord; |
4 | 81 |
AmmoType: TAmmoType; |
82 |
end; |
|
83 |
||
84 |
||
105 | 85 |
const |
43 | 86 |
errmsgCreateSurface = 'Error creating SDL surface'; |
4 | 87 |
errmsgTransparentSet = 'Error setting transparent color'; |
88 |
errmsgUnknownCommand = 'Unknown command'; |
|
89 |
errmsgUnknownVariable = 'Unknown variable'; |
|
90 |
errmsgIncorrectUse = 'Incorrect use'; |
|
91 |
errmsgShouldntRun = 'This program shouldn''t be run manually'; |
|
92 |
||
93 |
msgLoading = 'Loading '; |
|
94 |
msgOK = 'ok'; |
|
95 |
msgFailed = 'failed'; |
|
96 |
msgGettingConfig = 'Getting game config...'; |
|
97 |
||
98 |
const |
|
304 | 99 |
cMaxPower = 1500; |
100 |
cMaxAngle = 2048; |
|
101 |
cPowerDivisor = 1500; |
|
102 |
||
74 | 103 |
MAXNAMELEN = 32; |
104 |
||
64 | 105 |
COLOR_LAND = $00FFFFFF; |
106 |
||
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
107 |
cifRandomize = $00000001; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
108 |
cifTheme = $00000002; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
109 |
cifMap = $00000002; // either theme or map (or map+theme) |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
110 |
cifAllInited = cifRandomize or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
111 |
cifTheme or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
112 |
cifMap; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
113 |
|
188 | 114 |
cTransparentColor: Longword = $000000; |
4 | 115 |
|
109 | 116 |
cMaxHHIndex = 7; |
22 | 117 |
cMaxHHs = 20; |
53 | 118 |
cMaxSpawnPoints = 1024; |
4 | 119 |
|
22 | 120 |
cMaxEdgePoints = 16384; |
121 |
||
53 | 122 |
cHHRadius = 9; |
70 | 123 |
cHHStepTicks = 38; |
294 | 124 |
cHHZ = 1000; |
125 |
cCurrHHZ = Succ(cHHZ); |
|
4 | 126 |
|
109 | 127 |
cKeyMaxIndex = 1023; |
4 | 128 |
|
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
129 |
cMaxCaptions = 4; |
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
130 |
|
4 | 131 |
cInactDelay = 1500; |
132 |
||
133 |
gfForts = $00000001; |
|
134 |
||
135 |
gstDrowning = $00000001; |
|
136 |
gstHHDriven = $00000002; |
|
137 |
gstMoving = $00000004; |
|
138 |
gstAttacked = $00000008; |
|
139 |
gstAttacking = $00000010; |
|
140 |
gstCollision = $00000020; |
|
141 |
gstHHChooseTarget = $00000040; |
|
142 |
gstFalling = $00000080; |
|
143 |
gstHHJumping = $00000100; |
|
144 |
gsttmpFlag = $00000200; |
|
145 |
gstHHThinking = $00000800; |
|
79 | 146 |
gstNoDamage = $00001000; |
4 | 147 |
|
148 |
gm_Left = $00000001; |
|
149 |
gm_Right = $00000002; |
|
150 |
gm_Up = $00000004; |
|
151 |
gm_Down = $00000008; |
|
152 |
gm_Switch = $00000010; |
|
153 |
gm_Attack = $00000020; |
|
154 |
gm_LJump = $00000040; |
|
155 |
gm_HJump = $00000080; |
|
156 |
gm_Destroy= $00000100; |
|
157 |
||
263 | 158 |
cMaxSlotIndex = 8; |
409 | 159 |
cMaxSlotAmmoIndex = 2; |
4 | 160 |
|
161 |
ammoprop_Timerable = $00000001; |
|
162 |
ammoprop_Power = $00000002; |
|
163 |
ammoprop_NeedTarget = $00000004; |
|
164 |
ammoprop_ForwMsgs = $00000008; |
|
165 |
ammoprop_AttackInFall = $00000010; |
|
166 |
ammoprop_AttackInJump = $00000020; |
|
13 | 167 |
ammoprop_NoCrosshair = $00000040; |
263 | 168 |
ammoprop_AttackingPut = $00000080; |
4 | 169 |
AMMO_INFINITE = High(LongWord); |
170 |
||
42 | 171 |
EXPLAllDamageInRadius = $00000001; |
172 |
EXPLAutoSound = $00000002; |
|
173 |
EXPLNoDamage = $00000004; |
|
174 |
EXPLDoNotTouchHH = $00000008; |
|
305 | 175 |
EXPLDontDraw = $00000010; |
42 | 176 |
|
177 |
posCaseAmmo = $00000001; |
|
178 |
posCaseHealth = $00000002; |
|
4 | 179 |
|
371 | 180 |
NoPointX = Low(LongInt); |
4 | 181 |
|
74 | 182 |
cHHFileName = 'Hedgehog'; |
183 |
cCHFileName = 'Crosshair'; |
|
4 | 184 |
cThemeCFGFilename = 'theme.cfg'; |
185 |
||
186 |
Fontz: array[THWFont] of THHFont = ( |
|
351 | 187 |
(Handle: nil; |
188 |
Height: 12; |
|
202 | 189 |
style: TTF_STYLE_NORMAL; |
74 | 190 |
Name: 'DejaVuSans.ttf'), |
351 | 191 |
(Handle: nil; |
192 |
Height: 24; |
|
202 | 193 |
style: TTF_STYLE_NORMAL; |
74 | 194 |
Name: 'DejaVuSans.ttf') |
4 | 195 |
); |
196 |
||
202 | 197 |
FontBorder = 2; |
198 |
||
99 | 199 |
PathPrefix: string = './'; |
200 |
Pathz: array[TPathType] of string = ( |
|
80 | 201 |
'', // ptNone |
267 | 202 |
'', // ptData |
203 |
'Graphics', // ptGraphics |
|
204 |
'Themes', // ptThemes |
|
205 |
'Themes/avematan', // ptCurrTheme |
|
206 |
'Teams', // ptTeams |
|
207 |
'Maps', // ptMaps |
|
53 | 208 |
'', // ptMapCurrent |
267 | 209 |
'Demos', // ptDemos |
210 |
'Sounds', // ptSounds |
|
211 |
'Graphics/Graves', // ptGraves |
|
212 |
'Fonts', // ptFonts |
|
213 |
'Forts', // ptForts |
|
214 |
'Locale', // ptLocale |
|
215 |
'Graphics/AmmoMenu' // ptAmmoMenu |
|
4 | 216 |
); |
217 |
||
218 |
StuffLoadData: array[TStuff] of record |
|
219 |
FileName: String[31]; |
|
220 |
Path : TPathType; |
|
221 |
end = ( |
|
74 | 222 |
(FileName: 'Console'; Path: ptGraphics ), // sConsoleBG |
223 |
(FileName: 'PowerBar'; Path: ptGraphics ), // sPowerBar |
|
224 |
(FileName: 'thinking'; Path: ptGraphics ), // sQuestion |
|
225 |
(FileName: 'WindBar'; Path: ptGraphics ), // sWindBar |
|
226 |
(FileName: 'WindL'; Path: ptGraphics ), // sWindL |
|
227 |
(FileName: 'WindR'; Path: ptGraphics ), // sWindR |
|
228 |
(FileName: 'RopeNode'; Path: ptGraphics ) // sRopeNode |
|
4 | 229 |
); |
230 |
StuffPoz: array[TStuff] of TSDL_Rect = ( |
|
231 |
(x: 256; y: 256; w: 256; h: 256), // sConsoleBG |
|
232 |
(x: 256; y: 768; w: 256; h: 32), // sPowerBar |
|
5 | 233 |
(x: 256; y: 512; w: 32; h: 32), // sQuestion |
234 |
(x: 256; y: 800; w: 151; h: 17), // sWindBar |
|
235 |
(x: 256; y: 817; w: 80; h: 13), // sWindL |
|
35 | 236 |
(x: 336; y: 817; w: 80; h: 13), // sWindR |
237 |
(x: 256; y: 544; w: 6; h: 6) // sRopeNode |
|
4 | 238 |
); |
239 |
SpritesData: array[TSprite] of record |
|
35 | 240 |
FileName: String[31]; |
80 | 241 |
Path, AltPath: TPathType; |
35 | 242 |
Surface : PSDL_Surface; |
371 | 243 |
Width, Height: LongInt; |
35 | 244 |
hasAlpha: boolean; |
245 |
end = ( |
|
351 | 246 |
(FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
247 |
Width: 256; Height: 48; hasAlpha: false),// sprWater |
|
248 |
(FileName: 'Clouds'; Path: ptCurrTheme; AltPath: ptGraphics; Surface: nil; |
|
249 |
Width: 256; Height:128; hasAlpha: false),// sprCloud |
|
250 |
(FileName: 'Bomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
251 |
Width: 16; Height: 16; hasAlpha: false),// sprBomb |
|
252 |
(FileName: 'BigDigits'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
253 |
Width: 32; Height: 32; hasAlpha: true),// sprBigDigit |
|
254 |
(FileName: 'Frame'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
255 |
Width: 4; Height: 32; hasAlpha: true),// sprFrame |
|
256 |
(FileName: 'Lag'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
257 |
Width: 64; Height: 64; hasAlpha: false),// sprLag |
|
258 |
(FileName: 'Arrow'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
259 |
Width: 16; Height: 16; hasAlpha: false),// sprCursor |
|
260 |
(FileName: 'Grenade'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
261 |
Width: 32; Height: 32; hasAlpha: false),// sprGrenade |
|
262 |
(FileName: 'Targetp'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
263 |
Width: 32; Height: 32; hasAlpha: false),// sprTargetP |
|
264 |
(FileName: 'UFO'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
265 |
Width: 32; Height: 32; hasAlpha: false),// sprUFO |
|
266 |
(FileName:'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
267 |
Width: 32; Height: 32; hasAlpha: true),// sprSmokeTrace |
|
268 |
(FileName: 'RopeHook'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
269 |
Width: 32; Height: 32; hasAlpha: false),// sprRopeHook |
|
270 |
(FileName: 'Expl50'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
271 |
Width: 64; Height: 64; hasAlpha: false),// sprExplosion50 |
|
272 |
(FileName: 'MineOff'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
273 |
Width: 16; Height: 16; hasAlpha: false),// sprMineOff |
|
274 |
(FileName: 'MineOn'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
275 |
Width: 16; Height: 16; hasAlpha: false),// sprMineOn |
|
276 |
(FileName: 'Case'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
277 |
Width: 32; Height: 32; hasAlpha: false),// sprCase |
|
278 |
(FileName: 'FirstAid'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
279 |
Width: 48; Height: 48; hasAlpha: false),// sprFAid |
|
280 |
(FileName: 'dynamite'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
281 |
Width: 32; Height: 32; hasAlpha: false),// sprDynamite |
|
282 |
(FileName: 'Power'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
283 |
Width: 32; Height: 32; hasAlpha: true),// sprPower |
|
284 |
(FileName: 'ClBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
285 |
Width: 16; Height: 16; hasAlpha: false),// sprClusterBomb |
|
286 |
(FileName:'ClParticle'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
287 |
Width: 16; Height: 16; hasAlpha: false),// sprClusterParticle |
|
288 |
(FileName: 'Flame'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
289 |
Width: 16; Height: 16; hasAlpha: false),// sprFlame |
|
290 |
(FileName: 'horizont'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil; |
|
291 |
Width: 0; Height: 0; hasAlpha: false),// sprHorizont |
|
292 |
(FileName: 'Sky'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil; |
|
293 |
Width: 0; Height: 0; hasAlpha: false),// sprSky |
|
294 |
(FileName: 'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
295 |
Width: 202; Height: 1; hasAlpha: false),// sprAMBorders |
|
296 |
(FileName: 'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
297 |
Width: 202; Height: 33; hasAlpha: false),// sprAMSlot |
|
298 |
(FileName: 'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
299 |
Width: 202; Height: 33; hasAlpha: false),// sprAMSlotName |
|
300 |
(FileName: 'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
301 |
Width: 32; Height: 32; hasAlpha: false),// sprAMAmmos |
|
302 |
(FileName: 'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
303 |
Width: 32; Height: 32; hasAlpha: false),// sprAMSlotKeys |
|
304 |
(FileName: 'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
305 |
Width: 32; Height: 32; hasAlpha: false),// sprAMSelection |
|
306 |
(FileName: 'Finger'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
307 |
Width: 32; Height: 48; hasAlpha: false),// sprFinger |
|
308 |
(FileName: 'AirBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
309 |
Width: 32; Height: 32; hasAlpha: false),// sprAirBomb |
|
310 |
(FileName: 'Airplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
408 | 311 |
Width: 125; Height: 42; hasAlpha: false),// sprAirplane |
312 |
(FileName:'amAirplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
409 | 313 |
Width: 64; Height: 32; hasAlpha: true),// sprAirplane |
314 |
(FileName: 'amGirder'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
315 |
Width: 128; Height:128; hasAlpha: false) // sprAmGirder |
|
35 | 316 |
); |
4 | 317 |
Soundz: array[TSound] of record |
318 |
FileName: String[31]; |
|
319 |
Path : TPathType; |
|
320 |
id : PMixChunk; |
|
282 | 321 |
lastChan: LongInt; |
4 | 322 |
end = ( |
323 |
(FileName: 'grenadeimpact.ogg'; Path: ptSounds ),// sndGrenadeImpact |
|
324 |
(FileName: 'explosion.ogg'; Path: ptSounds ),// sndExplosion |
|
325 |
(FileName: 'throwpowerup.ogg'; Path: ptSounds ),// sndThrowPowerUp |
|
326 |
(FileName: 'throwrelease.ogg'; Path: ptSounds ),// sndThrowRelease |
|
327 |
(FileName: 'splash.ogg'; Path: ptSounds ),// sndSplash |
|
328 |
(FileName: 'shotgunreload.ogg'; Path: ptSounds ),// sndShotgunReload |
|
329 |
(FileName: 'shotgunfire.ogg'; Path: ptSounds ),// sndShotgunFire |
|
13 | 330 |
(FileName: 'graveimpact.ogg'; Path: ptSounds ),// sndGraveImpact |
282 | 331 |
(FileName: 'minetick.ogg'; Path: ptSounds ),// sndMineTicks |
332 |
(FileName: 'pickhammer.ogg'; Path: ptSounds ) // sndPickhammer |
|
4 | 333 |
); |
334 |
||
335 |
Ammoz: array [TAmmoType] of record |
|
80 | 336 |
NameId: TAmmoStrId; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
337 |
Probability, NumberInCase: Longword; |
4 | 338 |
Ammo: TAmmo; |
112 | 339 |
Slot: 0..cMaxSlotIndex; |
4 | 340 |
TimeAfterTurn: Longword; |
304 | 341 |
minAngle, maxAngle: Longword; |
408 | 342 |
PosCount: Longword; |
343 |
PosSprite: TSprite; |
|
4 | 344 |
end = ( |
80 | 345 |
(NameId: sidGrenade; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
346 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
347 |
NumberInCase: 1; |
263 | 348 |
Ammo: (Propz: ammoprop_Timerable or |
349 |
ammoprop_Power; |
|
4 | 350 |
Count: AMMO_INFINITE; |
351 |
NumPerTurn: 0; |
|
352 |
Timer: 3000; |
|
408 | 353 |
Pos: 0; |
4 | 354 |
AmmoType: amGrenade); |
10 | 355 |
Slot: 1; |
351 | 356 |
TimeAfterTurn: 3000; |
357 |
minAngle: 0; |
|
408 | 358 |
maxAngle: 0; |
359 |
PosCount: 1), |
|
80 | 360 |
(NameId: sidClusterBomb; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
361 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
362 |
NumberInCase: 3; |
263 | 363 |
Ammo: (Propz: ammoprop_Timerable or |
364 |
ammoprop_Power; |
|
78 | 365 |
Count: 5; |
366 |
NumPerTurn: 0; |
|
367 |
Timer: 3000; |
|
408 | 368 |
Pos: 0; |
78 | 369 |
AmmoType: amClusterBomb); |
370 |
Slot: 1; |
|
351 | 371 |
TimeAfterTurn: 3000; |
372 |
minAngle: 0; |
|
408 | 373 |
maxAngle: 0; |
374 |
PosCount: 1), |
|
80 | 375 |
(NameId: sidBazooka; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
376 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
377 |
NumberInCase: 1; |
4 | 378 |
Ammo: (Propz: ammoprop_Power; |
379 |
Count: AMMO_INFINITE; |
|
380 |
NumPerTurn: 0; |
|
381 |
Timer: 0; |
|
408 | 382 |
Pos: 0; |
4 | 383 |
AmmoType: amBazooka); |
10 | 384 |
Slot: 0; |
351 | 385 |
TimeAfterTurn: 3000; |
386 |
minAngle: 0; |
|
408 | 387 |
maxAngle: 0; |
388 |
PosCount: 1), |
|
80 | 389 |
(NameId: sidUFO; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
390 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
391 |
NumberInCase: 1; |
263 | 392 |
Ammo: (Propz: ammoprop_Power or |
393 |
ammoprop_NeedTarget; |
|
56 | 394 |
Count: 2; |
4 | 395 |
NumPerTurn: 0; |
396 |
Timer: 0; |
|
408 | 397 |
Pos: 0; |
4 | 398 |
AmmoType: amUFO); |
399 |
Slot: 0; |
|
351 | 400 |
TimeAfterTurn: 3000; |
401 |
minAngle: 0; |
|
408 | 402 |
maxAngle: 0; |
403 |
PosCount: 1), |
|
80 | 404 |
(NameId: sidShotgun; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
405 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
406 |
NumberInCase: 1; |
95 | 407 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 408 |
Count: AMMO_INFINITE; |
409 |
NumPerTurn: 1; |
|
410 |
Timer: 0; |
|
408 | 411 |
Pos: 0; |
4 | 412 |
AmmoType: amShotgun); |
413 |
Slot: 2; |
|
351 | 414 |
TimeAfterTurn: 3000; |
415 |
minAngle: 0; |
|
408 | 416 |
maxAngle: 0; |
417 |
PosCount: 1), |
|
80 | 418 |
(NameId: sidPickHammer; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
419 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
420 |
NumberInCase: 1; |
263 | 421 |
Ammo: (Propz: ammoprop_ForwMsgs or |
422 |
ammoprop_AttackInFall or |
|
423 |
ammoprop_AttackInJump or |
|
424 |
ammoprop_NoCrosshair; |
|
4 | 425 |
Count: 2; |
426 |
NumPerTurn: 0; |
|
427 |
Timer: 0; |
|
408 | 428 |
Pos: 0; |
4 | 429 |
AmmoType: amPickHammer); |
263 | 430 |
Slot: 6; |
351 | 431 |
TimeAfterTurn: 0; |
432 |
minAngle: 0; |
|
408 | 433 |
maxAngle: 0; |
434 |
PosCount: 1), |
|
80 | 435 |
(NameId: sidSkip; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
436 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
437 |
NumberInCase: 1; |
4 | 438 |
Ammo: (Propz: 0; |
439 |
Count: AMMO_INFINITE; |
|
440 |
NumPerTurn: 0; |
|
441 |
Timer: 0; |
|
408 | 442 |
Pos: 0; |
4 | 443 |
AmmoType: amSkip); |
263 | 444 |
Slot: 8; |
351 | 445 |
TimeAfterTurn: 0; |
446 |
minAngle: 0; |
|
408 | 447 |
maxAngle: 0; |
448 |
PosCount: 1), |
|
80 | 449 |
(NameId: sidRope; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
450 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
451 |
NumberInCase: 3; |
263 | 452 |
Ammo: (Propz: ammoprop_ForwMsgs or |
453 |
ammoprop_AttackInFall or |
|
454 |
ammoprop_AttackInJump; |
|
4 | 455 |
Count: 5; |
456 |
NumPerTurn: 0; |
|
457 |
Timer: 0; |
|
408 | 458 |
Pos: 0; |
4 | 459 |
AmmoType: amRope); |
263 | 460 |
Slot: 7; |
304 | 461 |
TimeAfterTurn: 0; |
351 | 462 |
minAngle: 0; |
408 | 463 |
maxAngle: cMaxAngle div 2; |
464 |
PosCount: 1), |
|
80 | 465 |
(NameId: sidMine; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
466 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
467 |
NumberInCase: 1; |
13 | 468 |
Ammo: (Propz: ammoprop_NoCrosshair; |
56 | 469 |
Count: 2; |
10 | 470 |
NumPerTurn: 0; |
471 |
Timer: 0; |
|
408 | 472 |
Pos: 0; |
10 | 473 |
AmmoType: amMine); |
79 | 474 |
Slot: 4; |
351 | 475 |
TimeAfterTurn: 5000; |
476 |
minAngle: 0; |
|
408 | 477 |
maxAngle: 0; |
478 |
PosCount: 1), |
|
80 | 479 |
(NameId: sidDEagle; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
480 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
481 |
NumberInCase: 2; |
37 | 482 |
Ammo: (Propz: 0; |
75 | 483 |
Count: 3; |
37 | 484 |
NumPerTurn: 3; |
485 |
Timer: 0; |
|
408 | 486 |
Pos: 0; |
37 | 487 |
AmmoType: amDEagle); |
488 |
Slot: 2; |
|
351 | 489 |
TimeAfterTurn: 3000; |
490 |
minAngle: 0; |
|
408 | 491 |
maxAngle: 0; |
492 |
PosCount: 1), |
|
493 |
(NameId: sidDynamite; |
|
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
494 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
495 |
NumberInCase: 1; |
408 | 496 |
Ammo: (Propz: ammoprop_NoCrosshair or |
497 |
ammoprop_AttackInJump or |
|
498 |
ammoprop_AttackInFall; |
|
499 |
Count: 1; |
|
500 |
NumPerTurn: 0; |
|
501 |
Timer: 0; |
|
502 |
Pos: 0; |
|
503 |
AmmoType: amDynamite); |
|
504 |
Slot: 4; |
|
505 |
TimeAfterTurn: 5000; |
|
351 | 506 |
minAngle: 0; |
408 | 507 |
maxAngle: 0; |
508 |
PosCount: 1), |
|
509 |
(NameId: sidFirePunch; |
|
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
510 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
511 |
NumberInCase: 1; |
408 | 512 |
Ammo: (Propz: ammoprop_NoCrosshair or |
513 |
ammoprop_ForwMsgs or |
|
514 |
ammoprop_AttackInJump or |
|
515 |
ammoprop_AttackInFall; |
|
516 |
Count: AMMO_INFINITE; |
|
517 |
NumPerTurn: 0; |
|
518 |
Timer: 0; |
|
519 |
Pos: 0; |
|
520 |
AmmoType: amFirePunch); |
|
521 |
Slot: 3; |
|
522 |
TimeAfterTurn: 3000; |
|
523 |
MinAngle: 0; |
|
524 |
maxAngle: 0; |
|
525 |
PosCount: 1), |
|
526 |
(NameId: sidBaseballBat; |
|
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
527 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
528 |
NumberInCase: 1; |
408 | 529 |
Ammo: (Propz: 0; |
530 |
Count: 1; |
|
531 |
NumPerTurn: 0; |
|
532 |
Timer: 0; |
|
533 |
Pos: 0; |
|
534 |
AmmoType: amBaseballBat); |
|
535 |
Slot: 3; |
|
536 |
TimeAfterTurn: 5000; |
|
351 | 537 |
minAngle: 0; |
408 | 538 |
maxAngle: cMaxAngle div 2; |
539 |
PosCount: 1), |
|
211 | 540 |
(NameId: sidParachute; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
541 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
542 |
NumberInCase: 1; |
263 | 543 |
Ammo: (Propz: ammoprop_ForwMsgs or |
544 |
ammoprop_AttackInJump or |
|
545 |
ammoprop_AttackInFall; |
|
211 | 546 |
Count: 2; |
547 |
NumPerTurn: 0; |
|
548 |
Timer: 0; |
|
408 | 549 |
Pos: 0; |
211 | 550 |
AmmoType: amParachute); |
263 | 551 |
Slot: 7; |
351 | 552 |
TimeAfterTurn: 0; |
553 |
minAngle: 0; |
|
408 | 554 |
maxAngle: 0; |
555 |
PosCount: 1), |
|
263 | 556 |
(NameId: sidAirAttack; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
557 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
558 |
NumberInCase: 1; |
263 | 559 |
Ammo: (Propz: ammoprop_NoCrosshair or |
560 |
ammoprop_NeedTarget or |
|
561 |
ammoprop_AttackingPut; |
|
285 | 562 |
Count: 1; |
263 | 563 |
NumPerTurn: 0; |
564 |
Timer: 0; |
|
408 | 565 |
Pos: 0; |
263 | 566 |
AmmoType: amAirAttack); |
567 |
Slot: 5; |
|
351 | 568 |
TimeAfterTurn: 0; |
569 |
minAngle: 0; |
|
408 | 570 |
maxAngle: 0; |
571 |
PosCount: 2; |
|
572 |
PosSprite: sprAmAirplane), |
|
285 | 573 |
(NameId: sidMineStrike; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
574 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
575 |
NumberInCase: 1; |
285 | 576 |
Ammo: (Propz: ammoprop_NoCrosshair or |
577 |
ammoprop_NeedTarget or |
|
578 |
ammoprop_AttackingPut; |
|
579 |
Count: 1; |
|
580 |
NumPerTurn: 0; |
|
581 |
Timer: 0; |
|
408 | 582 |
Pos: 0; |
285 | 583 |
AmmoType: amMineStrike); |
584 |
Slot: 5; |
|
351 | 585 |
TimeAfterTurn: 0; |
586 |
minAngle: 0; |
|
408 | 587 |
maxAngle: 0; |
588 |
PosCount: 2; |
|
589 |
PosSprite: sprAmAirplane), |
|
302 | 590 |
(NameId: sidBlowTorch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
591 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
592 |
NumberInCase: 2; |
302 | 593 |
Ammo: (Propz: ammoprop_ForwMsgs; |
594 |
Count: 1; |
|
595 |
NumPerTurn: 0; |
|
596 |
Timer: 0; |
|
408 | 597 |
Pos: 0; |
302 | 598 |
AmmoType: amBlowTorch); |
599 |
Slot: 6; |
|
304 | 600 |
TimeAfterTurn: 3000; |
305 | 601 |
minAngle: 768; |
408 | 602 |
maxAngle: 1280; |
409 | 603 |
PosCount: 1), |
604 |
(NameId: sidGirder; |
|
605 |
Probability: 400; |
|
411 | 606 |
NumberInCase: 3; |
409 | 607 |
Ammo: (Propz: ammoprop_NoCrosshair or |
608 |
ammoprop_NeedTarget or |
|
609 |
ammoprop_AttackingPut; |
|
610 |
Count: 1; |
|
611 |
NumPerTurn: 0; |
|
612 |
Timer: 0; |
|
613 |
Pos: 0; |
|
614 |
AmmoType: amGirder); |
|
615 |
Slot: 6; |
|
616 |
TimeAfterTurn: 3000; |
|
617 |
minAngle: 0; |
|
618 |
maxAngle: 0; |
|
619 |
PosCount: 4; |
|
620 |
PosSprite: sprAmGirder)); |
|
37 | 621 |
|
4 | 622 |
implementation |
623 |
||
624 |
end. |