author | unc0rr |
Fri, 23 Feb 2007 14:26:53 +0000 | |
changeset 487 | 7ef6a98f0ede |
parent 467 | 20d36f976b25 |
child 495 | 62c1c2b4414c |
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; |
360 |
PosCount: 1), |
|
80 | 361 |
(NameId: sidClusterBomb; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
362 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
363 |
NumberInCase: 3; |
263 | 364 |
Ammo: (Propz: ammoprop_Timerable or |
365 |
ammoprop_Power; |
|
78 | 366 |
Count: 5; |
367 |
NumPerTurn: 0; |
|
368 |
Timer: 3000; |
|
408 | 369 |
Pos: 0; |
78 | 370 |
AmmoType: amClusterBomb); |
371 |
Slot: 1; |
|
351 | 372 |
TimeAfterTurn: 3000; |
373 |
minAngle: 0; |
|
408 | 374 |
maxAngle: 0; |
375 |
PosCount: 1), |
|
80 | 376 |
(NameId: sidBazooka; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
377 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
378 |
NumberInCase: 1; |
4 | 379 |
Ammo: (Propz: ammoprop_Power; |
380 |
Count: AMMO_INFINITE; |
|
381 |
NumPerTurn: 0; |
|
382 |
Timer: 0; |
|
408 | 383 |
Pos: 0; |
4 | 384 |
AmmoType: amBazooka); |
10 | 385 |
Slot: 0; |
351 | 386 |
TimeAfterTurn: 3000; |
387 |
minAngle: 0; |
|
408 | 388 |
maxAngle: 0; |
389 |
PosCount: 1), |
|
80 | 390 |
(NameId: sidUFO; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
391 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
392 |
NumberInCase: 1; |
263 | 393 |
Ammo: (Propz: ammoprop_Power or |
394 |
ammoprop_NeedTarget; |
|
56 | 395 |
Count: 2; |
4 | 396 |
NumPerTurn: 0; |
397 |
Timer: 0; |
|
408 | 398 |
Pos: 0; |
4 | 399 |
AmmoType: amUFO); |
400 |
Slot: 0; |
|
351 | 401 |
TimeAfterTurn: 3000; |
402 |
minAngle: 0; |
|
408 | 403 |
maxAngle: 0; |
404 |
PosCount: 1), |
|
80 | 405 |
(NameId: sidShotgun; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
406 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
407 |
NumberInCase: 1; |
95 | 408 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 409 |
Count: AMMO_INFINITE; |
410 |
NumPerTurn: 1; |
|
411 |
Timer: 0; |
|
408 | 412 |
Pos: 0; |
4 | 413 |
AmmoType: amShotgun); |
414 |
Slot: 2; |
|
351 | 415 |
TimeAfterTurn: 3000; |
416 |
minAngle: 0; |
|
408 | 417 |
maxAngle: 0; |
418 |
PosCount: 1), |
|
80 | 419 |
(NameId: sidPickHammer; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
420 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
421 |
NumberInCase: 1; |
263 | 422 |
Ammo: (Propz: ammoprop_ForwMsgs or |
423 |
ammoprop_AttackInFall or |
|
424 |
ammoprop_AttackInJump or |
|
425 |
ammoprop_NoCrosshair; |
|
4 | 426 |
Count: 2; |
427 |
NumPerTurn: 0; |
|
428 |
Timer: 0; |
|
408 | 429 |
Pos: 0; |
4 | 430 |
AmmoType: amPickHammer); |
263 | 431 |
Slot: 6; |
351 | 432 |
TimeAfterTurn: 0; |
433 |
minAngle: 0; |
|
408 | 434 |
maxAngle: 0; |
435 |
PosCount: 1), |
|
80 | 436 |
(NameId: sidSkip; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
437 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
438 |
NumberInCase: 1; |
4 | 439 |
Ammo: (Propz: 0; |
440 |
Count: AMMO_INFINITE; |
|
441 |
NumPerTurn: 0; |
|
442 |
Timer: 0; |
|
408 | 443 |
Pos: 0; |
4 | 444 |
AmmoType: amSkip); |
263 | 445 |
Slot: 8; |
351 | 446 |
TimeAfterTurn: 0; |
447 |
minAngle: 0; |
|
408 | 448 |
maxAngle: 0; |
449 |
PosCount: 1), |
|
80 | 450 |
(NameId: sidRope; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
451 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
452 |
NumberInCase: 3; |
263 | 453 |
Ammo: (Propz: ammoprop_ForwMsgs or |
454 |
ammoprop_AttackInFall or |
|
455 |
ammoprop_AttackInJump; |
|
4 | 456 |
Count: 5; |
457 |
NumPerTurn: 0; |
|
458 |
Timer: 0; |
|
408 | 459 |
Pos: 0; |
4 | 460 |
AmmoType: amRope); |
263 | 461 |
Slot: 7; |
304 | 462 |
TimeAfterTurn: 0; |
351 | 463 |
minAngle: 0; |
408 | 464 |
maxAngle: cMaxAngle div 2; |
465 |
PosCount: 1), |
|
80 | 466 |
(NameId: sidMine; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
467 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
468 |
NumberInCase: 1; |
13 | 469 |
Ammo: (Propz: ammoprop_NoCrosshair; |
56 | 470 |
Count: 2; |
10 | 471 |
NumPerTurn: 0; |
472 |
Timer: 0; |
|
408 | 473 |
Pos: 0; |
10 | 474 |
AmmoType: amMine); |
79 | 475 |
Slot: 4; |
351 | 476 |
TimeAfterTurn: 5000; |
477 |
minAngle: 0; |
|
408 | 478 |
maxAngle: 0; |
479 |
PosCount: 1), |
|
80 | 480 |
(NameId: sidDEagle; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
481 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
482 |
NumberInCase: 2; |
37 | 483 |
Ammo: (Propz: 0; |
75 | 484 |
Count: 3; |
37 | 485 |
NumPerTurn: 3; |
486 |
Timer: 0; |
|
408 | 487 |
Pos: 0; |
37 | 488 |
AmmoType: amDEagle); |
489 |
Slot: 2; |
|
351 | 490 |
TimeAfterTurn: 3000; |
491 |
minAngle: 0; |
|
408 | 492 |
maxAngle: 0; |
493 |
PosCount: 1), |
|
494 |
(NameId: sidDynamite; |
|
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: 1; |
408 | 497 |
Ammo: (Propz: ammoprop_NoCrosshair or |
498 |
ammoprop_AttackInJump or |
|
499 |
ammoprop_AttackInFall; |
|
500 |
Count: 1; |
|
501 |
NumPerTurn: 0; |
|
502 |
Timer: 0; |
|
503 |
Pos: 0; |
|
504 |
AmmoType: amDynamite); |
|
505 |
Slot: 4; |
|
506 |
TimeAfterTurn: 5000; |
|
351 | 507 |
minAngle: 0; |
408 | 508 |
maxAngle: 0; |
509 |
PosCount: 1), |
|
510 |
(NameId: sidFirePunch; |
|
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
511 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
512 |
NumberInCase: 1; |
408 | 513 |
Ammo: (Propz: ammoprop_NoCrosshair or |
514 |
ammoprop_ForwMsgs or |
|
515 |
ammoprop_AttackInJump or |
|
516 |
ammoprop_AttackInFall; |
|
517 |
Count: AMMO_INFINITE; |
|
518 |
NumPerTurn: 0; |
|
519 |
Timer: 0; |
|
520 |
Pos: 0; |
|
521 |
AmmoType: amFirePunch); |
|
522 |
Slot: 3; |
|
523 |
TimeAfterTurn: 3000; |
|
524 |
MinAngle: 0; |
|
525 |
maxAngle: 0; |
|
526 |
PosCount: 1), |
|
527 |
(NameId: sidBaseballBat; |
|
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
528 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
529 |
NumberInCase: 1; |
408 | 530 |
Ammo: (Propz: 0; |
531 |
Count: 1; |
|
532 |
NumPerTurn: 0; |
|
533 |
Timer: 0; |
|
534 |
Pos: 0; |
|
535 |
AmmoType: amBaseballBat); |
|
536 |
Slot: 3; |
|
537 |
TimeAfterTurn: 5000; |
|
351 | 538 |
minAngle: 0; |
408 | 539 |
maxAngle: cMaxAngle div 2; |
540 |
PosCount: 1), |
|
211 | 541 |
(NameId: sidParachute; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
542 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
543 |
NumberInCase: 1; |
263 | 544 |
Ammo: (Propz: ammoprop_ForwMsgs or |
545 |
ammoprop_AttackInJump or |
|
454 | 546 |
ammoprop_AttackInFall or |
547 |
ammoprop_NoCrosshair; |
|
211 | 548 |
Count: 2; |
549 |
NumPerTurn: 0; |
|
550 |
Timer: 0; |
|
408 | 551 |
Pos: 0; |
211 | 552 |
AmmoType: amParachute); |
263 | 553 |
Slot: 7; |
351 | 554 |
TimeAfterTurn: 0; |
555 |
minAngle: 0; |
|
408 | 556 |
maxAngle: 0; |
557 |
PosCount: 1), |
|
263 | 558 |
(NameId: sidAirAttack; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
559 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
560 |
NumberInCase: 1; |
263 | 561 |
Ammo: (Propz: ammoprop_NoCrosshair or |
562 |
ammoprop_NeedTarget or |
|
563 |
ammoprop_AttackingPut; |
|
285 | 564 |
Count: 1; |
263 | 565 |
NumPerTurn: 0; |
566 |
Timer: 0; |
|
408 | 567 |
Pos: 0; |
263 | 568 |
AmmoType: amAirAttack); |
569 |
Slot: 5; |
|
351 | 570 |
TimeAfterTurn: 0; |
571 |
minAngle: 0; |
|
408 | 572 |
maxAngle: 0; |
573 |
PosCount: 2; |
|
574 |
PosSprite: sprAmAirplane), |
|
285 | 575 |
(NameId: sidMineStrike; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
576 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
577 |
NumberInCase: 1; |
285 | 578 |
Ammo: (Propz: ammoprop_NoCrosshair or |
579 |
ammoprop_NeedTarget or |
|
580 |
ammoprop_AttackingPut; |
|
581 |
Count: 1; |
|
582 |
NumPerTurn: 0; |
|
583 |
Timer: 0; |
|
408 | 584 |
Pos: 0; |
285 | 585 |
AmmoType: amMineStrike); |
586 |
Slot: 5; |
|
351 | 587 |
TimeAfterTurn: 0; |
588 |
minAngle: 0; |
|
408 | 589 |
maxAngle: 0; |
590 |
PosCount: 2; |
|
591 |
PosSprite: sprAmAirplane), |
|
302 | 592 |
(NameId: sidBlowTorch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
593 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
594 |
NumberInCase: 2; |
302 | 595 |
Ammo: (Propz: ammoprop_ForwMsgs; |
596 |
Count: 1; |
|
597 |
NumPerTurn: 0; |
|
598 |
Timer: 0; |
|
408 | 599 |
Pos: 0; |
302 | 600 |
AmmoType: amBlowTorch); |
601 |
Slot: 6; |
|
304 | 602 |
TimeAfterTurn: 3000; |
305 | 603 |
minAngle: 768; |
408 | 604 |
maxAngle: 1280; |
409 | 605 |
PosCount: 1), |
606 |
(NameId: sidGirder; |
|
607 |
Probability: 400; |
|
411 | 608 |
NumberInCase: 3; |
409 | 609 |
Ammo: (Propz: ammoprop_NoCrosshair or |
610 |
ammoprop_NeedTarget or |
|
611 |
ammoprop_AttackingPut; |
|
612 |
Count: 1; |
|
613 |
NumPerTurn: 0; |
|
614 |
Timer: 0; |
|
615 |
Pos: 0; |
|
616 |
AmmoType: amGirder); |
|
617 |
Slot: 6; |
|
618 |
TimeAfterTurn: 3000; |
|
619 |
minAngle: 0; |
|
620 |
maxAngle: 0; |
|
423 | 621 |
PosCount: 8; |
409 | 622 |
PosSprite: sprAmGirder)); |
37 | 623 |
|
4 | 624 |
implementation |
625 |
||
626 |
end. |