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