author | unc0rr |
Tue, 01 Apr 2008 15:57:51 +0000 | |
changeset 829 | 1209eb768acf |
parent 825 | 4b32f282f9d7 |
child 830 | f07267032194 |
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, |
829 | 63 |
sndMissed, sndStupid, sndFirstBlood); |
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 |
|
829 | 387 |
(FileName: 'Stupid.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndStupid |
388 |
(FileName: 'Firstblood.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndFirstBlood |
|
815 | 389 |
); |
4 | 390 |
|
391 |
Ammoz: array [TAmmoType] of record |
|
80 | 392 |
NameId: TAmmoStrId; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
393 |
Probability, NumberInCase: Longword; |
4 | 394 |
Ammo: TAmmo; |
112 | 395 |
Slot: 0..cMaxSlotIndex; |
4 | 396 |
TimeAfterTurn: Longword; |
304 | 397 |
minAngle, maxAngle: Longword; |
408 | 398 |
PosCount: Longword; |
399 |
PosSprite: TSprite; |
|
4 | 400 |
end = ( |
80 | 401 |
(NameId: sidGrenade; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
402 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
403 |
NumberInCase: 1; |
263 | 404 |
Ammo: (Propz: ammoprop_Timerable or |
405 |
ammoprop_Power; |
|
4 | 406 |
Count: AMMO_INFINITE; |
407 |
NumPerTurn: 0; |
|
408 |
Timer: 3000; |
|
408 | 409 |
Pos: 0; |
4 | 410 |
AmmoType: amGrenade); |
10 | 411 |
Slot: 1; |
351 | 412 |
TimeAfterTurn: 3000; |
413 |
minAngle: 0; |
|
408 | 414 |
maxAngle: 0; |
495 | 415 |
PosCount: 1; |
416 |
PosSprite: sprWater), |
|
80 | 417 |
(NameId: sidClusterBomb; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
418 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
419 |
NumberInCase: 3; |
263 | 420 |
Ammo: (Propz: ammoprop_Timerable or |
421 |
ammoprop_Power; |
|
78 | 422 |
Count: 5; |
423 |
NumPerTurn: 0; |
|
424 |
Timer: 3000; |
|
408 | 425 |
Pos: 0; |
78 | 426 |
AmmoType: amClusterBomb); |
427 |
Slot: 1; |
|
351 | 428 |
TimeAfterTurn: 3000; |
429 |
minAngle: 0; |
|
408 | 430 |
maxAngle: 0; |
495 | 431 |
PosCount: 1; |
432 |
PosSprite: sprWater), |
|
80 | 433 |
(NameId: sidBazooka; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
434 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
435 |
NumberInCase: 1; |
4 | 436 |
Ammo: (Propz: ammoprop_Power; |
437 |
Count: AMMO_INFINITE; |
|
438 |
NumPerTurn: 0; |
|
439 |
Timer: 0; |
|
408 | 440 |
Pos: 0; |
4 | 441 |
AmmoType: amBazooka); |
10 | 442 |
Slot: 0; |
351 | 443 |
TimeAfterTurn: 3000; |
444 |
minAngle: 0; |
|
408 | 445 |
maxAngle: 0; |
495 | 446 |
PosCount: 1; |
447 |
PosSprite: sprWater), |
|
80 | 448 |
(NameId: sidUFO; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
449 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
450 |
NumberInCase: 1; |
263 | 451 |
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
|
452 |
ammoprop_NeedTarget or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
453 |
ammoprop_DontHold; |
56 | 454 |
Count: 2; |
4 | 455 |
NumPerTurn: 0; |
456 |
Timer: 0; |
|
408 | 457 |
Pos: 0; |
4 | 458 |
AmmoType: amUFO); |
459 |
Slot: 0; |
|
351 | 460 |
TimeAfterTurn: 3000; |
461 |
minAngle: 0; |
|
408 | 462 |
maxAngle: 0; |
495 | 463 |
PosCount: 1; |
464 |
PosSprite: sprWater), |
|
80 | 465 |
(NameId: sidShotgun; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
466 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
467 |
NumberInCase: 1; |
95 | 468 |
Ammo: (Propz: ammoprop_ForwMsgs; |
4 | 469 |
Count: AMMO_INFINITE; |
470 |
NumPerTurn: 1; |
|
471 |
Timer: 0; |
|
408 | 472 |
Pos: 0; |
4 | 473 |
AmmoType: amShotgun); |
474 |
Slot: 2; |
|
351 | 475 |
TimeAfterTurn: 3000; |
476 |
minAngle: 0; |
|
408 | 477 |
maxAngle: 0; |
495 | 478 |
PosCount: 1; |
479 |
PosSprite: sprWater), |
|
80 | 480 |
(NameId: sidPickHammer; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
481 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
482 |
NumberInCase: 1; |
263 | 483 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 484 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
485 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
486 |
ammoprop_DontHold; |
4 | 487 |
Count: 2; |
488 |
NumPerTurn: 0; |
|
489 |
Timer: 0; |
|
408 | 490 |
Pos: 0; |
4 | 491 |
AmmoType: amPickHammer); |
263 | 492 |
Slot: 6; |
351 | 493 |
TimeAfterTurn: 0; |
494 |
minAngle: 0; |
|
408 | 495 |
maxAngle: 0; |
495 | 496 |
PosCount: 1; |
497 |
PosSprite: sprWater), |
|
80 | 498 |
(NameId: sidSkip; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
499 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
500 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
501 |
Ammo: (Propz: ammoprop_DontHold; |
4 | 502 |
Count: AMMO_INFINITE; |
503 |
NumPerTurn: 0; |
|
504 |
Timer: 0; |
|
408 | 505 |
Pos: 0; |
4 | 506 |
AmmoType: amSkip); |
263 | 507 |
Slot: 8; |
351 | 508 |
TimeAfterTurn: 0; |
509 |
minAngle: 0; |
|
408 | 510 |
maxAngle: 0; |
495 | 511 |
PosCount: 1; |
512 |
PosSprite: sprWater), |
|
80 | 513 |
(NameId: sidRope; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
514 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
515 |
NumberInCase: 3; |
263 | 516 |
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
|
517 |
ammoprop_AttackInMove or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
518 |
ammoprop_DontHold; |
4 | 519 |
Count: 5; |
520 |
NumPerTurn: 0; |
|
521 |
Timer: 0; |
|
408 | 522 |
Pos: 0; |
4 | 523 |
AmmoType: amRope); |
263 | 524 |
Slot: 7; |
304 | 525 |
TimeAfterTurn: 0; |
351 | 526 |
minAngle: 0; |
823
90d651e75547
Use ammo-in-hand sprites for desert eagle, shotgun and bazooka
unc0rr
parents:
822
diff
changeset
|
527 |
maxAngle: cMaxAngle div 2; |
495 | 528 |
PosCount: 1; |
529 |
PosSprite: sprWater), |
|
80 | 530 |
(NameId: sidMine; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
531 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
532 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
533 |
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
|
534 |
ammoprop_DontHold; |
56 | 535 |
Count: 2; |
10 | 536 |
NumPerTurn: 0; |
537 |
Timer: 0; |
|
408 | 538 |
Pos: 0; |
10 | 539 |
AmmoType: amMine); |
79 | 540 |
Slot: 4; |
351 | 541 |
TimeAfterTurn: 5000; |
542 |
minAngle: 0; |
|
408 | 543 |
maxAngle: 0; |
495 | 544 |
PosCount: 1; |
545 |
PosSprite: sprWater), |
|
80 | 546 |
(NameId: sidDEagle; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
547 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
548 |
NumberInCase: 2; |
37 | 549 |
Ammo: (Propz: 0; |
75 | 550 |
Count: 3; |
37 | 551 |
NumPerTurn: 3; |
552 |
Timer: 0; |
|
408 | 553 |
Pos: 0; |
37 | 554 |
AmmoType: amDEagle); |
555 |
Slot: 2; |
|
351 | 556 |
TimeAfterTurn: 3000; |
557 |
minAngle: 0; |
|
408 | 558 |
maxAngle: 0; |
495 | 559 |
PosCount: 1; |
560 |
PosSprite: sprWater), |
|
408 | 561 |
(NameId: sidDynamite; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
562 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
563 |
NumberInCase: 1; |
408 | 564 |
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
|
565 |
ammoprop_AttackInMove or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
566 |
ammoprop_DontHold; |
408 | 567 |
Count: 1; |
568 |
NumPerTurn: 0; |
|
569 |
Timer: 0; |
|
570 |
Pos: 0; |
|
571 |
AmmoType: amDynamite); |
|
572 |
Slot: 4; |
|
573 |
TimeAfterTurn: 5000; |
|
351 | 574 |
minAngle: 0; |
408 | 575 |
maxAngle: 0; |
495 | 576 |
PosCount: 1; |
577 |
PosSprite: sprWater), |
|
408 | 578 |
(NameId: sidFirePunch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
579 |
Probability: 0; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
580 |
NumberInCase: 1; |
408 | 581 |
Ammo: (Propz: ammoprop_NoCrosshair or |
582 |
ammoprop_ForwMsgs or |
|
542 | 583 |
ammoprop_AttackInMove; |
408 | 584 |
Count: AMMO_INFINITE; |
585 |
NumPerTurn: 0; |
|
586 |
Timer: 0; |
|
587 |
Pos: 0; |
|
588 |
AmmoType: amFirePunch); |
|
589 |
Slot: 3; |
|
590 |
TimeAfterTurn: 3000; |
|
591 |
MinAngle: 0; |
|
592 |
maxAngle: 0; |
|
495 | 593 |
PosCount: 1; |
594 |
PosSprite: sprWater), |
|
408 | 595 |
(NameId: sidBaseballBat; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
596 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
597 |
NumberInCase: 1; |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
598 |
Ammo: (Propz: ammoprop_DontHold; |
408 | 599 |
Count: 1; |
600 |
NumPerTurn: 0; |
|
601 |
Timer: 0; |
|
602 |
Pos: 0; |
|
603 |
AmmoType: amBaseballBat); |
|
604 |
Slot: 3; |
|
605 |
TimeAfterTurn: 5000; |
|
351 | 606 |
minAngle: 0; |
408 | 607 |
maxAngle: cMaxAngle div 2; |
495 | 608 |
PosCount: 1; |
609 |
PosSprite: sprWater), |
|
211 | 610 |
(NameId: sidParachute; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
611 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
612 |
NumberInCase: 1; |
263 | 613 |
Ammo: (Propz: ammoprop_ForwMsgs or |
542 | 614 |
ammoprop_AttackInMove or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
615 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
616 |
ammoprop_DontHold; |
211 | 617 |
Count: 2; |
618 |
NumPerTurn: 0; |
|
619 |
Timer: 0; |
|
408 | 620 |
Pos: 0; |
211 | 621 |
AmmoType: amParachute); |
263 | 622 |
Slot: 7; |
351 | 623 |
TimeAfterTurn: 0; |
624 |
minAngle: 0; |
|
408 | 625 |
maxAngle: 0; |
495 | 626 |
PosCount: 1; |
627 |
PosSprite: sprWater), |
|
263 | 628 |
(NameId: sidAirAttack; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
629 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
630 |
NumberInCase: 1; |
263 | 631 |
Ammo: (Propz: ammoprop_NoCrosshair or |
632 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
633 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
634 |
ammoprop_DontHold; |
285 | 635 |
Count: 1; |
263 | 636 |
NumPerTurn: 0; |
637 |
Timer: 0; |
|
408 | 638 |
Pos: 0; |
263 | 639 |
AmmoType: amAirAttack); |
640 |
Slot: 5; |
|
351 | 641 |
TimeAfterTurn: 0; |
642 |
minAngle: 0; |
|
408 | 643 |
maxAngle: 0; |
644 |
PosCount: 2; |
|
645 |
PosSprite: sprAmAirplane), |
|
285 | 646 |
(NameId: sidMineStrike; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
647 |
Probability: 400; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
648 |
NumberInCase: 1; |
285 | 649 |
Ammo: (Propz: ammoprop_NoCrosshair or |
650 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
651 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
652 |
ammoprop_DontHold; |
285 | 653 |
Count: 1; |
654 |
NumPerTurn: 0; |
|
655 |
Timer: 0; |
|
408 | 656 |
Pos: 0; |
285 | 657 |
AmmoType: amMineStrike); |
658 |
Slot: 5; |
|
351 | 659 |
TimeAfterTurn: 0; |
660 |
minAngle: 0; |
|
408 | 661 |
maxAngle: 0; |
662 |
PosCount: 2; |
|
663 |
PosSprite: sprAmAirplane), |
|
302 | 664 |
(NameId: sidBlowTorch; |
394
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
665 |
Probability: 100; |
4c017ae1226a
- Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents:
393
diff
changeset
|
666 |
NumberInCase: 2; |
302 | 667 |
Ammo: (Propz: ammoprop_ForwMsgs; |
668 |
Count: 1; |
|
669 |
NumPerTurn: 0; |
|
670 |
Timer: 0; |
|
408 | 671 |
Pos: 0; |
302 | 672 |
AmmoType: amBlowTorch); |
673 |
Slot: 6; |
|
304 | 674 |
TimeAfterTurn: 3000; |
305 | 675 |
minAngle: 768; |
408 | 676 |
maxAngle: 1280; |
495 | 677 |
PosCount: 1; |
678 |
PosSprite: sprWater), |
|
409 | 679 |
(NameId: sidGirder; |
680 |
Probability: 400; |
|
411 | 681 |
NumberInCase: 3; |
409 | 682 |
Ammo: (Propz: ammoprop_NoCrosshair or |
683 |
ammoprop_NeedTarget or |
|
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
684 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
685 |
ammoprop_DontHold; |
409 | 686 |
Count: 1; |
687 |
NumPerTurn: 0; |
|
688 |
Timer: 0; |
|
689 |
Pos: 0; |
|
690 |
AmmoType: amGirder); |
|
691 |
Slot: 6; |
|
692 |
TimeAfterTurn: 3000; |
|
693 |
minAngle: 0; |
|
694 |
maxAngle: 0; |
|
423 | 695 |
PosCount: 8; |
520 | 696 |
PosSprite: sprAmGirder), |
697 |
(NameId: sidTeleport; |
|
698 |
Probability: 400; |
|
699 |
NumberInCase: 1; |
|
525 | 700 |
Ammo: (Propz: ammoprop_ForwMsgs or |
701 |
ammoprop_NoCrosshair or |
|
520 | 702 |
ammoprop_NeedTarget or |
553
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
703 |
ammoprop_AttackingPut or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
704 |
ammoprop_DontHold; |
520 | 705 |
Count: 2; |
706 |
NumPerTurn: 0; |
|
707 |
Timer: 0; |
|
708 |
Pos: 0; |
|
709 |
AmmoType: amTeleport); |
|
710 |
Slot: 7; |
|
711 |
TimeAfterTurn: 0; |
|
712 |
minAngle: 0; |
|
713 |
maxAngle: 0; |
|
714 |
PosCount: 1; |
|
534 | 715 |
PosSprite: sprWater), |
716 |
(NameId: sidSwitch; |
|
717 |
Probability: 100; |
|
718 |
NumberInCase: 1; |
|
719 |
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
|
720 |
ammoprop_NoCrosshair or |
5478386d935f
- Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents:
547
diff
changeset
|
721 |
ammoprop_DontHold; |
534 | 722 |
Count: 3; |
723 |
NumPerTurn: 0; |
|
724 |
Timer: 0; |
|
725 |
Pos: 0; |
|
726 |
AmmoType: amSwitch); |
|
727 |
Slot: 8; |
|
728 |
TimeAfterTurn: 0; |
|
729 |
minAngle: 0; |
|
730 |
maxAngle: 0; |
|
731 |
PosCount: 1; |
|
520 | 732 |
PosSprite: sprWater)); |
37 | 733 |
|
4 | 734 |
implementation |
735 |
||
736 |
end. |