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