author | unc0rr |
Thu, 26 Jun 2008 19:39:26 +0000 | |
changeset 1033 | 622c5de38d72 |
parent 1022 | f6a3fcb329ca |
child 1034 | 05f003ad3caa |
permissions | -rw-r--r-- |
4 | 1 |
(* |
2 |
* Hedgewars, a worms-like game |
|
883 | 3 |
* Copyright (c) 2004-2008 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 |
|
755 | 21 |
uses SDLh, GL, uLocale; |
4 | 22 |
{$INCLUDE options.inc} |
271 | 23 |
{$INCLUDE proto.inc} |
689 | 24 |
type |
282 | 25 |
|
1022 | 26 |
TGameState = (gsLandGen, gsStart, gsGame, gsChat, gsConfirm, gsExit); |
282 | 27 |
|
155
401f4ea24715
Engine can generate land preview and send it via IPC
unc0rr
parents:
112
diff
changeset
|
28 |
TGameType = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview); |
282 | 29 |
|
80 | 30 |
TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps, |
31 |
ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts, |
|
970 | 32 |
ptLocale, ptAmmoMenu, ptHedgehog, ptVoices, ptHats); |
282 | 33 |
|
4 | 34 |
TSprite = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame, |
35 |
sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO, |
|
10 | 36 |
sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff, |
78 | 37 |
sprMineOn, sprCase, sprFAid, sprDynamite, sprPower, |
80 | 38 |
sprClusterBomb, sprClusterParticle, sprFlame, sprHorizont, |
161 | 39 |
sprSky, sprAMBorders, sprAMSlot, sprAMSlotName, sprAMAmmos, |
283 | 40 |
sprAMSlotKeys, sprAMSelection, sprFinger, sprAirBomb, |
534 | 41 |
sprAirplane, sprAmAirplane, sprAmGirder, sprHHTelepMask, |
988 | 42 |
sprSwitch, sprParachute, sprTarget, sprRopeNode, |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
43 |
sprQuestion, sprPowerBar, sprWindBar, sprWindL, sprWindR, |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
44 |
sprFlake, sprHandRope, sprHandBazooka, sprHandShotgun, |
847 | 45 |
sprHandDEagle, sprHandAirAttack, sprHandBaseball, sprPHammer, |
876 | 46 |
sprHandBlowTorch, sprBlowTorch, sprTeleport, sprHHDeath, |
970 | 47 |
sprShotgun, sprDEagle, sprHHIdle, sprMortar, sprTurnsLeft, |
1033 | 48 |
sprHat, sprKamikaze, sprWhip, sprKowtow); |
282 | 49 |
|
803 | 50 |
TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, |
83 | 51 |
gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope, |
49 | 52 |
gtSmokeTrace, gtExplosion, gtMine, gtCase, gtDEagleShot, gtDynamite, |
82 | 53 |
gtTeamHealthSorter, gtClusterBomb, gtCluster, gtShover, gtFlame, |
211 | 54 |
gtFirePunch, gtATStartGame, gtATSmoothWindCh, gtATFinishGame, |
520 | 55 |
gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, gtGirder, |
925 | 56 |
gtTeleport, gtSmallDamage, gtSwitcher, gtTarget, gtMortar, |
984 | 57 |
gtWhip, gtKamikaze); |
282 | 58 |
|
803 | 59 |
TVisualGearType = (vgtFlake, vgtCloud); |
802
ed5450a89b96
Start implementing 'visual gears' - gears, that don't need to be synchronized (clouds and flakes)
unc0rr
parents:
801
diff
changeset
|
60 |
|
16 | 61 |
TGearsType = set of TGearType; |
282 | 62 |
|
63 |
TSound = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease, |
|
64 |
sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact, |
|
799 | 65 |
sndMineTick, sndPickhammer, sndGun, sndUFO, sndJump1, sndJump2, |
815 | 66 |
sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming, |
864 | 67 |
sndMissed, sndStupid, sndFirstBlood, sndBoring, sndByeBye, |
867 | 68 |
sndSameTeam, sndNutter, sndReinforce, sndTraitor, sndRegret, |
992 | 69 |
sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze); |
282 | 70 |
|
82 | 71 |
TAmmoType = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer, |
925 | 72 |
amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, amWhip, |
409 | 73 |
amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch, |
983 | 74 |
amGirder, amTeleport, amSwitch, amMortar, amKamikaze); |
282 | 75 |
|
522 | 76 |
THWFont = (fnt16, fntBig, fntSmall); |
282 | 77 |
|
174 | 78 |
TCapGroup = (capgrpGameState, capgrpAmmoinfo, capgrpNetSay, capgrpVolume); |
282 | 79 |
|
869 | 80 |
TStatInfoType = (siGameResult, siMaxStepDamage, siMaxStepKills, siKilledHHs); |
306 | 81 |
|
4 | 82 |
THHFont = record |
83 |
Handle: PTTF_Font; |
|
371 | 84 |
Height: LongInt; |
85 |
style: LongInt; |
|
4 | 86 |
Name: string[15]; |
87 |
end; |
|
282 | 88 |
|
930 | 89 |
PAmmo = ^TAmmo; |
4 | 90 |
TAmmo = record |
91 |
Propz: LongWord; |
|
92 |
Count: LongWord; |
|
93 |
NumPerTurn: LongWord; |
|
94 |
Timer: LongWord; |
|
408 | 95 |
Pos: LongWord; |
4 | 96 |
AmmoType: TAmmoType; |
97 |
end; |
|
755 | 98 |
TTexture = record |
99 |
id: GLuint; |
|
100 |
w, h: LongInt; |
|
101 |
end; |
|
102 |
PTexture = ^TTexture; |
|
4 | 103 |
|
104 |
||
105 | 105 |
const |
43 | 106 |
errmsgCreateSurface = 'Error creating SDL surface'; |
4 | 107 |
errmsgTransparentSet = 'Error setting transparent color'; |
108 |
errmsgUnknownCommand = 'Unknown command'; |
|
109 |
errmsgUnknownVariable = 'Unknown variable'; |
|
110 |
errmsgIncorrectUse = 'Incorrect use'; |
|
111 |
errmsgShouldntRun = 'This program shouldn''t be run manually'; |
|
615 | 112 |
errmsgWrongNumber = 'Wrong parameters number'; |
4 | 113 |
|
114 |
msgLoading = 'Loading '; |
|
115 |
msgOK = 'ok'; |
|
116 |
msgFailed = 'failed'; |
|
117 |
msgGettingConfig = 'Getting game config...'; |
|
118 |
||
119 |
const |
|
1033 | 120 |
cMaxPower = 1500; |
121 |
cMaxAngle = 2048; |
|
122 |
cPowerDivisor = 1500; |
|
621 | 123 |
|
1033 | 124 |
MAXNAMELEN = 32; |
74 | 125 |
|
1033 | 126 |
COLOR_LAND = $00FFFFFF; |
64 | 127 |
|
1033 | 128 |
cifRandomize = $00000001; |
129 |
cifTheme = $00000002; |
|
130 |
cifMap = $00000002; // either theme or map (or map+theme) |
|
131 |
cifAllInited = cifRandomize or |
|
132 |
cifTheme or |
|
133 |
cifMap; |
|
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
134 |
|
1033 | 135 |
cTransparentColor: Longword = $000000; |
4 | 136 |
|
1033 | 137 |
cMaxTeams = 6; |
138 |
cMaxHHIndex = 7; |
|
139 |
cMaxHHs = 30; |
|
140 |
cMaxSpawnPoints = 1024; |
|
4 | 141 |
|
1033 | 142 |
cMaxEdgePoints = 16384; |
22 | 143 |
|
1033 | 144 |
cHHRadius = 9; |
145 |
cHHStepTicks = 38; |
|
509 | 146 |
|
1033 | 147 |
cHHZ = 1000; |
148 |
cCurrHHZ = Succ(cHHZ); |
|
4 | 149 |
|
1033 | 150 |
cShotgunRadius = 22; |
151 |
cBlowTorchC = 6; |
|
509 | 152 |
|
1033 | 153 |
cKeyMaxIndex = 1023; |
4 | 154 |
|
1033 | 155 |
cMaxCaptions = 4; |
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
156 |
|
1033 | 157 |
gfForts = $00000001; |
158 |
gfMultiWeapon = $00000002; |
|
159 |
gfSolidLand = $00000004; |
|
160 |
gfOneClanMode = $10000000; |
|
4 | 161 |
|
1033 | 162 |
gstDrowning = $00000001; |
163 |
gstHHDriven = $00000002; |
|
164 |
gstMoving = $00000004; |
|
165 |
gstAttacked = $00000008; |
|
166 |
gstAttacking = $00000010; |
|
167 |
gstCollision = $00000020; |
|
168 |
gstHHChooseTarget = $00000040; |
|
169 |
gstHHJumping = $00000100; |
|
170 |
gsttmpFlag = $00000200; |
|
171 |
gstHHThinking = $00000800; |
|
172 |
gstNoDamage = $00001000; |
|
173 |
gstHHHJump = $00002000; |
|
174 |
gstAnimation = $00004000; |
|
175 |
gstHHDeath = $00008000; |
|
176 |
gstWinner = $00010000; |
|
177 |
gstWait = $00020000; |
|
4 | 178 |
|
1033 | 179 |
gm_Left = $00000001; |
180 |
gm_Right = $00000002; |
|
181 |
gm_Up = $00000004; |
|
182 |
gm_Down = $00000008; |
|
183 |
gm_Switch = $00000010; |
|
184 |
gm_Attack = $00000020; |
|
185 |
gm_LJump = $00000040; |
|
186 |
gm_HJump = $00000080; |
|
187 |
gm_Destroy= $00000100; |
|
188 |
gm_Slot = $00000200; // with param |
|
189 |
gm_Weapon = $00000400; // with param |
|
190 |
gm_Timer = $00000800; // with param |
|
191 |
gm_Animate= $00001000; // with param |
|
192 |
gmAllStoppable = gm_Left or gm_Right or gm_Up or gm_Down or gm_Attack; |
|
4 | 193 |
|
1033 | 194 |
cMaxSlotIndex = 8; |
195 |
cMaxSlotAmmoIndex = 3; |
|
4 | 196 |
|
1033 | 197 |
ammoprop_Timerable = $00000001; |
198 |
ammoprop_Power = $00000002; |
|
199 |
ammoprop_NeedTarget = $00000004; |
|
200 |
ammoprop_ForwMsgs = $00000008; |
|
201 |
ammoprop_AttackInMove = $00000010; |
|
202 |
ammoprop_NoCrosshair = $00000040; |
|
203 |
ammoprop_AttackingPut = $00000080; |
|
204 |
ammoprop_DontHold = $00000100; |
|
205 |
ammoprop_AltAttack = $00000200; |
|
206 |
ammoprop_AltUse = $00000400; |
|
930 | 207 |
|
1033 | 208 |
AMMO_INFINITE = 9; |
4 | 209 |
|
1033 | 210 |
EXPLAllDamageInRadius = $00000001; |
211 |
EXPLAutoSound = $00000002; |
|
212 |
EXPLNoDamage = $00000004; |
|
213 |
EXPLDoNotTouchHH = $00000008; |
|
214 |
EXPLDontDraw = $00000010; |
|
42 | 215 |
|
1033 | 216 |
posCaseAmmo = $00000001; |
217 |
posCaseHealth = $00000002; |
|
4 | 218 |
|
1033 | 219 |
NoPointX = Low(LongInt); |
4 | 220 |
|
1033 | 221 |
cHHFileName = 'Hedgehog'; |
222 |
cCHFileName = 'Crosshair'; |
|
223 |
cThemeCFGFilename = 'theme.cfg'; |
|
4 | 224 |
|
1033 | 225 |
Fontz: array[THWFont] of THHFont = ( |
226 |
(Handle: nil; |
|
227 |
Height: 12; |
|
228 |
style: TTF_STYLE_NORMAL; |
|
229 |
Name: 'DejaVuSans.ttf'), |
|
230 |
(Handle: nil; |
|
231 |
Height: 24; |
|
232 |
style: TTF_STYLE_NORMAL; |
|
233 |
Name: 'DejaVuSans.ttf'), |
|
234 |
(Handle: nil; |
|
235 |
Height: 10; |
|
236 |
style: TTF_STYLE_NORMAL; |
|
237 |
Name: 'DejaVuSans.ttf') |
|
238 |
); |
|
4 | 239 |
|
1033 | 240 |
FontBorder = 2; |
202 | 241 |
|
1033 | 242 |
PathPrefix: string = './'; |
243 |
Pathz: array[TPathType] of String = ( |
|
244 |
'', // ptNone |
|
245 |
'', // ptData |
|
246 |
'Graphics', // ptGraphics |
|
247 |
'Themes', // ptThemes |
|
248 |
'Themes/avematan', // ptCurrTheme |
|
249 |
'Teams', // ptTeams |
|
250 |
'Maps', // ptMaps |
|
251 |
'', // ptMapCurrent |
|
252 |
'Demos', // ptDemos |
|
253 |
'Sounds', // ptSounds |
|
254 |
'Graphics/Graves', // ptGraves |
|
255 |
'Fonts', // ptFonts |
|
256 |
'Forts', // ptForts |
|
257 |
'Locale', // ptLocale |
|
258 |
'Graphics/AmmoMenu', // ptAmmoMenu |
|
259 |
'Graphics/Hedgehog', // ptHedgehog |
|
260 |
'Sounds/voices', // ptVoices |
|
261 |
'Graphics/Hats' // ptHats |
|
262 |
); |
|
4 | 263 |
|
264 |
SpritesData: array[TSprite] of record |
|
1033 | 265 |
FileName: String[12]; |
80 | 266 |
Path, AltPath: TPathType; |
755 | 267 |
Texture: PTexture; |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
268 |
Surface: PSDL_Surface; |
371 | 269 |
Width, Height: LongInt; |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
270 |
saveSurf: boolean; |
35 | 271 |
end = ( |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
272 |
(FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
793 | 273 |
Width: 256; Height: 32; saveSurf: false),// sprWater |
1033 | 274 |
(FileName: 'Clouds'; Path: ptCurrTheme;AltPath: ptGraphics; Texture: nil; Surface: nil; |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
275 |
Width: 256; Height:128; saveSurf: false),// sprCloud |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
276 |
(FileName: 'Bomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
277 |
Width: 8; Height: 8; saveSurf: false),// sprBomb |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
278 |
(FileName: 'BigDigits'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
279 |
Width: 32; Height: 32; saveSurf: false),// sprBigDigit |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
280 |
(FileName: 'Frame'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
281 |
Width: 4; Height: 32; saveSurf: false),// sprFrame |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
282 |
(FileName: 'Lag'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
283 |
Width: 65; Height: 65; saveSurf: false),// sprLag |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
284 |
(FileName: 'Arrow'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
285 |
Width: 16; Height: 16; saveSurf: false),// sprCursor |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
286 |
(FileName: 'Grenade'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
775 | 287 |
Width: 16; Height: 16; saveSurf: false),// sprGrenade |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
288 |
(FileName: 'Targetp'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
289 |
Width: 32; Height: 32; saveSurf: false),// sprTargetP |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
290 |
(FileName: 'UFO'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
291 |
Width: 32; Height: 32; saveSurf: false),// sprUFO |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
292 |
(FileName: 'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
293 |
Width: 32; Height: 32; saveSurf: false),// sprSmokeTrace |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
294 |
(FileName: 'RopeHook'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
295 |
Width: 16; Height: 16; saveSurf: false),// sprRopeHook |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
296 |
(FileName: 'Expl50'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
297 |
Width: 64; Height: 64; saveSurf: false),// sprExplosion50 |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
298 |
(FileName: 'MineOff'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
299 |
Width: 8; Height: 8; saveSurf: false),// sprMineOff |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
300 |
(FileName: 'MineOn'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
301 |
Width: 8; Height: 8; saveSurf: false),// sprMineOn |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
302 |
(FileName: 'Case'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
303 |
Width: 32; Height: 32; saveSurf: false),// sprCase |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
304 |
(FileName: 'FirstAid'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
305 |
Width: 48; Height: 48; saveSurf: false),// sprFAid |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
306 |
(FileName: 'dynamite'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
307 |
Width: 32; Height: 32; saveSurf: false),// sprDynamite |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
308 |
(FileName: 'Power'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
309 |
Width: 32; Height: 32; saveSurf: false),// sprPower |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
310 |
(FileName: 'ClBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
311 |
Width: 16; Height: 16; saveSurf: false),// sprClusterBomb |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
312 |
(FileName: 'ClParticle'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
313 |
Width: 16; Height: 16; saveSurf: false),// sprClusterParticle |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
314 |
(FileName: 'Flame'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
315 |
Width: 16; Height: 16; saveSurf: false),// sprFlame |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
316 |
(FileName: 'horizont'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
317 |
Width: 0; Height: 0; saveSurf: false),// sprHorizont |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
318 |
(FileName: 'Sky'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
319 |
Width: 0; Height: 0; saveSurf: false),// sprSky |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
320 |
(FileName: 'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
321 |
Width: 202; Height: 1; saveSurf: false),// sprAMBorders |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
322 |
(FileName: 'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
323 |
Width: 202; Height: 33; saveSurf: false),// sprAMSlot |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
324 |
(FileName: 'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
325 |
Width: 202; Height: 33; saveSurf: false),// sprAMSlotName |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
326 |
(FileName: 'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
327 |
Width: 32; Height: 32; saveSurf: false),// sprAMAmmos |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
328 |
(FileName: 'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
329 |
Width: 32; Height: 32; saveSurf: false),// sprAMSlotKeys |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
330 |
(FileName: 'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
331 |
Width: 32; Height: 32; saveSurf: false),// sprAMSelection |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
332 |
(FileName: 'Finger'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
333 |
Width: 32; Height: 48; saveSurf: false),// sprFinger |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
334 |
(FileName: 'AirBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
335 |
Width: 16; Height: 16; saveSurf: false),// sprAirBomb |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
336 |
(FileName: 'Airplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
337 |
Width: 125; Height: 42; saveSurf: false),// sprAirplane |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
338 |
(FileName: 'amAirplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
776
8fc7e59d9cb4
Convert the rest of rotated sprites to be rotated by OpenGL
unc0rr
parents:
775
diff
changeset
|
339 |
Width: 64; Height: 32; saveSurf: false),// sprAmAirplane |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
340 |
(FileName: 'amGirder'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
341 |
Width: 160; Height:160; saveSurf: true),// sprAmGirder |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
342 |
(FileName: 'hhMask'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
343 |
Width: 32; Height: 32; saveSurf: true),// sprHHTelepMask |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
344 |
(FileName: 'Switch'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
345 |
Width: 32; Height: 32; saveSurf: false),// sprSwitch |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
346 |
(FileName: 'Parachute'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
347 |
Width: 48; Height: 48; saveSurf: false),// sprParachute |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
348 |
(FileName: 'Target'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
349 |
Width: 32; Height: 32; saveSurf: false),// sprTarget |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
350 |
(FileName: 'RopeNode'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
351 |
Width: 6; Height: 6; saveSurf: false),// sprRopeNode |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
352 |
(FileName: 'thinking'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
353 |
Width: 32; Height: 32; saveSurf: false),// sprQuestion |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
354 |
(FileName: 'PowerBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
355 |
Width: 256; Height: 32; saveSurf: false),// sprPowerBar |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
356 |
(FileName: 'WindBar'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
357 |
Width: 151; Height: 17; saveSurf: false),// sprWindBar |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
358 |
(FileName: 'WindL'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
359 |
Width: 80; Height: 13; saveSurf: false),// sprWindL |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
360 |
(FileName: 'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
805 | 361 |
Width: 80; Height: 13; saveSurf: false),// sprWindR |
362 |
(FileName: 'Flake'; Path:ptCurrTheme; AltPath: ptNone; Texture: nil; Surface: nil; |
|
822 | 363 |
Width: 64; Height: 64; saveSurf: false),// sprFlake |
364 |
(FileName: 'amRope'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
365 |
Width: 32; Height: 32; saveSurf: false),// sprHandRope |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
366 |
(FileName: 'amBazooka'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
367 |
Width: 32; Height: 32; saveSurf: false),// sprHandBazooka |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
368 |
(FileName: 'amShotgun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
876 | 369 |
Width: 64; Height: 64; saveSurf: false),// sprHandShotgun |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
370 |
(FileName: 'amDEagle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
876 | 371 |
Width: 64; Height: 64; saveSurf: false),// sprHandDEagle |
825 | 372 |
(FileName:'amAirAttack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
834 | 373 |
Width: 32; Height: 32; saveSurf: false),// sprHandAirAttack |
374 |
(FileName: 'amBaseball'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
845 | 375 |
Width: 32; Height: 32; saveSurf: false),// sprHandBaseball |
376 |
(FileName: 'Hammer'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
847 | 377 |
Width: 32; Height: 64; saveSurf: false),// sprPHammer |
378 |
(FileName: 'amBTorch_i'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
379 |
Width: 32; Height: 32; saveSurf: false),// sprHandBlowToch |
|
380 |
(FileName: 'amBTorch_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
853 | 381 |
Width: 32; Height: 32; saveSurf: false),// sprBlowToch |
382 |
(FileName: 'Teleport'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
868 | 383 |
Width: 64; Height: 32; saveSurf: false),// sprTeleport |
384 |
(FileName: 'HHDeath'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
876 | 385 |
Width: 32; Height: 64; saveSurf: false),// sprHHDeath |
386 |
(FileName:'amShotgun_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
387 |
Width: 64; Height: 64; saveSurf: false),// sprShotgun |
|
388 |
(FileName: 'amDEagle_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
954 | 389 |
Width: 64; Height: 64; saveSurf: false),// sprDEagle |
390 |
(FileName: 'Idle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
959 | 391 |
Width: 32; Height: 32; saveSurf: false),// sprHHIdle |
392 |
(FileName: 'Mortar'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
961
a9a349b2b3fa
Use turnsleft sprites to indicate turns left to activate ammo
unc0rr
parents:
959
diff
changeset
|
393 |
Width: 16; Height: 16; saveSurf: false),// sprMortar |
a9a349b2b3fa
Use turnsleft sprites to indicate turns left to activate ammo
unc0rr
parents:
959
diff
changeset
|
394 |
(FileName: 'TurnsLeft'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
970 | 395 |
Width: 16; Height: 16; saveSurf: false),// sprTurnsLeft |
396 |
(FileName: 'Samurai'; Path: ptHats ; AltPath: ptNone; Texture: nil; Surface: nil; |
|
987 | 397 |
Width: 32; Height: 32; saveSurf: false),// sprHat |
398 |
(FileName: 'amKamikaze'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
1010 | 399 |
Width: 256; Height: 32; saveSurf: false),// sprKamikaze |
400 |
(FileName: 'amWhip'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
1033 | 401 |
Width: 128; Height: 32; saveSurf: false),// sprWhip |
402 |
(FileName: 'Kowtow'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
403 |
Width: 32; Height: 32; saveSurf: false) // sprWhip |
|
35 | 404 |
); |
688 | 405 |
|
4 | 406 |
Soundz: array[TSound] of record |
1033 | 407 |
FileName: String[19]; |
799 | 408 |
Path : TPathType; |
409 |
id : PMixChunk; |
|
410 |
lastChan: LongInt; |
|
411 |
end = ( |
|
412 |
(FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact |
|
413 |
(FileName: 'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion |
|
414 |
(FileName: 'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp |
|
415 |
(FileName: 'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease |
|
416 |
(FileName: 'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash |
|
417 |
(FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload |
|
418 |
(FileName: 'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire |
|
419 |
(FileName: 'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact |
|
420 |
(FileName: 'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks |
|
421 |
(FileName: 'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer |
|
422 |
(FileName: 'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun |
|
423 |
(FileName: 'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndUFO |
|
424 |
(FileName: 'Jump1.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump1 |
|
425 |
(FileName: 'Jump2.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump2 |
|
800 | 426 |
(FileName: 'Jump3.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump3 |
427 |
(FileName: 'Yessir.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndYesSir |
|
801 | 428 |
(FileName: 'Laugh.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndLaugh |
429 |
(FileName: 'Illgetyou.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIllGetYou |
|
815 | 430 |
(FileName: 'Incoming.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIncoming |
431 |
(FileName: 'Missed.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndMissed |
|
829 | 432 |
(FileName: 'Stupid.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndStupid |
863 | 433 |
(FileName: 'Firstblood.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndFirstBlood |
434 |
(FileName: 'Boring.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndBoring |
|
864 | 435 |
(FileName: 'Byebye.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndByeBye |
436 |
(FileName: 'Sameteam.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndSameTeam |
|
865 | 437 |
(FileName: 'Nutter.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndNutter |
866 | 438 |
(FileName:'Reinforcements.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndReinforce |
439 |
(FileName: 'Traitor.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndTraitor |
|
867 | 440 |
(FileName:'Youllregretthat.ogg';Path: ptVoices; id: nil; lastChan: 0),// sndRegret |
870 | 441 |
(FileName: 'Enemydown.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndEnemyDown |
442 |
(FileName: 'Coward.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndCoward |
|
873 | 443 |
(FileName: 'Hurry.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndHurry |
992 | 444 |
(FileName: 'Watchit.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndWatchIt |
445 |
(FileName: 'Kamikaze.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndKamikaze |
|
815 | 446 |
); |
4 | 447 |
|
448 |
Ammoz: array [TAmmoType] of record |
|
80 | 449 |
NameId: TAmmoStrId; |
843 | 450 |
NameTex: PTexture; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
451 |
Probability, NumberInCase: Longword; |
4 | 452 |
Ammo: TAmmo; |
112 | 453 |
Slot: 0..cMaxSlotIndex; |
4 | 454 |
TimeAfterTurn: Longword; |
304 | 455 |
minAngle, maxAngle: Longword; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
456 |
isDamaging: boolean; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
457 |
SkipTurns: Longword; |
408 | 458 |
PosCount: Longword; |
459 |
PosSprite: TSprite; |
|
4 | 460 |
end = ( |
80 | 461 |
(NameId: sidGrenade; |
843 | 462 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
463 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
464 |
NumberInCase: 1; |
263 | 465 |
Ammo: (Propz: ammoprop_Timerable or |
930 | 466 |
ammoprop_Power or |
467 |
ammoprop_AltUse; |
|
4 | 468 |
Count: AMMO_INFINITE; |
469 |
NumPerTurn: 0; |
|
470 |
Timer: 3000; |
|
408 | 471 |
Pos: 0; |
4 | 472 |
AmmoType: amGrenade); |
10 | 473 |
Slot: 1; |
351 | 474 |
TimeAfterTurn: 3000; |
475 |
minAngle: 0; |
|
408 | 476 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
477 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
478 |
SkipTurns: 0; |
495 | 479 |
PosCount: 1; |
480 |
PosSprite: sprWater), |
|
80 | 481 |
(NameId: sidClusterBomb; |
843 | 482 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
483 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
484 |
NumberInCase: 3; |
263 | 485 |
Ammo: (Propz: ammoprop_Timerable or |
930 | 486 |
ammoprop_Power or |
487 |
ammoprop_AltUse; |
|
78 | 488 |
Count: 5; |
489 |
NumPerTurn: 0; |
|
490 |
Timer: 3000; |
|
408 | 491 |
Pos: 0; |
78 | 492 |
AmmoType: amClusterBomb); |
493 |
Slot: 1; |
|
351 | 494 |
TimeAfterTurn: 3000; |
495 |
minAngle: 0; |
|
408 | 496 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
497 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
498 |
SkipTurns: 0; |
495 | 499 |
PosCount: 1; |
500 |
PosSprite: sprWater), |
|
80 | 501 |
(NameId: sidBazooka; |
843 | 502 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
503 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
504 |
NumberInCase: 1; |
930 | 505 |
Ammo: (Propz: ammoprop_Power or |
506 |
ammoprop_AltUse; |
|
4 | 507 |
Count: AMMO_INFINITE; |
508 |
NumPerTurn: 0; |
|
509 |
Timer: 0; |
|
408 | 510 |
Pos: 0; |
4 | 511 |
AmmoType: amBazooka); |
10 | 512 |
Slot: 0; |
351 | 513 |
TimeAfterTurn: 3000; |
514 |
minAngle: 0; |
|
408 | 515 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
516 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
517 |
SkipTurns: 0; |
495 | 518 |
PosCount: 1; |
519 |
PosSprite: sprWater), |
|
80 | 520 |
(NameId: sidUFO; |
843 | 521 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
522 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
523 |
NumberInCase: 1; |
263 | 524 |
Ammo: (Propz: ammoprop_Power or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
525 |
ammoprop_NeedTarget or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
526 |
ammoprop_DontHold; |
56 | 527 |
Count: 2; |
4 | 528 |
NumPerTurn: 0; |
529 |
Timer: 0; |
|
408 | 530 |
Pos: 0; |
4 | 531 |
AmmoType: amUFO); |
532 |
Slot: 0; |
|
351 | 533 |
TimeAfterTurn: 3000; |
534 |
minAngle: 0; |
|
408 | 535 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
536 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
537 |
SkipTurns: 0; |
495 | 538 |
PosCount: 1; |
539 |
PosSprite: sprWater), |
|
80 | 540 |
(NameId: sidShotgun; |
843 | 541 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
542 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
543 |
NumberInCase: 1; |
95 | 544 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 545 |
Count: AMMO_INFINITE; |
546 |
NumPerTurn: 1; |
|
547 |
Timer: 0; |
|
408 | 548 |
Pos: 0; |
4 | 549 |
AmmoType: amShotgun); |
550 |
Slot: 2; |
|
351 | 551 |
TimeAfterTurn: 3000; |
552 |
minAngle: 0; |
|
408 | 553 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
554 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
555 |
SkipTurns: 0; |
495 | 556 |
PosCount: 1; |
557 |
PosSprite: sprWater), |
|
80 | 558 |
(NameId: sidPickHammer; |
843 | 559 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
560 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
561 |
NumberInCase: 1; |
263 | 562 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 563 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
564 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
565 |
ammoprop_DontHold; |
4 | 566 |
Count: 2; |
567 |
NumPerTurn: 0; |
|
568 |
Timer: 0; |
|
408 | 569 |
Pos: 0; |
4 | 570 |
AmmoType: amPickHammer); |
263 | 571 |
Slot: 6; |
351 | 572 |
TimeAfterTurn: 0; |
573 |
minAngle: 0; |
|
408 | 574 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
575 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
576 |
SkipTurns: 0; |
495 | 577 |
PosCount: 1; |
578 |
PosSprite: sprWater), |
|
80 | 579 |
(NameId: sidSkip; |
843 | 580 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
581 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
582 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
583 |
Ammo: (Propz: ammoprop_DontHold; |
4 | 584 |
Count: AMMO_INFINITE; |
585 |
NumPerTurn: 0; |
|
586 |
Timer: 0; |
|
408 | 587 |
Pos: 0; |
4 | 588 |
AmmoType: amSkip); |
263 | 589 |
Slot: 8; |
351 | 590 |
TimeAfterTurn: 0; |
591 |
minAngle: 0; |
|
408 | 592 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
593 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
594 |
SkipTurns: 0; |
495 | 595 |
PosCount: 1; |
596 |
PosSprite: sprWater), |
|
80 | 597 |
(NameId: sidRope; |
843 | 598 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
599 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
600 |
NumberInCase: 3; |
263 | 601 |
Ammo: (Propz: ammoprop_ForwMsgs or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
602 |
ammoprop_AttackInMove or |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
603 |
ammoprop_DontHold or |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
604 |
ammoprop_AltAttack; |
4 | 605 |
Count: 5; |
606 |
NumPerTurn: 0; |
|
607 |
Timer: 0; |
|
408 | 608 |
Pos: 0; |
4 | 609 |
AmmoType: amRope); |
263 | 610 |
Slot: 7; |
304 | 611 |
TimeAfterTurn: 0; |
351 | 612 |
minAngle: 0; |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
613 |
maxAngle: cMaxAngle div 2; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
614 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
615 |
SkipTurns: 0; |
495 | 616 |
PosCount: 1; |
617 |
PosSprite: sprWater), |
|
80 | 618 |
(NameId: sidMine; |
843 | 619 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
620 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
621 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
622 |
Ammo: (Propz: ammoprop_NoCrosshair or |
931 | 623 |
ammoprop_AttackInMove or |
930 | 624 |
ammoprop_DontHold or |
625 |
ammoprop_AltUse; |
|
56 | 626 |
Count: 2; |
10 | 627 |
NumPerTurn: 0; |
628 |
Timer: 0; |
|
408 | 629 |
Pos: 0; |
10 | 630 |
AmmoType: amMine); |
79 | 631 |
Slot: 4; |
351 | 632 |
TimeAfterTurn: 5000; |
633 |
minAngle: 0; |
|
408 | 634 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
635 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
636 |
SkipTurns: 0; |
495 | 637 |
PosCount: 1; |
638 |
PosSprite: sprWater), |
|
80 | 639 |
(NameId: sidDEagle; |
843 | 640 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
641 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
642 |
NumberInCase: 2; |
37 | 643 |
Ammo: (Propz: 0; |
75 | 644 |
Count: 3; |
37 | 645 |
NumPerTurn: 3; |
646 |
Timer: 0; |
|
408 | 647 |
Pos: 0; |
37 | 648 |
AmmoType: amDEagle); |
649 |
Slot: 2; |
|
351 | 650 |
TimeAfterTurn: 3000; |
651 |
minAngle: 0; |
|
408 | 652 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
653 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
654 |
SkipTurns: 0; |
495 | 655 |
PosCount: 1; |
656 |
PosSprite: sprWater), |
|
408 | 657 |
(NameId: sidDynamite; |
843 | 658 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
659 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
660 |
NumberInCase: 1; |
408 | 661 |
Ammo: (Propz: ammoprop_NoCrosshair or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
662 |
ammoprop_AttackInMove or |
930 | 663 |
ammoprop_DontHold or |
664 |
ammoprop_AltUse; |
|
408 | 665 |
Count: 1; |
666 |
NumPerTurn: 0; |
|
667 |
Timer: 0; |
|
668 |
Pos: 0; |
|
669 |
AmmoType: amDynamite); |
|
670 |
Slot: 4; |
|
671 |
TimeAfterTurn: 5000; |
|
351 | 672 |
minAngle: 0; |
408 | 673 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
674 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
675 |
SkipTurns: 0; |
495 | 676 |
PosCount: 1; |
677 |
PosSprite: sprWater), |
|
408 | 678 |
(NameId: sidFirePunch; |
843 | 679 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
680 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
681 |
NumberInCase: 1; |
408 | 682 |
Ammo: (Propz: ammoprop_NoCrosshair or |
683 |
ammoprop_ForwMsgs or |
|
542 | 684 |
ammoprop_AttackInMove; |
408 | 685 |
Count: AMMO_INFINITE; |
686 |
NumPerTurn: 0; |
|
687 |
Timer: 0; |
|
688 |
Pos: 0; |
|
689 |
AmmoType: amFirePunch); |
|
690 |
Slot: 3; |
|
691 |
TimeAfterTurn: 3000; |
|
692 |
MinAngle: 0; |
|
693 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
694 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
695 |
SkipTurns: 0; |
495 | 696 |
PosCount: 1; |
697 |
PosSprite: sprWater), |
|
925 | 698 |
(NameId: sidWhip; |
699 |
NameTex: nil; |
|
700 |
Probability: 0; |
|
701 |
NumberInCase: 1; |
|
702 |
Ammo: (Propz: ammoprop_NoCrosshair; |
|
703 |
Count: AMMO_INFINITE; |
|
704 |
NumPerTurn: 0; |
|
705 |
Timer: 0; |
|
706 |
Pos: 0; |
|
707 |
AmmoType: amWhip); |
|
708 |
Slot: 3; |
|
709 |
TimeAfterTurn: 3000; |
|
710 |
MinAngle: 0; |
|
711 |
maxAngle: 0; |
|
712 |
isDamaging: true; |
|
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
713 |
SkipTurns: 0; |
925 | 714 |
PosCount: 1; |
715 |
PosSprite: sprWater), |
|
408 | 716 |
(NameId: sidBaseballBat; |
843 | 717 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
718 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
719 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
720 |
Ammo: (Propz: ammoprop_DontHold; |
408 | 721 |
Count: 1; |
722 |
NumPerTurn: 0; |
|
723 |
Timer: 0; |
|
724 |
Pos: 0; |
|
725 |
AmmoType: amBaseballBat); |
|
726 |
Slot: 3; |
|
727 |
TimeAfterTurn: 5000; |
|
351 | 728 |
minAngle: 0; |
408 | 729 |
maxAngle: cMaxAngle div 2; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
730 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
731 |
SkipTurns: 2; |
495 | 732 |
PosCount: 1; |
733 |
PosSprite: sprWater), |
|
211 | 734 |
(NameId: sidParachute; |
843 | 735 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
736 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
737 |
NumberInCase: 1; |
263 | 738 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 739 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
740 |
ammoprop_NoCrosshair or |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
741 |
ammoprop_DontHold or |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
742 |
ammoprop_AltAttack; |
211 | 743 |
Count: 2; |
744 |
NumPerTurn: 0; |
|
745 |
Timer: 0; |
|
408 | 746 |
Pos: 0; |
211 | 747 |
AmmoType: amParachute); |
263 | 748 |
Slot: 7; |
351 | 749 |
TimeAfterTurn: 0; |
750 |
minAngle: 0; |
|
408 | 751 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
752 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
753 |
SkipTurns: 0; |
495 | 754 |
PosCount: 1; |
755 |
PosSprite: sprWater), |
|
263 | 756 |
(NameId: sidAirAttack; |
843 | 757 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
758 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
759 |
NumberInCase: 1; |
263 | 760 |
Ammo: (Propz: ammoprop_NoCrosshair or |
761 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
762 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
763 |
ammoprop_DontHold; |
285 | 764 |
Count: 1; |
263 | 765 |
NumPerTurn: 0; |
766 |
Timer: 0; |
|
408 | 767 |
Pos: 0; |
263 | 768 |
AmmoType: amAirAttack); |
769 |
Slot: 5; |
|
351 | 770 |
TimeAfterTurn: 0; |
771 |
minAngle: 0; |
|
408 | 772 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
773 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
774 |
SkipTurns: 5; |
408 | 775 |
PosCount: 2; |
776 |
PosSprite: sprAmAirplane), |
|
285 | 777 |
(NameId: sidMineStrike; |
843 | 778 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
779 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
780 |
NumberInCase: 1; |
285 | 781 |
Ammo: (Propz: ammoprop_NoCrosshair or |
782 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
783 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
784 |
ammoprop_DontHold; |
285 | 785 |
Count: 1; |
786 |
NumPerTurn: 0; |
|
787 |
Timer: 0; |
|
408 | 788 |
Pos: 0; |
285 | 789 |
AmmoType: amMineStrike); |
790 |
Slot: 5; |
|
351 | 791 |
TimeAfterTurn: 0; |
792 |
minAngle: 0; |
|
408 | 793 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
794 |
isDamaging: true; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
795 |
SkipTurns: 5; |
408 | 796 |
PosCount: 2; |
797 |
PosSprite: sprAmAirplane), |
|
302 | 798 |
(NameId: sidBlowTorch; |
843 | 799 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
800 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
801 |
NumberInCase: 2; |
302 | 802 |
Ammo: (Propz: ammoprop_ForwMsgs; |
803 |
Count: 1; |
|
804 |
NumPerTurn: 0; |
|
805 |
Timer: 0; |
|
408 | 806 |
Pos: 0; |
302 | 807 |
AmmoType: amBlowTorch); |
808 |
Slot: 6; |
|
304 | 809 |
TimeAfterTurn: 3000; |
305 | 810 |
minAngle: 768; |
408 | 811 |
maxAngle: 1280; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
812 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
813 |
SkipTurns: 0; |
495 | 814 |
PosCount: 1; |
815 |
PosSprite: sprWater), |
|
409 | 816 |
(NameId: sidGirder; |
843 | 817 |
NameTex: nil; |
409 | 818 |
Probability: 400; |
411 | 819 |
NumberInCase: 3; |
409 | 820 |
Ammo: (Propz: ammoprop_NoCrosshair or |
821 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
822 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
823 |
ammoprop_DontHold; |
409 | 824 |
Count: 1; |
825 |
NumPerTurn: 0; |
|
826 |
Timer: 0; |
|
827 |
Pos: 0; |
|
828 |
AmmoType: amGirder); |
|
829 |
Slot: 6; |
|
830 |
TimeAfterTurn: 3000; |
|
831 |
minAngle: 0; |
|
832 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
833 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
834 |
SkipTurns: 0; |
423 | 835 |
PosCount: 8; |
520 | 836 |
PosSprite: sprAmGirder), |
837 |
(NameId: sidTeleport; |
|
843 | 838 |
NameTex: nil; |
520 | 839 |
Probability: 400; |
840 |
NumberInCase: 1; |
|
525 | 841 |
Ammo: (Propz: ammoprop_ForwMsgs or |
842 |
ammoprop_NoCrosshair or |
|
520 | 843 |
ammoprop_NeedTarget or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
844 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
845 |
ammoprop_DontHold; |
520 | 846 |
Count: 2; |
847 |
NumPerTurn: 0; |
|
848 |
Timer: 0; |
|
849 |
Pos: 0; |
|
850 |
AmmoType: amTeleport); |
|
851 |
Slot: 7; |
|
852 |
TimeAfterTurn: 0; |
|
853 |
minAngle: 0; |
|
854 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
855 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
856 |
SkipTurns: 0; |
520 | 857 |
PosCount: 1; |
534 | 858 |
PosSprite: sprWater), |
859 |
(NameId: sidSwitch; |
|
843 | 860 |
NameTex: nil; |
534 | 861 |
Probability: 100; |
862 |
NumberInCase: 1; |
|
863 |
Ammo: (Propz: ammoprop_ForwMsgs or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
864 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
865 |
ammoprop_DontHold; |
534 | 866 |
Count: 3; |
867 |
NumPerTurn: 0; |
|
868 |
Timer: 0; |
|
869 |
Pos: 0; |
|
870 |
AmmoType: amSwitch); |
|
871 |
Slot: 8; |
|
872 |
TimeAfterTurn: 0; |
|
873 |
minAngle: 0; |
|
874 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
875 |
isDamaging: false; |
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
876 |
SkipTurns: 0; |
534 | 877 |
PosCount: 1; |
924 | 878 |
PosSprite: sprWater), |
879 |
(NameId: sidMortar; |
|
880 |
NameTex: nil; |
|
881 |
Probability: 100; |
|
882 |
NumberInCase: 5; |
|
883 |
Ammo: (Propz: 0; |
|
983 | 884 |
Count: 4; |
924 | 885 |
NumPerTurn: 0; |
886 |
Timer: 0; |
|
887 |
Pos: 0; |
|
888 |
AmmoType: amMortar); |
|
889 |
Slot: 1; |
|
890 |
TimeAfterTurn: 3000; |
|
891 |
minAngle: 0; |
|
892 |
maxAngle: 0; |
|
893 |
isDamaging: true; |
|
941
b5222ddafe1f
- Fix bug with picking up ammos from cases, when total ammo count may become more than AMMO_INFINITE
unc0rr
parents:
936
diff
changeset
|
894 |
SkipTurns: 0; |
924 | 895 |
PosCount: 1; |
983 | 896 |
PosSprite: sprWater), |
897 |
(NameId: sidKamikaze; |
|
898 |
NameTex: nil; |
|
899 |
Probability: 100; |
|
900 |
NumberInCase: 1; |
|
984 | 901 |
Ammo: (Propz: ammoprop_ForwMsgs or |
902 |
ammoprop_DontHold; |
|
983 | 903 |
Count: 1; |
904 |
NumPerTurn: 0; |
|
905 |
Timer: 0; |
|
906 |
Pos: 0; |
|
907 |
AmmoType: amKamikaze); |
|
908 |
Slot: 3; |
|
909 |
TimeAfterTurn: 0; |
|
910 |
minAngle: 0; |
|
911 |
maxAngle: 0; |
|
912 |
isDamaging: true; |
|
913 |
SkipTurns: 0; |
|
914 |
PosCount: 1; |
|
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
915 |
PosSprite: sprWater) |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
916 |
); |
37 | 917 |
|
844 | 918 |
var CountTexz: array[1..9] of PTexture; |
919 |
||
4 | 920 |
implementation |
921 |
||
922 |
end. |