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