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