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