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