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