author | unc0rr |
Tue, 01 Apr 2008 15:53:52 +0000 | |
changeset 828 | de0af1ad2610 |
parent 825 | 4b32f282f9d7 |
child 829 | 1209eb768acf |
permissions | -rw-r--r-- |
4 | 1 |
(* |
2 |
* Hedgewars, a worms-like game |
|
393 | 3 |
* Copyright (c) 2004-2007 Andrey Korotaev <unC0Rr@gmail.com> |
4 | 4 |
* |
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
4 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
4 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
4 | 17 |
*) |
18 |
||
19 |
unit uConsts; |
|
20 |
interface |
|
755 | 21 |
uses SDLh, GL, uLocale; |
4 | 22 |
{$INCLUDE options.inc} |
271 | 23 |
{$INCLUDE proto.inc} |
689 | 24 |
type |
282 | 25 |
|
4 | 26 |
TGameState = (gsLandGen, gsStart, gsGame, gsConsole, 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, |
|
822 | 32 |
ptLocale, ptAmmoMenu, ptHedgehog, ptVoices); |
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, |
825 | 45 |
sprHandDEagle, sprHandAirAttack); |
282 | 46 |
|
803 | 47 |
TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, |
83 | 48 |
gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope, |
49 | 49 |
gtSmokeTrace, gtExplosion, gtMine, gtCase, gtDEagleShot, gtDynamite, |
82 | 50 |
gtTeamHealthSorter, gtClusterBomb, gtCluster, gtShover, gtFlame, |
211 | 51 |
gtFirePunch, gtATStartGame, gtATSmoothWindCh, gtATFinishGame, |
520 | 52 |
gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, gtGirder, |
590 | 53 |
gtTeleport, gtSmallDamage, gtSwitcher, gtTarget); |
282 | 54 |
|
803 | 55 |
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
|
56 |
|
16 | 57 |
TGearsType = set of TGearType; |
282 | 58 |
|
59 |
TSound = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease, |
|
60 |
sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact, |
|
799 | 61 |
sndMineTick, sndPickhammer, sndGun, sndUFO, sndJump1, sndJump2, |
815 | 62 |
sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming, |
63 |
sndMissed, sndStupid); |
|
282 | 64 |
|
82 | 65 |
TAmmoType = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer, |
66 |
amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, |
|
409 | 67 |
amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch, |
534 | 68 |
amGirder, amTeleport, amSwitch); |
282 | 69 |
|
522 | 70 |
THWFont = (fnt16, fntBig, fntSmall); |
282 | 71 |
|
174 | 72 |
TCapGroup = (capgrpGameState, capgrpAmmoinfo, capgrpNetSay, capgrpVolume); |
282 | 73 |
|
307 | 74 |
TStatInfoType = (siGameResult, siMaxStepDamage, siKilledHHs); |
306 | 75 |
|
4 | 76 |
THHFont = record |
77 |
Handle: PTTF_Font; |
|
371 | 78 |
Height: LongInt; |
79 |
style: LongInt; |
|
4 | 80 |
Name: string[15]; |
81 |
end; |
|
282 | 82 |
|
4 | 83 |
TAmmo = record |
84 |
Propz: LongWord; |
|
85 |
Count: LongWord; |
|
86 |
NumPerTurn: LongWord; |
|
87 |
Timer: LongWord; |
|
408 | 88 |
Pos: LongWord; |
4 | 89 |
AmmoType: TAmmoType; |
90 |
end; |
|
755 | 91 |
TTexture = record |
92 |
id: GLuint; |
|
93 |
w, h: LongInt; |
|
94 |
end; |
|
95 |
PTexture = ^TTexture; |
|
4 | 96 |
|
97 |
||
105 | 98 |
const |
43 | 99 |
errmsgCreateSurface = 'Error creating SDL surface'; |
4 | 100 |
errmsgTransparentSet = 'Error setting transparent color'; |
101 |
errmsgUnknownCommand = 'Unknown command'; |
|
102 |
errmsgUnknownVariable = 'Unknown variable'; |
|
103 |
errmsgIncorrectUse = 'Incorrect use'; |
|
104 |
errmsgShouldntRun = 'This program shouldn''t be run manually'; |
|
615 | 105 |
errmsgWrongNumber = 'Wrong parameters number'; |
4 | 106 |
|
107 |
msgLoading = 'Loading '; |
|
108 |
msgOK = 'ok'; |
|
109 |
msgFailed = 'failed'; |
|
110 |
msgGettingConfig = 'Getting game config...'; |
|
111 |
||
112 |
const |
|
304 | 113 |
cMaxPower = 1500; |
114 |
cMaxAngle = 2048; |
|
115 |
cPowerDivisor = 1500; |
|
621 | 116 |
|
74 | 117 |
MAXNAMELEN = 32; |
118 |
||
760 | 119 |
COLOR_LAND = $00FFFFFF; |
64 | 120 |
|
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
121 |
cifRandomize = $00000001; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
122 |
cifTheme = $00000002; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
123 |
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
|
124 |
cifAllInited = cifRandomize or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
125 |
cifTheme or |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
126 |
cifMap; |
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
127 |
|
188 | 128 |
cTransparentColor: Longword = $000000; |
4 | 129 |
|
614 | 130 |
cMaxTeams = 6; |
109 | 131 |
cMaxHHIndex = 7; |
423 | 132 |
cMaxHHs = 30; |
53 | 133 |
cMaxSpawnPoints = 1024; |
4 | 134 |
|
22 | 135 |
cMaxEdgePoints = 16384; |
136 |
||
53 | 137 |
cHHRadius = 9; |
70 | 138 |
cHHStepTicks = 38; |
509 | 139 |
|
294 | 140 |
cHHZ = 1000; |
141 |
cCurrHHZ = Succ(cHHZ); |
|
4 | 142 |
|
509 | 143 |
cShotgunRadius = 22; |
511 | 144 |
cBlowTorchC = 6; |
509 | 145 |
|
109 | 146 |
cKeyMaxIndex = 1023; |
4 | 147 |
|
97
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
148 |
cMaxCaptions = 4; |
e7c1df9cce2c
- make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents:
95
diff
changeset
|
149 |
|
601
78a68cc4d846
Special game mode allowing the only clan on map for training mode
unc0rr
parents:
590
diff
changeset
|
150 |
gfForts = $00000001; |
614 | 151 |
gfMultiWeapon = $00000002; |
621 | 152 |
gfSolidLand = $00000004; |
601
78a68cc4d846
Special game mode allowing the only clan on map for training mode
unc0rr
parents:
590
diff
changeset
|
153 |
gfOneClanMode = $10000000; |
4 | 154 |
|
155 |
gstDrowning = $00000001; |
|
156 |
gstHHDriven = $00000002; |
|
157 |
gstMoving = $00000004; |
|
158 |
gstAttacked = $00000008; |
|
159 |
gstAttacking = $00000010; |
|
160 |
gstCollision = $00000020; |
|
161 |
gstHHChooseTarget = $00000040; |
|
162 |
gstHHJumping = $00000100; |
|
163 |
gsttmpFlag = $00000200; |
|
164 |
gstHHThinking = $00000800; |
|
79 | 165 |
gstNoDamage = $00001000; |
424 | 166 |
gstHHHJump = $00002000; |
511 | 167 |
gstAnimation = $00004000; |
4 | 168 |
|
169 |
gm_Left = $00000001; |
|
170 |
gm_Right = $00000002; |
|
171 |
gm_Up = $00000004; |
|
172 |
gm_Down = $00000008; |
|
173 |
gm_Switch = $00000010; |
|
174 |
gm_Attack = $00000020; |
|
175 |
gm_LJump = $00000040; |
|
176 |
gm_HJump = $00000080; |
|
177 |
gm_Destroy= $00000100; |
|
783 | 178 |
gm_Slot = $00000200; // with param |
179 |
gm_Weapon = $00000400; // with param |
|
4 | 180 |
|
263 | 181 |
cMaxSlotIndex = 8; |
409 | 182 |
cMaxSlotAmmoIndex = 2; |
4 | 183 |
|
184 |
ammoprop_Timerable = $00000001; |
|
185 |
ammoprop_Power = $00000002; |
|
186 |
ammoprop_NeedTarget = $00000004; |
|
187 |
ammoprop_ForwMsgs = $00000008; |
|
542 | 188 |
ammoprop_AttackInMove = $00000010; |
13 | 189 |
ammoprop_NoCrosshair = $00000040; |
263 | 190 |
ammoprop_AttackingPut = $00000080; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
191 |
ammoprop_DontHold = $00000100; |
4 | 192 |
AMMO_INFINITE = High(LongWord); |
193 |
||
42 | 194 |
EXPLAllDamageInRadius = $00000001; |
195 |
EXPLAutoSound = $00000002; |
|
196 |
EXPLNoDamage = $00000004; |
|
197 |
EXPLDoNotTouchHH = $00000008; |
|
305 | 198 |
EXPLDontDraw = $00000010; |
42 | 199 |
|
200 |
posCaseAmmo = $00000001; |
|
201 |
posCaseHealth = $00000002; |
|
4 | 202 |
|
371 | 203 |
NoPointX = Low(LongInt); |
4 | 204 |
|
74 | 205 |
cHHFileName = 'Hedgehog'; |
206 |
cCHFileName = 'Crosshair'; |
|
4 | 207 |
cThemeCFGFilename = 'theme.cfg'; |
208 |
||
209 |
Fontz: array[THWFont] of THHFont = ( |
|
351 | 210 |
(Handle: nil; |
211 |
Height: 12; |
|
202 | 212 |
style: TTF_STYLE_NORMAL; |
74 | 213 |
Name: 'DejaVuSans.ttf'), |
351 | 214 |
(Handle: nil; |
215 |
Height: 24; |
|
202 | 216 |
style: TTF_STYLE_NORMAL; |
522 | 217 |
Name: 'DejaVuSans.ttf'), |
218 |
(Handle: nil; |
|
219 |
Height: 10; |
|
220 |
style: TTF_STYLE_NORMAL; |
|
74 | 221 |
Name: 'DejaVuSans.ttf') |
4 | 222 |
); |
223 |
||
202 | 224 |
FontBorder = 2; |
225 |
||
99 | 226 |
PathPrefix: string = './'; |
227 |
Pathz: array[TPathType] of string = ( |
|
805 | 228 |
'', // ptNone |
267 | 229 |
'', // ptData |
230 |
'Graphics', // ptGraphics |
|
231 |
'Themes', // ptThemes |
|
232 |
'Themes/avematan', // ptCurrTheme |
|
233 |
'Teams', // ptTeams |
|
234 |
'Maps', // ptMaps |
|
53 | 235 |
'', // ptMapCurrent |
267 | 236 |
'Demos', // ptDemos |
237 |
'Sounds', // ptSounds |
|
238 |
'Graphics/Graves', // ptGraves |
|
239 |
'Fonts', // ptFonts |
|
240 |
'Forts', // ptForts |
|
241 |
'Locale', // ptLocale |
|
799 | 242 |
'Graphics/AmmoMenu', // ptAmmoMenu |
822 | 243 |
'Graphics/Hedgehog', // ptHedgehog |
799 | 244 |
'Sounds/voices' // ptVoices |
4 | 245 |
); |
246 |
||
247 |
SpritesData: array[TSprite] of record |
|
35 | 248 |
FileName: String[31]; |
80 | 249 |
Path, AltPath: TPathType; |
755 | 250 |
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
|
251 |
Surface: PSDL_Surface; |
371 | 252 |
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
|
253 |
saveSurf: boolean; |
35 | 254 |
end = ( |
769
788efc1d649f
- Save 8 MB of memory by freeing LandSurface and not using it anymore after game initialization
unc0rr
parents:
760
diff
changeset
|
255 |
(FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
793 | 256 |
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
|
257 |
(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
|
258 |
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
|
259 |
(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
|
260 |
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
|
261 |
(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
|
262 |
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
|
263 |
(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
|
264 |
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
|
265 |
(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
|
266 |
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
|
267 |
(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
|
268 |
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
|
269 |
(FileName: 'Grenade'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
775 | 270 |
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
|
271 |
(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
|
272 |
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
|
273 |
(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
|
274 |
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
|
275 |
(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
|
276 |
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
|
277 |
(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
|
278 |
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
|
279 |
(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
|
280 |
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
|
281 |
(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
|
282 |
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
|
283 |
(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
|
284 |
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
|
285 |
(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
|
286 |
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
|
287 |
(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
|
288 |
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
|
289 |
(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
|
290 |
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
|
291 |
(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
|
292 |
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
|
293 |
(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
|
294 |
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
|
295 |
(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
|
296 |
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
|
297 |
(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
|
298 |
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
|
299 |
(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
|
300 |
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
|
301 |
(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
|
302 |
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
|
303 |
(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
|
304 |
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
|
305 |
(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
|
306 |
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
|
307 |
(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
|
308 |
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
|
309 |
(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
|
310 |
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
|
311 |
(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
|
312 |
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
|
313 |
(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
|
314 |
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
|
315 |
(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
|
316 |
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
|
317 |
(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
|
318 |
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
|
319 |
(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
|
320 |
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
|
321 |
(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
|
322 |
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
|
323 |
(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
|
324 |
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
|
325 |
(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
|
326 |
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
|
327 |
(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
|
328 |
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
|
329 |
(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
|
330 |
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
|
331 |
(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
|
332 |
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
|
333 |
(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
|
334 |
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
|
335 |
(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
|
336 |
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
|
337 |
(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
|
338 |
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
|
339 |
(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
|
340 |
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
|
341 |
(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
|
342 |
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
|
343 |
(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
|
344 |
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
|
345 |
(FileName: 'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
805 | 346 |
Width: 80; Height: 13; saveSurf: false),// sprWindR |
347 |
(FileName: 'Flake'; Path:ptCurrTheme; AltPath: ptNone; Texture: nil; Surface: nil; |
|
822 | 348 |
Width: 64; Height: 64; saveSurf: false),// sprFlake |
349 |
(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
|
350 |
Width: 32; Height: 32; saveSurf: false),// sprHandRope |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
351 |
(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
|
352 |
Width: 32; Height: 32; saveSurf: false),// sprHandBazooka |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
353 |
(FileName: 'amShotgun'; 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
|
354 |
Width: 32; Height: 32; saveSurf: false),// sprHandShotgun |
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
355 |
(FileName: 'amDEagle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
825 | 356 |
Width: 32; Height: 32; saveSurf: false),// sprHandDEagle |
357 |
(FileName:'amAirAttack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
|
358 |
Width: 32; Height: 32; saveSurf: false) // sprHandAirAttack |
|
35 | 359 |
); |
688 | 360 |
|
4 | 361 |
Soundz: array[TSound] of record |
799 | 362 |
FileName: String[31]; |
363 |
Path : TPathType; |
|
364 |
id : PMixChunk; |
|
365 |
lastChan: LongInt; |
|
366 |
end = ( |
|
367 |
(FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact |
|
368 |
(FileName: 'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion |
|
369 |
(FileName: 'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp |
|
370 |
(FileName: 'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease |
|
371 |
(FileName: 'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash |
|
372 |
(FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload |
|
373 |
(FileName: 'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire |
|
374 |
(FileName: 'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact |
|
375 |
(FileName: 'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks |
|
376 |
(FileName: 'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer |
|
377 |
(FileName: 'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun |
|
378 |
(FileName: 'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndUFO |
|
379 |
(FileName: 'Jump1.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump1 |
|
380 |
(FileName: 'Jump2.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump2 |
|
800 | 381 |
(FileName: 'Jump3.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump3 |
382 |
(FileName: 'Yessir.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndYesSir |
|
801 | 383 |
(FileName: 'Laugh.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndLaugh |
384 |
(FileName: 'Illgetyou.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIllGetYou |
|
815 | 385 |
(FileName: 'Incoming.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndIncoming |
386 |
(FileName: 'Missed.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndMissed |
|
387 |
(FileName: 'Stupid.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndStupid |
|
388 |
); |
|
4 | 389 |
|
390 |
Ammoz: array [TAmmoType] of record |
|
80 | 391 |
NameId: TAmmoStrId; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
392 |
Probability, NumberInCase: Longword; |
4 | 393 |
Ammo: TAmmo; |
112 | 394 |
Slot: 0..cMaxSlotIndex; |
4 | 395 |
TimeAfterTurn: Longword; |
304 | 396 |
minAngle, maxAngle: Longword; |
408 | 397 |
PosCount: Longword; |
398 |
PosSprite: TSprite; |
|
4 | 399 |
end = ( |
80 | 400 |
(NameId: sidGrenade; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
401 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
402 |
NumberInCase: 1; |
263 | 403 |
Ammo: (Propz: ammoprop_Timerable or |
404 |
ammoprop_Power; |
|
4 | 405 |
Count: AMMO_INFINITE; |
406 |
NumPerTurn: 0; |
|
407 |
Timer: 3000; |
|
408 | 408 |
Pos: 0; |
4 | 409 |
AmmoType: amGrenade); |
10 | 410 |
Slot: 1; |
351 | 411 |
TimeAfterTurn: 3000; |
412 |
minAngle: 0; |
|
408 | 413 |
maxAngle: 0; |
495 | 414 |
PosCount: 1; |
415 |
PosSprite: sprWater), |
|
80 | 416 |
(NameId: sidClusterBomb; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
417 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
418 |
NumberInCase: 3; |
263 | 419 |
Ammo: (Propz: ammoprop_Timerable or |
420 |
ammoprop_Power; |
|
78 | 421 |
Count: 5; |
422 |
NumPerTurn: 0; |
|
423 |
Timer: 3000; |
|
408 | 424 |
Pos: 0; |
78 | 425 |
AmmoType: amClusterBomb); |
426 |
Slot: 1; |
|
351 | 427 |
TimeAfterTurn: 3000; |
428 |
minAngle: 0; |
|
408 | 429 |
maxAngle: 0; |
495 | 430 |
PosCount: 1; |
431 |
PosSprite: sprWater), |
|
80 | 432 |
(NameId: sidBazooka; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
433 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
434 |
NumberInCase: 1; |
4 | 435 |
Ammo: (Propz: ammoprop_Power; |
436 |
Count: AMMO_INFINITE; |
|
437 |
NumPerTurn: 0; |
|
438 |
Timer: 0; |
|
408 | 439 |
Pos: 0; |
4 | 440 |
AmmoType: amBazooka); |
10 | 441 |
Slot: 0; |
351 | 442 |
TimeAfterTurn: 3000; |
443 |
minAngle: 0; |
|
408 | 444 |
maxAngle: 0; |
495 | 445 |
PosCount: 1; |
446 |
PosSprite: sprWater), |
|
80 | 447 |
(NameId: sidUFO; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
448 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
449 |
NumberInCase: 1; |
263 | 450 |
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
|
451 |
ammoprop_NeedTarget or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
452 |
ammoprop_DontHold; |
56 | 453 |
Count: 2; |
4 | 454 |
NumPerTurn: 0; |
455 |
Timer: 0; |
|
408 | 456 |
Pos: 0; |
4 | 457 |
AmmoType: amUFO); |
458 |
Slot: 0; |
|
351 | 459 |
TimeAfterTurn: 3000; |
460 |
minAngle: 0; |
|
408 | 461 |
maxAngle: 0; |
495 | 462 |
PosCount: 1; |
463 |
PosSprite: sprWater), |
|
80 | 464 |
(NameId: sidShotgun; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
465 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
466 |
NumberInCase: 1; |
95 | 467 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 468 |
Count: AMMO_INFINITE; |
469 |
NumPerTurn: 1; |
|
470 |
Timer: 0; |
|
408 | 471 |
Pos: 0; |
4 | 472 |
AmmoType: amShotgun); |
473 |
Slot: 2; |
|
351 | 474 |
TimeAfterTurn: 3000; |
475 |
minAngle: 0; |
|
408 | 476 |
maxAngle: 0; |
495 | 477 |
PosCount: 1; |
478 |
PosSprite: sprWater), |
|
80 | 479 |
(NameId: sidPickHammer; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
480 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
481 |
NumberInCase: 1; |
263 | 482 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 483 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
484 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
485 |
ammoprop_DontHold; |
4 | 486 |
Count: 2; |
487 |
NumPerTurn: 0; |
|
488 |
Timer: 0; |
|
408 | 489 |
Pos: 0; |
4 | 490 |
AmmoType: amPickHammer); |
263 | 491 |
Slot: 6; |
351 | 492 |
TimeAfterTurn: 0; |
493 |
minAngle: 0; |
|
408 | 494 |
maxAngle: 0; |
495 | 495 |
PosCount: 1; |
496 |
PosSprite: sprWater), |
|
80 | 497 |
(NameId: sidSkip; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
498 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
499 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
500 |
Ammo: (Propz: ammoprop_DontHold; |
4 | 501 |
Count: AMMO_INFINITE; |
502 |
NumPerTurn: 0; |
|
503 |
Timer: 0; |
|
408 | 504 |
Pos: 0; |
4 | 505 |
AmmoType: amSkip); |
263 | 506 |
Slot: 8; |
351 | 507 |
TimeAfterTurn: 0; |
508 |
minAngle: 0; |
|
408 | 509 |
maxAngle: 0; |
495 | 510 |
PosCount: 1; |
511 |
PosSprite: sprWater), |
|
80 | 512 |
(NameId: sidRope; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
513 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
514 |
NumberInCase: 3; |
263 | 515 |
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
|
516 |
ammoprop_AttackInMove or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
517 |
ammoprop_DontHold; |
4 | 518 |
Count: 5; |
519 |
NumPerTurn: 0; |
|
520 |
Timer: 0; |
|
408 | 521 |
Pos: 0; |
4 | 522 |
AmmoType: amRope); |
263 | 523 |
Slot: 7; |
304 | 524 |
TimeAfterTurn: 0; |
351 | 525 |
minAngle: 0; |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
526 |
maxAngle: cMaxAngle div 2; |
495 | 527 |
PosCount: 1; |
528 |
PosSprite: sprWater), |
|
80 | 529 |
(NameId: sidMine; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
530 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
531 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
532 |
Ammo: (Propz: ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
533 |
ammoprop_DontHold; |
56 | 534 |
Count: 2; |
10 | 535 |
NumPerTurn: 0; |
536 |
Timer: 0; |
|
408 | 537 |
Pos: 0; |
10 | 538 |
AmmoType: amMine); |
79 | 539 |
Slot: 4; |
351 | 540 |
TimeAfterTurn: 5000; |
541 |
minAngle: 0; |
|
408 | 542 |
maxAngle: 0; |
495 | 543 |
PosCount: 1; |
544 |
PosSprite: sprWater), |
|
80 | 545 |
(NameId: sidDEagle; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
546 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
547 |
NumberInCase: 2; |
37 | 548 |
Ammo: (Propz: 0; |
75 | 549 |
Count: 3; |
37 | 550 |
NumPerTurn: 3; |
551 |
Timer: 0; |
|
408 | 552 |
Pos: 0; |
37 | 553 |
AmmoType: amDEagle); |
554 |
Slot: 2; |
|
351 | 555 |
TimeAfterTurn: 3000; |
556 |
minAngle: 0; |
|
408 | 557 |
maxAngle: 0; |
495 | 558 |
PosCount: 1; |
559 |
PosSprite: sprWater), |
|
408 | 560 |
(NameId: sidDynamite; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
561 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
562 |
NumberInCase: 1; |
408 | 563 |
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
|
564 |
ammoprop_AttackInMove or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
565 |
ammoprop_DontHold; |
408 | 566 |
Count: 1; |
567 |
NumPerTurn: 0; |
|
568 |
Timer: 0; |
|
569 |
Pos: 0; |
|
570 |
AmmoType: amDynamite); |
|
571 |
Slot: 4; |
|
572 |
TimeAfterTurn: 5000; |
|
351 | 573 |
minAngle: 0; |
408 | 574 |
maxAngle: 0; |
495 | 575 |
PosCount: 1; |
576 |
PosSprite: sprWater), |
|
408 | 577 |
(NameId: sidFirePunch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
578 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
579 |
NumberInCase: 1; |
408 | 580 |
Ammo: (Propz: ammoprop_NoCrosshair or |
581 |
ammoprop_ForwMsgs or |
|
542 | 582 |
ammoprop_AttackInMove; |
408 | 583 |
Count: AMMO_INFINITE; |
584 |
NumPerTurn: 0; |
|
585 |
Timer: 0; |
|
586 |
Pos: 0; |
|
587 |
AmmoType: amFirePunch); |
|
588 |
Slot: 3; |
|
589 |
TimeAfterTurn: 3000; |
|
590 |
MinAngle: 0; |
|
591 |
maxAngle: 0; |
|
495 | 592 |
PosCount: 1; |
593 |
PosSprite: sprWater), |
|
408 | 594 |
(NameId: sidBaseballBat; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
595 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
596 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
597 |
Ammo: (Propz: ammoprop_DontHold; |
408 | 598 |
Count: 1; |
599 |
NumPerTurn: 0; |
|
600 |
Timer: 0; |
|
601 |
Pos: 0; |
|
602 |
AmmoType: amBaseballBat); |
|
603 |
Slot: 3; |
|
604 |
TimeAfterTurn: 5000; |
|
351 | 605 |
minAngle: 0; |
408 | 606 |
maxAngle: cMaxAngle div 2; |
495 | 607 |
PosCount: 1; |
608 |
PosSprite: sprWater), |
|
211 | 609 |
(NameId: sidParachute; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
610 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
611 |
NumberInCase: 1; |
263 | 612 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 613 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
614 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
615 |
ammoprop_DontHold; |
211 | 616 |
Count: 2; |
617 |
NumPerTurn: 0; |
|
618 |
Timer: 0; |
|
408 | 619 |
Pos: 0; |
211 | 620 |
AmmoType: amParachute); |
263 | 621 |
Slot: 7; |
351 | 622 |
TimeAfterTurn: 0; |
623 |
minAngle: 0; |
|
408 | 624 |
maxAngle: 0; |
495 | 625 |
PosCount: 1; |
626 |
PosSprite: sprWater), |
|
263 | 627 |
(NameId: sidAirAttack; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
628 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
629 |
NumberInCase: 1; |
263 | 630 |
Ammo: (Propz: ammoprop_NoCrosshair or |
631 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
632 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
633 |
ammoprop_DontHold; |
285 | 634 |
Count: 1; |
263 | 635 |
NumPerTurn: 0; |
636 |
Timer: 0; |
|
408 | 637 |
Pos: 0; |
263 | 638 |
AmmoType: amAirAttack); |
639 |
Slot: 5; |
|
351 | 640 |
TimeAfterTurn: 0; |
641 |
minAngle: 0; |
|
408 | 642 |
maxAngle: 0; |
643 |
PosCount: 2; |
|
644 |
PosSprite: sprAmAirplane), |
|
285 | 645 |
(NameId: sidMineStrike; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
646 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
647 |
NumberInCase: 1; |
285 | 648 |
Ammo: (Propz: ammoprop_NoCrosshair or |
649 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
650 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
651 |
ammoprop_DontHold; |
285 | 652 |
Count: 1; |
653 |
NumPerTurn: 0; |
|
654 |
Timer: 0; |
|
408 | 655 |
Pos: 0; |
285 | 656 |
AmmoType: amMineStrike); |
657 |
Slot: 5; |
|
351 | 658 |
TimeAfterTurn: 0; |
659 |
minAngle: 0; |
|
408 | 660 |
maxAngle: 0; |
661 |
PosCount: 2; |
|
662 |
PosSprite: sprAmAirplane), |
|
302 | 663 |
(NameId: sidBlowTorch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
664 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
665 |
NumberInCase: 2; |
302 | 666 |
Ammo: (Propz: ammoprop_ForwMsgs; |
667 |
Count: 1; |
|
668 |
NumPerTurn: 0; |
|
669 |
Timer: 0; |
|
408 | 670 |
Pos: 0; |
302 | 671 |
AmmoType: amBlowTorch); |
672 |
Slot: 6; |
|
304 | 673 |
TimeAfterTurn: 3000; |
305 | 674 |
minAngle: 768; |
408 | 675 |
maxAngle: 1280; |
495 | 676 |
PosCount: 1; |
677 |
PosSprite: sprWater), |
|
409 | 678 |
(NameId: sidGirder; |
679 |
Probability: 400; |
|
411 | 680 |
NumberInCase: 3; |
409 | 681 |
Ammo: (Propz: ammoprop_NoCrosshair or |
682 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
683 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
684 |
ammoprop_DontHold; |
409 | 685 |
Count: 1; |
686 |
NumPerTurn: 0; |
|
687 |
Timer: 0; |
|
688 |
Pos: 0; |
|
689 |
AmmoType: amGirder); |
|
690 |
Slot: 6; |
|
691 |
TimeAfterTurn: 3000; |
|
692 |
minAngle: 0; |
|
693 |
maxAngle: 0; |
|
423 | 694 |
PosCount: 8; |
520 | 695 |
PosSprite: sprAmGirder), |
696 |
(NameId: sidTeleport; |
|
697 |
Probability: 400; |
|
698 |
NumberInCase: 1; |
|
525 | 699 |
Ammo: (Propz: ammoprop_ForwMsgs or |
700 |
ammoprop_NoCrosshair or |
|
520 | 701 |
ammoprop_NeedTarget or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
702 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
703 |
ammoprop_DontHold; |
520 | 704 |
Count: 2; |
705 |
NumPerTurn: 0; |
|
706 |
Timer: 0; |
|
707 |
Pos: 0; |
|
708 |
AmmoType: amTeleport); |
|
709 |
Slot: 7; |
|
710 |
TimeAfterTurn: 0; |
|
711 |
minAngle: 0; |
|
712 |
maxAngle: 0; |
|
713 |
PosCount: 1; |
|
534 | 714 |
PosSprite: sprWater), |
715 |
(NameId: sidSwitch; |
|
716 |
Probability: 100; |
|
717 |
NumberInCase: 1; |
|
718 |
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
|
719 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
720 |
ammoprop_DontHold; |
534 | 721 |
Count: 3; |
722 |
NumPerTurn: 0; |
|
723 |
Timer: 0; |
|
724 |
Pos: 0; |
|
725 |
AmmoType: amSwitch); |
|
726 |
Slot: 8; |
|
727 |
TimeAfterTurn: 0; |
|
728 |
minAngle: 0; |
|
729 |
maxAngle: 0; |
|
730 |
PosCount: 1; |
|
520 | 731 |
PosSprite: sprWater)); |
37 | 732 |
|
4 | 733 |
implementation |
734 |
||
735 |
end. |