author | unc0rr |
Wed, 09 May 2007 20:32:41 +0000 | |
changeset 511 | 2b5b9e00419d |
parent 509 | fd58135a4407 |
child 520 | e83dfb7ffead |
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; |
423 | 117 |
cMaxHHs = 30; |
53 | 118 |
cMaxSpawnPoints = 1024; |
4 | 119 |
|
22 | 120 |
cMaxEdgePoints = 16384; |
121 |
||
53 | 122 |
cHHRadius = 9; |
70 | 123 |
cHHStepTicks = 38; |
509 | 124 |
|
294 | 125 |
cHHZ = 1000; |
126 |
cCurrHHZ = Succ(cHHZ); |
|
4 | 127 |
|
509 | 128 |
cShotgunRadius = 22; |
511 | 129 |
cBlowTorchC = 6; |
509 | 130 |
|
109 | 131 |
cKeyMaxIndex = 1023; |
4 | 132 |
|
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
133 |
cMaxCaptions = 4; |
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
134 |
|
4 | 135 |
cInactDelay = 1500; |
136 |
||
137 |
gfForts = $00000001; |
|
138 |
||
139 |
gstDrowning = $00000001; |
|
140 |
gstHHDriven = $00000002; |
|
141 |
gstMoving = $00000004; |
|
142 |
gstAttacked = $00000008; |
|
143 |
gstAttacking = $00000010; |
|
144 |
gstCollision = $00000020; |
|
145 |
gstHHChooseTarget = $00000040; |
|
146 |
gstFalling = $00000080; |
|
147 |
gstHHJumping = $00000100; |
|
148 |
gsttmpFlag = $00000200; |
|
149 |
gstHHThinking = $00000800; |
|
79 | 150 |
gstNoDamage = $00001000; |
424 | 151 |
gstHHHJump = $00002000; |
511 | 152 |
gstAnimation = $00004000; |
4 | 153 |
|
154 |
gm_Left = $00000001; |
|
155 |
gm_Right = $00000002; |
|
156 |
gm_Up = $00000004; |
|
157 |
gm_Down = $00000008; |
|
158 |
gm_Switch = $00000010; |
|
159 |
gm_Attack = $00000020; |
|
160 |
gm_LJump = $00000040; |
|
161 |
gm_HJump = $00000080; |
|
162 |
gm_Destroy= $00000100; |
|
163 |
||
263 | 164 |
cMaxSlotIndex = 8; |
409 | 165 |
cMaxSlotAmmoIndex = 2; |
4 | 166 |
|
167 |
ammoprop_Timerable = $00000001; |
|
168 |
ammoprop_Power = $00000002; |
|
169 |
ammoprop_NeedTarget = $00000004; |
|
170 |
ammoprop_ForwMsgs = $00000008; |
|
171 |
ammoprop_AttackInFall = $00000010; |
|
172 |
ammoprop_AttackInJump = $00000020; |
|
13 | 173 |
ammoprop_NoCrosshair = $00000040; |
263 | 174 |
ammoprop_AttackingPut = $00000080; |
4 | 175 |
AMMO_INFINITE = High(LongWord); |
176 |
||
42 | 177 |
EXPLAllDamageInRadius = $00000001; |
178 |
EXPLAutoSound = $00000002; |
|
179 |
EXPLNoDamage = $00000004; |
|
180 |
EXPLDoNotTouchHH = $00000008; |
|
305 | 181 |
EXPLDontDraw = $00000010; |
42 | 182 |
|
183 |
posCaseAmmo = $00000001; |
|
184 |
posCaseHealth = $00000002; |
|
4 | 185 |
|
371 | 186 |
NoPointX = Low(LongInt); |
4 | 187 |
|
74 | 188 |
cHHFileName = 'Hedgehog'; |
189 |
cCHFileName = 'Crosshair'; |
|
4 | 190 |
cThemeCFGFilename = 'theme.cfg'; |
191 |
||
192 |
Fontz: array[THWFont] of THHFont = ( |
|
351 | 193 |
(Handle: nil; |
194 |
Height: 12; |
|
202 | 195 |
style: TTF_STYLE_NORMAL; |
74 | 196 |
Name: 'DejaVuSans.ttf'), |
351 | 197 |
(Handle: nil; |
198 |
Height: 24; |
|
202 | 199 |
style: TTF_STYLE_NORMAL; |
74 | 200 |
Name: 'DejaVuSans.ttf') |
4 | 201 |
); |
202 |
||
202 | 203 |
FontBorder = 2; |
204 |
||
99 | 205 |
PathPrefix: string = './'; |
206 |
Pathz: array[TPathType] of string = ( |
|
80 | 207 |
'', // ptNone |
267 | 208 |
'', // ptData |
209 |
'Graphics', // ptGraphics |
|
210 |
'Themes', // ptThemes |
|
211 |
'Themes/avematan', // ptCurrTheme |
|
212 |
'Teams', // ptTeams |
|
213 |
'Maps', // ptMaps |
|
53 | 214 |
'', // ptMapCurrent |
267 | 215 |
'Demos', // ptDemos |
216 |
'Sounds', // ptSounds |
|
217 |
'Graphics/Graves', // ptGraves |
|
218 |
'Fonts', // ptFonts |
|
219 |
'Forts', // ptForts |
|
220 |
'Locale', // ptLocale |
|
221 |
'Graphics/AmmoMenu' // ptAmmoMenu |
|
4 | 222 |
); |
223 |
||
224 |
StuffLoadData: array[TStuff] of record |
|
225 |
FileName: String[31]; |
|
226 |
Path : TPathType; |
|
227 |
end = ( |
|
74 | 228 |
(FileName: 'Console'; Path: ptGraphics ), // sConsoleBG |
229 |
(FileName: 'PowerBar'; Path: ptGraphics ), // sPowerBar |
|
230 |
(FileName: 'thinking'; Path: ptGraphics ), // sQuestion |
|
231 |
(FileName: 'WindBar'; Path: ptGraphics ), // sWindBar |
|
232 |
(FileName: 'WindL'; Path: ptGraphics ), // sWindL |
|
233 |
(FileName: 'WindR'; Path: ptGraphics ), // sWindR |
|
234 |
(FileName: 'RopeNode'; Path: ptGraphics ) // sRopeNode |
|
4 | 235 |
); |
236 |
StuffPoz: array[TStuff] of TSDL_Rect = ( |
|
237 |
(x: 256; y: 256; w: 256; h: 256), // sConsoleBG |
|
238 |
(x: 256; y: 768; w: 256; h: 32), // sPowerBar |
|
5 | 239 |
(x: 256; y: 512; w: 32; h: 32), // sQuestion |
240 |
(x: 256; y: 800; w: 151; h: 17), // sWindBar |
|
241 |
(x: 256; y: 817; w: 80; h: 13), // sWindL |
|
35 | 242 |
(x: 336; y: 817; w: 80; h: 13), // sWindR |
243 |
(x: 256; y: 544; w: 6; h: 6) // sRopeNode |
|
4 | 244 |
); |
245 |
SpritesData: array[TSprite] of record |
|
35 | 246 |
FileName: String[31]; |
80 | 247 |
Path, AltPath: TPathType; |
35 | 248 |
Surface : PSDL_Surface; |
371 | 249 |
Width, Height: LongInt; |
35 | 250 |
hasAlpha: boolean; |
251 |
end = ( |
|
351 | 252 |
(FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
253 |
Width: 256; Height: 48; hasAlpha: false),// sprWater |
|
254 |
(FileName: 'Clouds'; Path: ptCurrTheme; AltPath: ptGraphics; Surface: nil; |
|
255 |
Width: 256; Height:128; hasAlpha: false),// sprCloud |
|
256 |
(FileName: 'Bomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
257 |
Width: 16; Height: 16; hasAlpha: false),// sprBomb |
|
258 |
(FileName: 'BigDigits'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
259 |
Width: 32; Height: 32; hasAlpha: true),// sprBigDigit |
|
260 |
(FileName: 'Frame'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
261 |
Width: 4; Height: 32; hasAlpha: true),// sprFrame |
|
262 |
(FileName: 'Lag'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
446 | 263 |
Width: 65; Height: 65; hasAlpha: true),// sprLag |
351 | 264 |
(FileName: 'Arrow'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
265 |
Width: 16; Height: 16; hasAlpha: false),// sprCursor |
|
266 |
(FileName: 'Grenade'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
267 |
Width: 32; Height: 32; hasAlpha: false),// sprGrenade |
|
268 |
(FileName: 'Targetp'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
269 |
Width: 32; Height: 32; hasAlpha: false),// sprTargetP |
|
270 |
(FileName: 'UFO'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
271 |
Width: 32; Height: 32; hasAlpha: false),// sprUFO |
|
272 |
(FileName:'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
273 |
Width: 32; Height: 32; hasAlpha: true),// sprSmokeTrace |
|
274 |
(FileName: 'RopeHook'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
275 |
Width: 32; Height: 32; hasAlpha: false),// sprRopeHook |
|
276 |
(FileName: 'Expl50'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
277 |
Width: 64; Height: 64; hasAlpha: false),// sprExplosion50 |
|
278 |
(FileName: 'MineOff'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
279 |
Width: 16; Height: 16; hasAlpha: false),// sprMineOff |
|
280 |
(FileName: 'MineOn'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
281 |
Width: 16; Height: 16; hasAlpha: false),// sprMineOn |
|
282 |
(FileName: 'Case'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
283 |
Width: 32; Height: 32; hasAlpha: false),// sprCase |
|
284 |
(FileName: 'FirstAid'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
285 |
Width: 48; Height: 48; hasAlpha: false),// sprFAid |
|
286 |
(FileName: 'dynamite'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
287 |
Width: 32; Height: 32; hasAlpha: false),// sprDynamite |
|
288 |
(FileName: 'Power'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
289 |
Width: 32; Height: 32; hasAlpha: true),// sprPower |
|
290 |
(FileName: 'ClBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
291 |
Width: 16; Height: 16; hasAlpha: false),// sprClusterBomb |
|
292 |
(FileName:'ClParticle'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
293 |
Width: 16; Height: 16; hasAlpha: false),// sprClusterParticle |
|
294 |
(FileName: 'Flame'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
295 |
Width: 16; Height: 16; hasAlpha: false),// sprFlame |
|
296 |
(FileName: 'horizont'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil; |
|
297 |
Width: 0; Height: 0; hasAlpha: false),// sprHorizont |
|
298 |
(FileName: 'Sky'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil; |
|
299 |
Width: 0; Height: 0; hasAlpha: false),// sprSky |
|
300 |
(FileName: 'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
301 |
Width: 202; Height: 1; hasAlpha: false),// sprAMBorders |
|
302 |
(FileName: 'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
303 |
Width: 202; Height: 33; hasAlpha: false),// sprAMSlot |
|
304 |
(FileName: 'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
305 |
Width: 202; Height: 33; hasAlpha: false),// sprAMSlotName |
|
306 |
(FileName: 'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
307 |
Width: 32; Height: 32; hasAlpha: false),// sprAMAmmos |
|
308 |
(FileName: 'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
309 |
Width: 32; Height: 32; hasAlpha: false),// sprAMSlotKeys |
|
310 |
(FileName: 'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil; |
|
311 |
Width: 32; Height: 32; hasAlpha: false),// sprAMSelection |
|
312 |
(FileName: 'Finger'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
313 |
Width: 32; Height: 48; hasAlpha: false),// sprFinger |
|
314 |
(FileName: 'AirBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
315 |
Width: 32; Height: 32; hasAlpha: false),// sprAirBomb |
|
316 |
(FileName: 'Airplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
408 | 317 |
Width: 125; Height: 42; hasAlpha: false),// sprAirplane |
318 |
(FileName:'amAirplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
409 | 319 |
Width: 64; Height: 32; hasAlpha: true),// sprAirplane |
320 |
(FileName: 'amGirder'; Path: ptGraphics; AltPath: ptNone; Surface: nil; |
|
423 | 321 |
Width: 160; Height:160; hasAlpha: false) // sprAmGirder |
35 | 322 |
); |
4 | 323 |
Soundz: array[TSound] of record |
324 |
FileName: String[31]; |
|
325 |
Path : TPathType; |
|
326 |
id : PMixChunk; |
|
282 | 327 |
lastChan: LongInt; |
4 | 328 |
end = ( |
467 | 329 |
(FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact |
330 |
(FileName: 'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion |
|
331 |
(FileName: 'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp |
|
332 |
(FileName: 'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease |
|
333 |
(FileName: 'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash |
|
334 |
(FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload |
|
335 |
(FileName: 'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire |
|
336 |
(FileName: 'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact |
|
337 |
(FileName: 'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks |
|
338 |
(FileName: 'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndPickhammer |
|
4 | 339 |
); |
340 |
||
341 |
Ammoz: array [TAmmoType] of record |
|
80 | 342 |
NameId: TAmmoStrId; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
343 |
Probability, NumberInCase: Longword; |
4 | 344 |
Ammo: TAmmo; |
112 | 345 |
Slot: 0..cMaxSlotIndex; |
4 | 346 |
TimeAfterTurn: Longword; |
304 | 347 |
minAngle, maxAngle: Longword; |
408 | 348 |
PosCount: Longword; |
349 |
PosSprite: TSprite; |
|
4 | 350 |
end = ( |
80 | 351 |
(NameId: sidGrenade; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
352 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
353 |
NumberInCase: 1; |
263 | 354 |
Ammo: (Propz: ammoprop_Timerable or |
355 |
ammoprop_Power; |
|
4 | 356 |
Count: AMMO_INFINITE; |
357 |
NumPerTurn: 0; |
|
358 |
Timer: 3000; |
|
408 | 359 |
Pos: 0; |
4 | 360 |
AmmoType: amGrenade); |
10 | 361 |
Slot: 1; |
351 | 362 |
TimeAfterTurn: 3000; |
363 |
minAngle: 0; |
|
408 | 364 |
maxAngle: 0; |
495 | 365 |
PosCount: 1; |
366 |
PosSprite: sprWater), |
|
80 | 367 |
(NameId: sidClusterBomb; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
368 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
369 |
NumberInCase: 3; |
263 | 370 |
Ammo: (Propz: ammoprop_Timerable or |
371 |
ammoprop_Power; |
|
78 | 372 |
Count: 5; |
373 |
NumPerTurn: 0; |
|
374 |
Timer: 3000; |
|
408 | 375 |
Pos: 0; |
78 | 376 |
AmmoType: amClusterBomb); |
377 |
Slot: 1; |
|
351 | 378 |
TimeAfterTurn: 3000; |
379 |
minAngle: 0; |
|
408 | 380 |
maxAngle: 0; |
495 | 381 |
PosCount: 1; |
382 |
PosSprite: sprWater), |
|
80 | 383 |
(NameId: sidBazooka; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
384 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
385 |
NumberInCase: 1; |
4 | 386 |
Ammo: (Propz: ammoprop_Power; |
387 |
Count: AMMO_INFINITE; |
|
388 |
NumPerTurn: 0; |
|
389 |
Timer: 0; |
|
408 | 390 |
Pos: 0; |
4 | 391 |
AmmoType: amBazooka); |
10 | 392 |
Slot: 0; |
351 | 393 |
TimeAfterTurn: 3000; |
394 |
minAngle: 0; |
|
408 | 395 |
maxAngle: 0; |
495 | 396 |
PosCount: 1; |
397 |
PosSprite: sprWater), |
|
80 | 398 |
(NameId: sidUFO; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
399 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
400 |
NumberInCase: 1; |
263 | 401 |
Ammo: (Propz: ammoprop_Power or |
402 |
ammoprop_NeedTarget; |
|
56 | 403 |
Count: 2; |
4 | 404 |
NumPerTurn: 0; |
405 |
Timer: 0; |
|
408 | 406 |
Pos: 0; |
4 | 407 |
AmmoType: amUFO); |
408 |
Slot: 0; |
|
351 | 409 |
TimeAfterTurn: 3000; |
410 |
minAngle: 0; |
|
408 | 411 |
maxAngle: 0; |
495 | 412 |
PosCount: 1; |
413 |
PosSprite: sprWater), |
|
80 | 414 |
(NameId: sidShotgun; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
415 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
416 |
NumberInCase: 1; |
95 | 417 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 418 |
Count: AMMO_INFINITE; |
419 |
NumPerTurn: 1; |
|
420 |
Timer: 0; |
|
408 | 421 |
Pos: 0; |
4 | 422 |
AmmoType: amShotgun); |
423 |
Slot: 2; |
|
351 | 424 |
TimeAfterTurn: 3000; |
425 |
minAngle: 0; |
|
408 | 426 |
maxAngle: 0; |
495 | 427 |
PosCount: 1; |
428 |
PosSprite: sprWater), |
|
80 | 429 |
(NameId: sidPickHammer; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
430 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
431 |
NumberInCase: 1; |
263 | 432 |
Ammo: (Propz: ammoprop_ForwMsgs or |
433 |
ammoprop_AttackInFall or |
|
434 |
ammoprop_AttackInJump or |
|
435 |
ammoprop_NoCrosshair; |
|
4 | 436 |
Count: 2; |
437 |
NumPerTurn: 0; |
|
438 |
Timer: 0; |
|
408 | 439 |
Pos: 0; |
4 | 440 |
AmmoType: amPickHammer); |
263 | 441 |
Slot: 6; |
351 | 442 |
TimeAfterTurn: 0; |
443 |
minAngle: 0; |
|
408 | 444 |
maxAngle: 0; |
495 | 445 |
PosCount: 1; |
446 |
PosSprite: sprWater), |
|
80 | 447 |
(NameId: sidSkip; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
448 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
449 |
NumberInCase: 1; |
4 | 450 |
Ammo: (Propz: 0; |
451 |
Count: AMMO_INFINITE; |
|
452 |
NumPerTurn: 0; |
|
453 |
Timer: 0; |
|
408 | 454 |
Pos: 0; |
4 | 455 |
AmmoType: amSkip); |
263 | 456 |
Slot: 8; |
351 | 457 |
TimeAfterTurn: 0; |
458 |
minAngle: 0; |
|
408 | 459 |
maxAngle: 0; |
495 | 460 |
PosCount: 1; |
461 |
PosSprite: sprWater), |
|
80 | 462 |
(NameId: sidRope; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
463 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
464 |
NumberInCase: 3; |
263 | 465 |
Ammo: (Propz: ammoprop_ForwMsgs or |
466 |
ammoprop_AttackInFall or |
|
467 |
ammoprop_AttackInJump; |
|
4 | 468 |
Count: 5; |
469 |
NumPerTurn: 0; |
|
470 |
Timer: 0; |
|
408 | 471 |
Pos: 0; |
4 | 472 |
AmmoType: amRope); |
263 | 473 |
Slot: 7; |
304 | 474 |
TimeAfterTurn: 0; |
351 | 475 |
minAngle: 0; |
408 | 476 |
maxAngle: cMaxAngle div 2; |
495 | 477 |
PosCount: 1; |
478 |
PosSprite: sprWater), |
|
80 | 479 |
(NameId: sidMine; |
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: 1; |
13 | 482 |
Ammo: (Propz: ammoprop_NoCrosshair; |
56 | 483 |
Count: 2; |
10 | 484 |
NumPerTurn: 0; |
485 |
Timer: 0; |
|
408 | 486 |
Pos: 0; |
10 | 487 |
AmmoType: amMine); |
79 | 488 |
Slot: 4; |
351 | 489 |
TimeAfterTurn: 5000; |
490 |
minAngle: 0; |
|
408 | 491 |
maxAngle: 0; |
495 | 492 |
PosCount: 1; |
493 |
PosSprite: sprWater), |
|
80 | 494 |
(NameId: sidDEagle; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
495 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
496 |
NumberInCase: 2; |
37 | 497 |
Ammo: (Propz: 0; |
75 | 498 |
Count: 3; |
37 | 499 |
NumPerTurn: 3; |
500 |
Timer: 0; |
|
408 | 501 |
Pos: 0; |
37 | 502 |
AmmoType: amDEagle); |
503 |
Slot: 2; |
|
351 | 504 |
TimeAfterTurn: 3000; |
505 |
minAngle: 0; |
|
408 | 506 |
maxAngle: 0; |
495 | 507 |
PosCount: 1; |
508 |
PosSprite: sprWater), |
|
408 | 509 |
(NameId: sidDynamite; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
510 |
Probability: 100; |
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_AttackInJump or |
|
514 |
ammoprop_AttackInFall; |
|
515 |
Count: 1; |
|
516 |
NumPerTurn: 0; |
|
517 |
Timer: 0; |
|
518 |
Pos: 0; |
|
519 |
AmmoType: amDynamite); |
|
520 |
Slot: 4; |
|
521 |
TimeAfterTurn: 5000; |
|
351 | 522 |
minAngle: 0; |
408 | 523 |
maxAngle: 0; |
495 | 524 |
PosCount: 1; |
525 |
PosSprite: sprWater), |
|
408 | 526 |
(NameId: sidFirePunch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
527 |
Probability: 0; |
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: ammoprop_NoCrosshair or |
530 |
ammoprop_ForwMsgs or |
|
531 |
ammoprop_AttackInJump or |
|
532 |
ammoprop_AttackInFall; |
|
533 |
Count: AMMO_INFINITE; |
|
534 |
NumPerTurn: 0; |
|
535 |
Timer: 0; |
|
536 |
Pos: 0; |
|
537 |
AmmoType: amFirePunch); |
|
538 |
Slot: 3; |
|
539 |
TimeAfterTurn: 3000; |
|
540 |
MinAngle: 0; |
|
541 |
maxAngle: 0; |
|
495 | 542 |
PosCount: 1; |
543 |
PosSprite: sprWater), |
|
408 | 544 |
(NameId: sidBaseballBat; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
545 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
546 |
NumberInCase: 1; |
408 | 547 |
Ammo: (Propz: 0; |
548 |
Count: 1; |
|
549 |
NumPerTurn: 0; |
|
550 |
Timer: 0; |
|
551 |
Pos: 0; |
|
552 |
AmmoType: amBaseballBat); |
|
553 |
Slot: 3; |
|
554 |
TimeAfterTurn: 5000; |
|
351 | 555 |
minAngle: 0; |
408 | 556 |
maxAngle: cMaxAngle div 2; |
495 | 557 |
PosCount: 1; |
558 |
PosSprite: sprWater), |
|
211 | 559 |
(NameId: sidParachute; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
560 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
561 |
NumberInCase: 1; |
263 | 562 |
Ammo: (Propz: ammoprop_ForwMsgs or |
563 |
ammoprop_AttackInJump or |
|
454 | 564 |
ammoprop_AttackInFall or |
565 |
ammoprop_NoCrosshair; |
|
211 | 566 |
Count: 2; |
567 |
NumPerTurn: 0; |
|
568 |
Timer: 0; |
|
408 | 569 |
Pos: 0; |
211 | 570 |
AmmoType: amParachute); |
263 | 571 |
Slot: 7; |
351 | 572 |
TimeAfterTurn: 0; |
573 |
minAngle: 0; |
|
408 | 574 |
maxAngle: 0; |
495 | 575 |
PosCount: 1; |
576 |
PosSprite: sprWater), |
|
263 | 577 |
(NameId: sidAirAttack; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
578 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
579 |
NumberInCase: 1; |
263 | 580 |
Ammo: (Propz: ammoprop_NoCrosshair or |
581 |
ammoprop_NeedTarget or |
|
582 |
ammoprop_AttackingPut; |
|
285 | 583 |
Count: 1; |
263 | 584 |
NumPerTurn: 0; |
585 |
Timer: 0; |
|
408 | 586 |
Pos: 0; |
263 | 587 |
AmmoType: amAirAttack); |
588 |
Slot: 5; |
|
351 | 589 |
TimeAfterTurn: 0; |
590 |
minAngle: 0; |
|
408 | 591 |
maxAngle: 0; |
592 |
PosCount: 2; |
|
593 |
PosSprite: sprAmAirplane), |
|
285 | 594 |
(NameId: sidMineStrike; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
595 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
596 |
NumberInCase: 1; |
285 | 597 |
Ammo: (Propz: ammoprop_NoCrosshair or |
598 |
ammoprop_NeedTarget or |
|
599 |
ammoprop_AttackingPut; |
|
600 |
Count: 1; |
|
601 |
NumPerTurn: 0; |
|
602 |
Timer: 0; |
|
408 | 603 |
Pos: 0; |
285 | 604 |
AmmoType: amMineStrike); |
605 |
Slot: 5; |
|
351 | 606 |
TimeAfterTurn: 0; |
607 |
minAngle: 0; |
|
408 | 608 |
maxAngle: 0; |
609 |
PosCount: 2; |
|
610 |
PosSprite: sprAmAirplane), |
|
302 | 611 |
(NameId: sidBlowTorch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
612 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
613 |
NumberInCase: 2; |
302 | 614 |
Ammo: (Propz: ammoprop_ForwMsgs; |
615 |
Count: 1; |
|
616 |
NumPerTurn: 0; |
|
617 |
Timer: 0; |
|
408 | 618 |
Pos: 0; |
302 | 619 |
AmmoType: amBlowTorch); |
620 |
Slot: 6; |
|
304 | 621 |
TimeAfterTurn: 3000; |
305 | 622 |
minAngle: 768; |
408 | 623 |
maxAngle: 1280; |
495 | 624 |
PosCount: 1; |
625 |
PosSprite: sprWater), |
|
409 | 626 |
(NameId: sidGirder; |
627 |
Probability: 400; |
|
411 | 628 |
NumberInCase: 3; |
409 | 629 |
Ammo: (Propz: ammoprop_NoCrosshair or |
630 |
ammoprop_NeedTarget or |
|
631 |
ammoprop_AttackingPut; |
|
632 |
Count: 1; |
|
633 |
NumPerTurn: 0; |
|
634 |
Timer: 0; |
|
635 |
Pos: 0; |
|
636 |
AmmoType: amGirder); |
|
637 |
Slot: 6; |
|
638 |
TimeAfterTurn: 3000; |
|
639 |
minAngle: 0; |
|
640 |
maxAngle: 0; |
|
423 | 641 |
PosCount: 8; |
409 | 642 |
PosSprite: sprAmGirder)); |
37 | 643 |
|
4 | 644 |
implementation |
645 |
||
646 |
end. |