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