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