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