author | unc0rr |
Mon, 09 Jun 2008 14:57:54 +0000 | |
changeset 979 | edb8f208c1d9 |
parent 970 | 1bd9a4eafbc3 |
child 983 | d21ad13cd17d |
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 |
|
946 | 26 |
TGameState = (gsLandGen, gsStart, gsGame, gsConsole, gsChat, 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, |
688 | 42 |
sprSwitch, sprParachute, sprTarget, sprRopeNode, sprConsoleBG, |
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, |
48 |
sprHat); |
|
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, |
57 |
gtWhip); |
|
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, |
873 | 69 |
sndEnemyDown, sndCoward, sndHurry, sndWatchIt); |
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, |
924 | 74 |
amGirder, amTeleport, amSwitch, amMortar); |
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 |
|
304 | 120 |
cMaxPower = 1500; |
121 |
cMaxAngle = 2048; |
|
122 |
cPowerDivisor = 1500; |
|
621 | 123 |
|
74 | 124 |
MAXNAMELEN = 32; |
125 |
||
760 | 126 |
COLOR_LAND = $00FFFFFF; |
64 | 127 |
|
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
128 |
cifRandomize = $00000001; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
129 |
cifTheme = $00000002; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
130 |
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
|
131 |
cifAllInited = cifRandomize or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
132 |
cifTheme or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
133 |
cifMap; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
134 |
|
188 | 135 |
cTransparentColor: Longword = $000000; |
4 | 136 |
|
614 | 137 |
cMaxTeams = 6; |
109 | 138 |
cMaxHHIndex = 7; |
423 | 139 |
cMaxHHs = 30; |
53 | 140 |
cMaxSpawnPoints = 1024; |
4 | 141 |
|
22 | 142 |
cMaxEdgePoints = 16384; |
143 |
||
53 | 144 |
cHHRadius = 9; |
70 | 145 |
cHHStepTicks = 38; |
509 | 146 |
|
294 | 147 |
cHHZ = 1000; |
148 |
cCurrHHZ = Succ(cHHZ); |
|
4 | 149 |
|
509 | 150 |
cShotgunRadius = 22; |
511 | 151 |
cBlowTorchC = 6; |
509 | 152 |
|
109 | 153 |
cKeyMaxIndex = 1023; |
4 | 154 |
|
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
155 |
cMaxCaptions = 4; |
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
156 |
|
601
78a68cc4d846
Special game mode allowing the only clan on map for training mode
unc0rr
parents:
590
diff
changeset
|
157 |
gfForts = $00000001; |
614 | 158 |
gfMultiWeapon = $00000002; |
621 | 159 |
gfSolidLand = $00000004; |
601
78a68cc4d846
Special game mode allowing the only clan on map for training mode
unc0rr
parents:
590
diff
changeset
|
160 |
gfOneClanMode = $10000000; |
4 | 161 |
|
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; |
|
79 | 172 |
gstNoDamage = $00001000; |
424 | 173 |
gstHHHJump = $00002000; |
511 | 174 |
gstAnimation = $00004000; |
868 | 175 |
gstHHDeath = $00008000; |
4 | 176 |
|
177 |
gm_Left = $00000001; |
|
178 |
gm_Right = $00000002; |
|
179 |
gm_Up = $00000004; |
|
180 |
gm_Down = $00000008; |
|
181 |
gm_Switch = $00000010; |
|
182 |
gm_Attack = $00000020; |
|
183 |
gm_LJump = $00000040; |
|
184 |
gm_HJump = $00000080; |
|
185 |
gm_Destroy= $00000100; |
|
783 | 186 |
gm_Slot = $00000200; // with param |
187 |
gm_Weapon = $00000400; // with param |
|
926
d231e007452a
Timer as hedgehog message (avoid possible desync in very rare cases)
unc0rr
parents:
925
diff
changeset
|
188 |
gm_Timer = $00000800; // with param |
936
ba582673db7d
Fix 'AI may break demos playing' message while loading saves
unc0rr
parents:
931
diff
changeset
|
189 |
gmAllStoppable = gm_Left or gm_Right or gm_Up or gm_Down or gm_Attack; |
4 | 190 |
|
263 | 191 |
cMaxSlotIndex = 8; |
409 | 192 |
cMaxSlotAmmoIndex = 2; |
4 | 193 |
|
194 |
ammoprop_Timerable = $00000001; |
|
195 |
ammoprop_Power = $00000002; |
|
196 |
ammoprop_NeedTarget = $00000004; |
|
197 |
ammoprop_ForwMsgs = $00000008; |
|
542 | 198 |
ammoprop_AttackInMove = $00000010; |
13 | 199 |
ammoprop_NoCrosshair = $00000040; |
263 | 200 |
ammoprop_AttackingPut = $00000080; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
201 |
ammoprop_DontHold = $00000100; |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
202 |
ammoprop_AltAttack = $00000200; |
930 | 203 |
ammoprop_AltUse = $00000400; |
204 |
||
965 | 205 |
AMMO_INFINITE = 9; |
4 | 206 |
|
42 | 207 |
EXPLAllDamageInRadius = $00000001; |
208 |
EXPLAutoSound = $00000002; |
|
209 |
EXPLNoDamage = $00000004; |
|
210 |
EXPLDoNotTouchHH = $00000008; |
|
305 | 211 |
EXPLDontDraw = $00000010; |
42 | 212 |
|
213 |
posCaseAmmo = $00000001; |
|
214 |
posCaseHealth = $00000002; |
|
4 | 215 |
|
371 | 216 |
NoPointX = Low(LongInt); |
4 | 217 |
|
74 | 218 |
cHHFileName = 'Hedgehog'; |
219 |
cCHFileName = 'Crosshair'; |
|
4 | 220 |
cThemeCFGFilename = 'theme.cfg'; |
221 |
||
222 |
Fontz: array[THWFont] of THHFont = ( |
|
351 | 223 |
(Handle: nil; |
224 |
Height: 12; |
|
202 | 225 |
style: TTF_STYLE_NORMAL; |
74 | 226 |
Name: 'DejaVuSans.ttf'), |
351 | 227 |
(Handle: nil; |
228 |
Height: 24; |
|
202 | 229 |
style: TTF_STYLE_NORMAL; |
522 | 230 |
Name: 'DejaVuSans.ttf'), |
231 |
(Handle: nil; |
|
232 |
Height: 10; |
|
233 |
style: TTF_STYLE_NORMAL; |
|
74 | 234 |
Name: 'DejaVuSans.ttf') |
4 | 235 |
); |
236 |
||
202 | 237 |
FontBorder = 2; |
238 |
||
99 | 239 |
PathPrefix: string = './'; |
240 |
Pathz: array[TPathType] of string = ( |
|
805 | 241 |
'', // ptNone |
267 | 242 |
'', // ptData |
243 |
'Graphics', // ptGraphics |
|
244 |
'Themes', // ptThemes |
|
245 |
'Themes/avematan', // ptCurrTheme |
|
246 |
'Teams', // ptTeams |
|
247 |
'Maps', // ptMaps |
|
53 | 248 |
'', // ptMapCurrent |
267 | 249 |
'Demos', // ptDemos |
250 |
'Sounds', // ptSounds |
|
251 |
'Graphics/Graves', // ptGraves |
|
252 |
'Fonts', // ptFonts |
|
253 |
'Forts', // ptForts |
|
254 |
'Locale', // ptLocale |
|
799 | 255 |
'Graphics/AmmoMenu', // ptAmmoMenu |
822 | 256 |
'Graphics/Hedgehog', // ptHedgehog |
970 | 257 |
'Sounds/voices', // ptVoices |
258 |
'Graphics/Hats' // ptHats |
|
4 | 259 |
); |
260 |
||
261 |
SpritesData: array[TSprite] of record |
|
35 | 262 |
FileName: String[31]; |
80 | 263 |
Path, AltPath: TPathType; |
755 | 264 |
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
|
265 |
Surface: PSDL_Surface; |
371 | 266 |
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
|
267 |
saveSurf: boolean; |
35 | 268 |
end = ( |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
269 |
(FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
793 | 270 |
Width: 256; Height: 32; saveSurf: false),// sprWater |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
271 |
(FileName: 'Clouds'; Path: ptCurrTheme;AltPath: ptGraphics; 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
|
272 |
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
|
273 |
(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
|
274 |
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
|
275 |
(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
|
276 |
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
|
277 |
(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
|
278 |
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
|
279 |
(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
|
280 |
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
|
281 |
(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
|
282 |
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
|
283 |
(FileName: 'Grenade'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
775 | 284 |
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
|
285 |
(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
|
286 |
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
|
287 |
(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
|
288 |
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
|
289 |
(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
|
290 |
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
|
291 |
(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
|
292 |
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
|
293 |
(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
|
294 |
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
|
295 |
(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
|
296 |
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
|
297 |
(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
|
298 |
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
|
299 |
(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
|
300 |
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
|
301 |
(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
|
302 |
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
|
303 |
(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
|
304 |
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
|
305 |
(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
|
306 |
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
|
307 |
(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
|
308 |
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
|
309 |
(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
|
310 |
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
|
311 |
(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
|
312 |
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
|
313 |
(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
|
314 |
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
|
315 |
(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
|
316 |
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
|
317 |
(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
|
318 |
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
|
319 |
(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
|
320 |
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
|
321 |
(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
|
322 |
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
|
323 |
(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
|
324 |
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
|
325 |
(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
|
326 |
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
|
327 |
(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
|
328 |
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
|
329 |
(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
|
330 |
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
|
331 |
(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
|
332 |
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
|
333 |
(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
|
334 |
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
|
335 |
(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
|
336 |
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
|
337 |
(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
|
338 |
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
|
339 |
(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
|
340 |
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
|
341 |
(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
|
342 |
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
|
343 |
(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
|
344 |
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
|
345 |
(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
|
346 |
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
|
347 |
(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
|
348 |
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
|
349 |
(FileName: 'Console'; 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
|
350 |
Width: 256; Height:256; saveSurf: false),// sprConsoleBG |
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
351 |
(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
|
352 |
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
|
353 |
(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
|
354 |
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
|
355 |
(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
|
356 |
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
|
357 |
(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
|
358 |
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
|
359 |
(FileName: 'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
805 | 360 |
Width: 80; Height: 13; saveSurf: false),// sprWindR |
361 |
(FileName: 'Flake'; Path:ptCurrTheme; AltPath: ptNone; Texture: nil; Surface: nil; |
|
822 | 362 |
Width: 64; Height: 64; saveSurf: false),// sprFlake |
363 |
(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
|
364 |
Width: 32; Height: 32; saveSurf: false),// sprHandRope |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
365 |
(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
|
366 |
Width: 32; Height: 32; saveSurf: false),// sprHandBazooka |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
367 |
(FileName: 'amShotgun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
876 | 368 |
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
|
369 |
(FileName: 'amDEagle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
876 | 370 |
Width: 64; Height: 64; saveSurf: false),// sprHandDEagle |
825 | 371 |
(FileName:'amAirAttack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
834 | 372 |
Width: 32; Height: 32; saveSurf: false),// sprHandAirAttack |
373 |
(FileName: 'amBaseball'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
845 | 374 |
Width: 32; Height: 32; saveSurf: false),// sprHandBaseball |
375 |
(FileName: 'Hammer'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
847 | 376 |
Width: 32; Height: 64; saveSurf: false),// sprPHammer |
377 |
(FileName: 'amBTorch_i'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
378 |
Width: 32; Height: 32; saveSurf: false),// sprHandBlowToch |
|
379 |
(FileName: 'amBTorch_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
853 | 380 |
Width: 32; Height: 32; saveSurf: false),// sprBlowToch |
381 |
(FileName: 'Teleport'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
868 | 382 |
Width: 64; Height: 32; saveSurf: false),// sprTeleport |
383 |
(FileName: 'HHDeath'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
|
876 | 384 |
Width: 32; Height: 64; saveSurf: false),// sprHHDeath |
385 |
(FileName:'amShotgun_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
386 |
Width: 64; Height: 64; saveSurf: false),// sprShotgun |
|
387 |
(FileName: 'amDEagle_w'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
954 | 388 |
Width: 64; Height: 64; saveSurf: false),// sprDEagle |
389 |
(FileName: 'Idle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
959 | 390 |
Width: 32; Height: 32; saveSurf: false),// sprHHIdle |
391 |
(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
|
392 |
Width: 16; Height: 16; saveSurf: false),// sprMortar |
a9a349b2b3fa
Use turnsleft sprites to indicate turns left to activate ammo
unc0rr
parents:
959
diff
changeset
|
393 |
(FileName: 'TurnsLeft'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil; |
970 | 394 |
Width: 16; Height: 16; saveSurf: false),// sprTurnsLeft |
395 |
(FileName: 'Samurai'; Path: ptHats ; AltPath: ptNone; Texture: nil; Surface: nil; |
|
396 |
Width: 32; Height: 32; saveSurf: false) // sprHat |
|
35 | 397 |
); |
688 | 398 |
|
4 | 399 |
Soundz: array[TSound] of record |
799 | 400 |
FileName: String[31]; |
401 |
Path : TPathType; |
|
402 |
id : PMixChunk; |
|
403 |
lastChan: LongInt; |
|
404 |
end = ( |
|
405 |
(FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact |
|
406 |
(FileName: 'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion |
|
407 |
(FileName: 'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp |
|
408 |
(FileName: 'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease |
|
409 |
(FileName: 'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash |
|
410 |
(FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload |
|
411 |
(FileName: 'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire |
|
412 |
(FileName: 'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact |
|
413 |
(FileName: 'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks |
|
414 |
(FileName: 'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer |
|
415 |
(FileName: 'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun |
|
416 |
(FileName: 'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndUFO |
|
417 |
(FileName: 'Jump1.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump1 |
|
418 |
(FileName: 'Jump2.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump2 |
|
800 | 419 |
(FileName: 'Jump3.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump3 |
420 |
(FileName: 'Yessir.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndYesSir |
|
801 | 421 |
(FileName: 'Laugh.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndLaugh |
422 |
(FileName: 'Illgetyou.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIllGetYou |
|
815 | 423 |
(FileName: 'Incoming.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIncoming |
424 |
(FileName: 'Missed.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndMissed |
|
829 | 425 |
(FileName: 'Stupid.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndStupid |
863 | 426 |
(FileName: 'Firstblood.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndFirstBlood |
427 |
(FileName: 'Boring.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndBoring |
|
864 | 428 |
(FileName: 'Byebye.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndByeBye |
429 |
(FileName: 'Sameteam.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndSameTeam |
|
865 | 430 |
(FileName: 'Nutter.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndNutter |
866 | 431 |
(FileName:'Reinforcements.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndReinforce |
432 |
(FileName: 'Traitor.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndTraitor |
|
867 | 433 |
(FileName:'Youllregretthat.ogg';Path: ptVoices; id: nil; lastChan: 0),// sndRegret |
870 | 434 |
(FileName: 'Enemydown.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndEnemyDown |
435 |
(FileName: 'Coward.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndCoward |
|
873 | 436 |
(FileName: 'Hurry.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndHurry |
437 |
(FileName: 'Watchit.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndWatchIt |
|
815 | 438 |
); |
4 | 439 |
|
440 |
Ammoz: array [TAmmoType] of record |
|
80 | 441 |
NameId: TAmmoStrId; |
843 | 442 |
NameTex: PTexture; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
443 |
Probability, NumberInCase: Longword; |
4 | 444 |
Ammo: TAmmo; |
112 | 445 |
Slot: 0..cMaxSlotIndex; |
4 | 446 |
TimeAfterTurn: Longword; |
304 | 447 |
minAngle, maxAngle: Longword; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
448 |
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
|
449 |
SkipTurns: Longword; |
408 | 450 |
PosCount: Longword; |
451 |
PosSprite: TSprite; |
|
4 | 452 |
end = ( |
80 | 453 |
(NameId: sidGrenade; |
843 | 454 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
455 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
456 |
NumberInCase: 1; |
263 | 457 |
Ammo: (Propz: ammoprop_Timerable or |
930 | 458 |
ammoprop_Power or |
459 |
ammoprop_AltUse; |
|
4 | 460 |
Count: AMMO_INFINITE; |
461 |
NumPerTurn: 0; |
|
462 |
Timer: 3000; |
|
408 | 463 |
Pos: 0; |
4 | 464 |
AmmoType: amGrenade); |
10 | 465 |
Slot: 1; |
351 | 466 |
TimeAfterTurn: 3000; |
467 |
minAngle: 0; |
|
408 | 468 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
469 |
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
|
470 |
SkipTurns: 0; |
495 | 471 |
PosCount: 1; |
472 |
PosSprite: sprWater), |
|
80 | 473 |
(NameId: sidClusterBomb; |
843 | 474 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
475 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
476 |
NumberInCase: 3; |
263 | 477 |
Ammo: (Propz: ammoprop_Timerable or |
930 | 478 |
ammoprop_Power or |
479 |
ammoprop_AltUse; |
|
78 | 480 |
Count: 5; |
481 |
NumPerTurn: 0; |
|
482 |
Timer: 3000; |
|
408 | 483 |
Pos: 0; |
78 | 484 |
AmmoType: amClusterBomb); |
485 |
Slot: 1; |
|
351 | 486 |
TimeAfterTurn: 3000; |
487 |
minAngle: 0; |
|
408 | 488 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
489 |
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
|
490 |
SkipTurns: 0; |
495 | 491 |
PosCount: 1; |
492 |
PosSprite: sprWater), |
|
80 | 493 |
(NameId: sidBazooka; |
843 | 494 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
495 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
496 |
NumberInCase: 1; |
930 | 497 |
Ammo: (Propz: ammoprop_Power or |
498 |
ammoprop_AltUse; |
|
4 | 499 |
Count: AMMO_INFINITE; |
500 |
NumPerTurn: 0; |
|
501 |
Timer: 0; |
|
408 | 502 |
Pos: 0; |
4 | 503 |
AmmoType: amBazooka); |
10 | 504 |
Slot: 0; |
351 | 505 |
TimeAfterTurn: 3000; |
506 |
minAngle: 0; |
|
408 | 507 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
508 |
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
|
509 |
SkipTurns: 0; |
495 | 510 |
PosCount: 1; |
511 |
PosSprite: sprWater), |
|
80 | 512 |
(NameId: sidUFO; |
843 | 513 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
514 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
515 |
NumberInCase: 1; |
263 | 516 |
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
|
517 |
ammoprop_NeedTarget or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
518 |
ammoprop_DontHold; |
56 | 519 |
Count: 2; |
4 | 520 |
NumPerTurn: 0; |
521 |
Timer: 0; |
|
408 | 522 |
Pos: 0; |
4 | 523 |
AmmoType: amUFO); |
524 |
Slot: 0; |
|
351 | 525 |
TimeAfterTurn: 3000; |
526 |
minAngle: 0; |
|
408 | 527 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
528 |
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
|
529 |
SkipTurns: 0; |
495 | 530 |
PosCount: 1; |
531 |
PosSprite: sprWater), |
|
80 | 532 |
(NameId: sidShotgun; |
843 | 533 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
534 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
535 |
NumberInCase: 1; |
95 | 536 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 537 |
Count: AMMO_INFINITE; |
538 |
NumPerTurn: 1; |
|
539 |
Timer: 0; |
|
408 | 540 |
Pos: 0; |
4 | 541 |
AmmoType: amShotgun); |
542 |
Slot: 2; |
|
351 | 543 |
TimeAfterTurn: 3000; |
544 |
minAngle: 0; |
|
408 | 545 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
546 |
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
|
547 |
SkipTurns: 0; |
495 | 548 |
PosCount: 1; |
549 |
PosSprite: sprWater), |
|
80 | 550 |
(NameId: sidPickHammer; |
843 | 551 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
552 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
553 |
NumberInCase: 1; |
263 | 554 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 555 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
556 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
557 |
ammoprop_DontHold; |
4 | 558 |
Count: 2; |
559 |
NumPerTurn: 0; |
|
560 |
Timer: 0; |
|
408 | 561 |
Pos: 0; |
4 | 562 |
AmmoType: amPickHammer); |
263 | 563 |
Slot: 6; |
351 | 564 |
TimeAfterTurn: 0; |
565 |
minAngle: 0; |
|
408 | 566 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
567 |
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
|
568 |
SkipTurns: 0; |
495 | 569 |
PosCount: 1; |
570 |
PosSprite: sprWater), |
|
80 | 571 |
(NameId: sidSkip; |
843 | 572 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
573 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
574 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
575 |
Ammo: (Propz: ammoprop_DontHold; |
4 | 576 |
Count: AMMO_INFINITE; |
577 |
NumPerTurn: 0; |
|
578 |
Timer: 0; |
|
408 | 579 |
Pos: 0; |
4 | 580 |
AmmoType: amSkip); |
263 | 581 |
Slot: 8; |
351 | 582 |
TimeAfterTurn: 0; |
583 |
minAngle: 0; |
|
408 | 584 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
585 |
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
|
586 |
SkipTurns: 0; |
495 | 587 |
PosCount: 1; |
588 |
PosSprite: sprWater), |
|
80 | 589 |
(NameId: sidRope; |
843 | 590 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
591 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
592 |
NumberInCase: 3; |
263 | 593 |
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
|
594 |
ammoprop_AttackInMove or |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
595 |
ammoprop_DontHold or |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
596 |
ammoprop_AltAttack; |
4 | 597 |
Count: 5; |
598 |
NumPerTurn: 0; |
|
599 |
Timer: 0; |
|
408 | 600 |
Pos: 0; |
4 | 601 |
AmmoType: amRope); |
263 | 602 |
Slot: 7; |
304 | 603 |
TimeAfterTurn: 0; |
351 | 604 |
minAngle: 0; |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
605 |
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
|
606 |
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
|
607 |
SkipTurns: 0; |
495 | 608 |
PosCount: 1; |
609 |
PosSprite: sprWater), |
|
80 | 610 |
(NameId: sidMine; |
843 | 611 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
612 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
613 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
614 |
Ammo: (Propz: ammoprop_NoCrosshair or |
931 | 615 |
ammoprop_AttackInMove or |
930 | 616 |
ammoprop_DontHold or |
617 |
ammoprop_AltUse; |
|
56 | 618 |
Count: 2; |
10 | 619 |
NumPerTurn: 0; |
620 |
Timer: 0; |
|
408 | 621 |
Pos: 0; |
10 | 622 |
AmmoType: amMine); |
79 | 623 |
Slot: 4; |
351 | 624 |
TimeAfterTurn: 5000; |
625 |
minAngle: 0; |
|
408 | 626 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
627 |
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
|
628 |
SkipTurns: 0; |
495 | 629 |
PosCount: 1; |
630 |
PosSprite: sprWater), |
|
80 | 631 |
(NameId: sidDEagle; |
843 | 632 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
633 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
634 |
NumberInCase: 2; |
37 | 635 |
Ammo: (Propz: 0; |
75 | 636 |
Count: 3; |
37 | 637 |
NumPerTurn: 3; |
638 |
Timer: 0; |
|
408 | 639 |
Pos: 0; |
37 | 640 |
AmmoType: amDEagle); |
641 |
Slot: 2; |
|
351 | 642 |
TimeAfterTurn: 3000; |
643 |
minAngle: 0; |
|
408 | 644 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
645 |
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
|
646 |
SkipTurns: 0; |
495 | 647 |
PosCount: 1; |
648 |
PosSprite: sprWater), |
|
408 | 649 |
(NameId: sidDynamite; |
843 | 650 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
651 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
652 |
NumberInCase: 1; |
408 | 653 |
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
|
654 |
ammoprop_AttackInMove or |
930 | 655 |
ammoprop_DontHold or |
656 |
ammoprop_AltUse; |
|
408 | 657 |
Count: 1; |
658 |
NumPerTurn: 0; |
|
659 |
Timer: 0; |
|
660 |
Pos: 0; |
|
661 |
AmmoType: amDynamite); |
|
662 |
Slot: 4; |
|
663 |
TimeAfterTurn: 5000; |
|
351 | 664 |
minAngle: 0; |
408 | 665 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
666 |
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
|
667 |
SkipTurns: 0; |
495 | 668 |
PosCount: 1; |
669 |
PosSprite: sprWater), |
|
408 | 670 |
(NameId: sidFirePunch; |
843 | 671 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
672 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
673 |
NumberInCase: 1; |
408 | 674 |
Ammo: (Propz: ammoprop_NoCrosshair or |
675 |
ammoprop_ForwMsgs or |
|
542 | 676 |
ammoprop_AttackInMove; |
408 | 677 |
Count: AMMO_INFINITE; |
678 |
NumPerTurn: 0; |
|
679 |
Timer: 0; |
|
680 |
Pos: 0; |
|
681 |
AmmoType: amFirePunch); |
|
682 |
Slot: 3; |
|
683 |
TimeAfterTurn: 3000; |
|
684 |
MinAngle: 0; |
|
685 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
686 |
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
|
687 |
SkipTurns: 0; |
495 | 688 |
PosCount: 1; |
689 |
PosSprite: sprWater), |
|
925 | 690 |
(NameId: sidWhip; |
691 |
NameTex: nil; |
|
692 |
Probability: 0; |
|
693 |
NumberInCase: 1; |
|
694 |
Ammo: (Propz: ammoprop_NoCrosshair; |
|
695 |
Count: AMMO_INFINITE; |
|
696 |
NumPerTurn: 0; |
|
697 |
Timer: 0; |
|
698 |
Pos: 0; |
|
699 |
AmmoType: amWhip); |
|
700 |
Slot: 3; |
|
701 |
TimeAfterTurn: 3000; |
|
702 |
MinAngle: 0; |
|
703 |
maxAngle: 0; |
|
704 |
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
|
705 |
SkipTurns: 0; |
925 | 706 |
PosCount: 1; |
707 |
PosSprite: sprWater), |
|
408 | 708 |
(NameId: sidBaseballBat; |
843 | 709 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
710 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
711 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
712 |
Ammo: (Propz: ammoprop_DontHold; |
408 | 713 |
Count: 1; |
714 |
NumPerTurn: 0; |
|
715 |
Timer: 0; |
|
716 |
Pos: 0; |
|
717 |
AmmoType: amBaseballBat); |
|
718 |
Slot: 3; |
|
719 |
TimeAfterTurn: 5000; |
|
351 | 720 |
minAngle: 0; |
408 | 721 |
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
|
722 |
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
|
723 |
SkipTurns: 2; |
495 | 724 |
PosCount: 1; |
725 |
PosSprite: sprWater), |
|
211 | 726 |
(NameId: sidParachute; |
843 | 727 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
728 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
729 |
NumberInCase: 1; |
263 | 730 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 731 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
732 |
ammoprop_NoCrosshair or |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
733 |
ammoprop_DontHold or |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
734 |
ammoprop_AltAttack; |
211 | 735 |
Count: 2; |
736 |
NumPerTurn: 0; |
|
737 |
Timer: 0; |
|
408 | 738 |
Pos: 0; |
211 | 739 |
AmmoType: amParachute); |
263 | 740 |
Slot: 7; |
351 | 741 |
TimeAfterTurn: 0; |
742 |
minAngle: 0; |
|
408 | 743 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
744 |
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
|
745 |
SkipTurns: 0; |
495 | 746 |
PosCount: 1; |
747 |
PosSprite: sprWater), |
|
263 | 748 |
(NameId: sidAirAttack; |
843 | 749 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
750 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
751 |
NumberInCase: 1; |
263 | 752 |
Ammo: (Propz: ammoprop_NoCrosshair or |
753 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
754 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
755 |
ammoprop_DontHold; |
285 | 756 |
Count: 1; |
263 | 757 |
NumPerTurn: 0; |
758 |
Timer: 0; |
|
408 | 759 |
Pos: 0; |
263 | 760 |
AmmoType: amAirAttack); |
761 |
Slot: 5; |
|
351 | 762 |
TimeAfterTurn: 0; |
763 |
minAngle: 0; |
|
408 | 764 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
765 |
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
|
766 |
SkipTurns: 5; |
408 | 767 |
PosCount: 2; |
768 |
PosSprite: sprAmAirplane), |
|
285 | 769 |
(NameId: sidMineStrike; |
843 | 770 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
771 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
772 |
NumberInCase: 1; |
285 | 773 |
Ammo: (Propz: ammoprop_NoCrosshair or |
774 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
775 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
776 |
ammoprop_DontHold; |
285 | 777 |
Count: 1; |
778 |
NumPerTurn: 0; |
|
779 |
Timer: 0; |
|
408 | 780 |
Pos: 0; |
285 | 781 |
AmmoType: amMineStrike); |
782 |
Slot: 5; |
|
351 | 783 |
TimeAfterTurn: 0; |
784 |
minAngle: 0; |
|
408 | 785 |
maxAngle: 0; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
786 |
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
|
787 |
SkipTurns: 5; |
408 | 788 |
PosCount: 2; |
789 |
PosSprite: sprAmAirplane), |
|
302 | 790 |
(NameId: sidBlowTorch; |
843 | 791 |
NameTex: nil; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
792 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
793 |
NumberInCase: 2; |
302 | 794 |
Ammo: (Propz: ammoprop_ForwMsgs; |
795 |
Count: 1; |
|
796 |
NumPerTurn: 0; |
|
797 |
Timer: 0; |
|
408 | 798 |
Pos: 0; |
302 | 799 |
AmmoType: amBlowTorch); |
800 |
Slot: 6; |
|
304 | 801 |
TimeAfterTurn: 3000; |
305 | 802 |
minAngle: 768; |
408 | 803 |
maxAngle: 1280; |
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
804 |
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
|
805 |
SkipTurns: 0; |
495 | 806 |
PosCount: 1; |
807 |
PosSprite: sprWater), |
|
409 | 808 |
(NameId: sidGirder; |
843 | 809 |
NameTex: nil; |
409 | 810 |
Probability: 400; |
411 | 811 |
NumberInCase: 3; |
409 | 812 |
Ammo: (Propz: ammoprop_NoCrosshair or |
813 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
814 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
815 |
ammoprop_DontHold; |
409 | 816 |
Count: 1; |
817 |
NumPerTurn: 0; |
|
818 |
Timer: 0; |
|
819 |
Pos: 0; |
|
820 |
AmmoType: amGirder); |
|
821 |
Slot: 6; |
|
822 |
TimeAfterTurn: 3000; |
|
823 |
minAngle: 0; |
|
824 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
825 |
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
|
826 |
SkipTurns: 0; |
423 | 827 |
PosCount: 8; |
520 | 828 |
PosSprite: sprAmGirder), |
829 |
(NameId: sidTeleport; |
|
843 | 830 |
NameTex: nil; |
520 | 831 |
Probability: 400; |
832 |
NumberInCase: 1; |
|
525 | 833 |
Ammo: (Propz: ammoprop_ForwMsgs or |
834 |
ammoprop_NoCrosshair or |
|
520 | 835 |
ammoprop_NeedTarget or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
836 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
837 |
ammoprop_DontHold; |
520 | 838 |
Count: 2; |
839 |
NumPerTurn: 0; |
|
840 |
Timer: 0; |
|
841 |
Pos: 0; |
|
842 |
AmmoType: amTeleport); |
|
843 |
Slot: 7; |
|
844 |
TimeAfterTurn: 0; |
|
845 |
minAngle: 0; |
|
846 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
847 |
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
|
848 |
SkipTurns: 0; |
520 | 849 |
PosCount: 1; |
534 | 850 |
PosSprite: sprWater), |
851 |
(NameId: sidSwitch; |
|
843 | 852 |
NameTex: nil; |
534 | 853 |
Probability: 100; |
854 |
NumberInCase: 1; |
|
855 |
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
|
856 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
857 |
ammoprop_DontHold; |
534 | 858 |
Count: 3; |
859 |
NumPerTurn: 0; |
|
860 |
Timer: 0; |
|
861 |
Pos: 0; |
|
862 |
AmmoType: amSwitch); |
|
863 |
Slot: 8; |
|
864 |
TimeAfterTurn: 0; |
|
865 |
minAngle: 0; |
|
866 |
maxAngle: 0; |
|
830
f07267032194
- Add statistics info for ammo used in step and whether it is damaging ammo
unc0rr
parents:
829
diff
changeset
|
867 |
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
|
868 |
SkipTurns: 0; |
534 | 869 |
PosCount: 1; |
924 | 870 |
PosSprite: sprWater), |
871 |
(NameId: sidMortar; |
|
872 |
NameTex: nil; |
|
873 |
Probability: 100; |
|
874 |
NumberInCase: 5; |
|
875 |
Ammo: (Propz: 0; |
|
876 |
Count: 5; |
|
877 |
NumPerTurn: 0; |
|
878 |
Timer: 0; |
|
879 |
Pos: 0; |
|
880 |
AmmoType: amMortar); |
|
881 |
Slot: 1; |
|
882 |
TimeAfterTurn: 3000; |
|
883 |
minAngle: 0; |
|
884 |
maxAngle: 0; |
|
885 |
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
|
886 |
SkipTurns: 0; |
924 | 887 |
PosCount: 1; |
928
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
888 |
PosSprite: sprWater) |
b9064b48b001
Some preparation work for attacking from rope, parachute and etc.
unc0rr
parents:
926
diff
changeset
|
889 |
); |
37 | 890 |
|
844 | 891 |
var CountTexz: array[1..9] of PTexture; |
892 |
||
4 | 893 |
implementation |
894 |
||
895 |
end. |