hedgewars/uConsts.pas
author displacer
Sat, 03 Feb 2007 00:19:16 +0000
changeset 380 86f3d818da1c
parent 371 731ad6d27bd1
child 393 db01cc79f278
permissions -rw-r--r--
small memory leak fixed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
     1
(*
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
     2
 * Hedgewars, a worms-like game
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
     3
 * Copyright (c) 2004, 2005 Andrey Korotaev <unC0Rr@gmail.com>
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
     4
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
     8
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    12
 * GNU General Public License for more details.
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    13
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    14
 * You should have received a copy of the GNU General Public License
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    15
 * along with this program; if not, write to the Free Software
57c2ef19f719 Relicense to GPL
unc0rr
parents: 176
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    17
 *)
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    18
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    19
unit uConsts;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    20
interface
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    21
uses SDLh, uLocale;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    22
{$INCLUDE options.inc}
271
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents: 267
diff changeset
    23
{$INCLUDE proto.inc}
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    24
type TStuff     = (sConsoleBG, sPowerBar, sQuestion, sWindBar,
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
    25
                   sWindL, sWindR, sRopeNode);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    26
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    27
     TGameState = (gsLandGen, gsStart, gsGame, gsConsole, gsExit);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    28
155
401f4ea24715 Engine can generate land preview and send it via IPC
unc0rr
parents: 112
diff changeset
    29
     TGameType  = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    30
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    31
     TPathType  = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps,
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    32
                   ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts,
161
d8870bbf960e - AmmoMenu
unc0rr
parents: 155
diff changeset
    33
                   ptLocale, ptAmmoMenu);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    34
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    35
     TSprite    = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    36
                   sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO,
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
    37
                   sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff,
78
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
    38
                   sprMineOn, sprCase, sprFAid, sprDynamite, sprPower,
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    39
                   sprClusterBomb, sprClusterParticle, sprFlame, sprHorizont,
161
d8870bbf960e - AmmoMenu
unc0rr
parents: 155
diff changeset
    40
                   sprSky, sprAMBorders, sprAMSlot, sprAMSlotName, sprAMAmmos,
283
28d105f378f1 Airplane sprite
unc0rr
parents: 282
diff changeset
    41
                   sprAMSlotKeys, sprAMSelection, sprFinger, sprAirBomb,
28d105f378f1 Airplane sprite
unc0rr
parents: 282
diff changeset
    42
                   sprAirplane);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    43
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    44
     TGearType  = (gtCloud, gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag,
83
207c85fbef51 - First hedgehog in team has first turn in team
unc0rr
parents: 82
diff changeset
    45
                   gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope,
49
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 43
diff changeset
    46
                   gtSmokeTrace, gtExplosion, gtMine, gtCase, gtDEagleShot, gtDynamite,
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    47
                   gtTeamHealthSorter, gtClusterBomb, gtCluster, gtShover, gtFlame,
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
    48
                   gtFirePunch, gtATStartGame, gtATSmoothWindCh, gtATFinishGame,
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
    49
                   gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    50
16
b6f4b413dd41 - Various fixes for ammo cases
unc0rr
parents: 14
diff changeset
    51
     TGearsType = set of TGearType;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    52
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    53
     TSound     = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    54
                   sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    55
                   sndMineTick, sndPickhammer);
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    56
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    57
     TAmmoType  = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer,
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    58
                   amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch,
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
    59
                   amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    60
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    61
     THWFont    = (fnt16, fntBig);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    62
174
0b2c5b22f644 Changeable volume
unc0rr
parents: 162
diff changeset
    63
     TCapGroup  = (capgrpGameState, capgrpAmmoinfo, capgrpNetSay, capgrpVolume);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    64
307
96b428ac11f2 More statistics
unc0rr
parents: 306
diff changeset
    65
     TStatInfoType = (siGameResult, siMaxStepDamage, siKilledHHs);
306
7b61834edcf6 - Better blowtorch
unc0rr
parents: 305
diff changeset
    66
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    67
     THHFont    = record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    68
                  Handle: PTTF_Font;
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
    69
                  Height: LongInt;
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
    70
                  style: LongInt;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    71
                  Name: string[15];
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    72
                  end;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    73
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    74
     TAmmo = record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    75
             Propz: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    76
             Count: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    77
             NumPerTurn: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    78
             Timer: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    79
             AmmoType: TAmmoType;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    80
             end;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    81
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    82
105
e7cb9bb4a9de - Fixed integer->longint
unc0rr
parents: 102
diff changeset
    83
const
43
e297fea1a2f3 - Removed dark pixels on the corners of health case
unc0rr
parents: 42
diff changeset
    84
      errmsgCreateSurface   = 'Error creating SDL surface';
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    85
      errmsgTransparentSet  = 'Error setting transparent color';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    86
      errmsgUnknownCommand  = 'Unknown command';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    87
      errmsgUnknownVariable = 'Unknown variable';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    88
      errmsgIncorrectUse    = 'Incorrect use';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    89
      errmsgShouldntRun     = 'This program shouldn''t be run manually';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    90
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    91
      msgLoading           = 'Loading ';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    92
      msgOK                = 'ok';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    93
      msgFailed            = 'failed';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    94
      msgGettingConfig     = 'Getting game config...';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    95
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    96
const
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
    97
      cMaxPower     = 1500;
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
    98
      cMaxAngle     = 2048;
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
    99
      cPowerDivisor = 1500;
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   100
      
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   101
      MAXNAMELEN = 32;
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   102
64
9df467527ae5 - Start AI rewrite
unc0rr
parents: 56
diff changeset
   103
      COLOR_LAND = $00FFFFFF;
9df467527ae5 - Start AI rewrite
unc0rr
parents: 56
diff changeset
   104
55
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   105
      cifRandomize = $00000001;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   106
      cifTheme     = $00000002;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   107
      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
   108
      cifAllInited = cifRandomize or
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   109
                     cifTheme or
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   110
                     cifMap;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   111
188
a7c2a61524c2 Cardinal -> Longword
unc0rr
parents: 183
diff changeset
   112
      cTransparentColor: Longword = $000000;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   113
109
ab0340f580c2 - Initialize translations earlier
unc0rr
parents: 105
diff changeset
   114
      cMaxHHIndex      = 7;
22
517be8dc5b76 - Fixed spawning boxes under water
unc0rr
parents: 17
diff changeset
   115
      cMaxHHs          = 20;
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   116
      cMaxSpawnPoints  = 1024;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   117
22
517be8dc5b76 - Fixed spawning boxes under water
unc0rr
parents: 17
diff changeset
   118
      cMaxEdgePoints = 16384;
517be8dc5b76 - Fixed spawning boxes under water
unc0rr
parents: 17
diff changeset
   119
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   120
      cHHRadius = 9;
70
82d93eeecebe - Many AI improvements
unc0rr
parents: 64
diff changeset
   121
      cHHStepTicks = 38;
294
92a7ccd67bb9 Current hedgehog is on top of others in Z-order
unc0rr
parents: 285
diff changeset
   122
      cHHZ = 1000;
92a7ccd67bb9 Current hedgehog is on top of others in Z-order
unc0rr
parents: 285
diff changeset
   123
      cCurrHHZ = Succ(cHHZ);
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   124
109
ab0340f580c2 - Initialize translations earlier
unc0rr
parents: 105
diff changeset
   125
      cKeyMaxIndex = 1023;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   126
97
e7c1df9cce2c - make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents: 95
diff changeset
   127
      cMaxCaptions = 4;
e7c1df9cce2c - make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents: 95
diff changeset
   128
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   129
      cInactDelay = 1500;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   130
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   131
      gfForts = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   132
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   133
      gstDrowning       = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   134
      gstHHDriven       = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   135
      gstMoving         = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   136
      gstAttacked       = $00000008;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   137
      gstAttacking      = $00000010;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   138
      gstCollision      = $00000020;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   139
      gstHHChooseTarget = $00000040;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   140
      gstFalling        = $00000080;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   141
      gstHHJumping      = $00000100;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   142
      gsttmpFlag        = $00000200;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   143
      gstHHThinking     = $00000800;
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   144
      gstNoDamage       = $00001000;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   145
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   146
      gm_Left   = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   147
      gm_Right  = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   148
      gm_Up     = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   149
      gm_Down   = $00000008;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   150
      gm_Switch = $00000010;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   151
      gm_Attack = $00000020;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   152
      gm_LJump  = $00000040;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   153
      gm_HJump  = $00000080;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   154
      gm_Destroy= $00000100;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   155
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   156
      cMaxSlotIndex       = 8;
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   157
      cMaxSlotAmmoIndex   = 1;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   158
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   159
      ammoprop_Timerable    = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   160
      ammoprop_Power        = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   161
      ammoprop_NeedTarget   = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   162
      ammoprop_ForwMsgs     = $00000008;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   163
      ammoprop_AttackInFall = $00000010;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   164
      ammoprop_AttackInJump = $00000020;
13
7a5db822fd3f - Show no crosshair when using mine
unc0rr
parents: 10
diff changeset
   165
      ammoprop_NoCrosshair  = $00000040;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   166
      ammoprop_AttackingPut = $00000080;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   167
      AMMO_INFINITE = High(LongWord);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   168
42
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   169
      EXPLAllDamageInRadius = $00000001;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   170
      EXPLAutoSound         = $00000002;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   171
      EXPLNoDamage          = $00000004;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   172
      EXPLDoNotTouchHH      = $00000008;
305
1c1cd66ffcdc Better blowtorch
unc0rr
parents: 304
diff changeset
   173
      EXPLDontDraw          = $00000010;
42
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   174
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   175
      posCaseAmmo    = $00000001;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   176
      posCaseHealth  = $00000002;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   177
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
   178
      NoPointX = Low(LongInt);
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   179
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   180
      cHHFileName   = 'Hedgehog';
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   181
      cCHFileName   = 'Crosshair';
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   182
      cThemeCFGFilename = 'theme.cfg';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   183
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   184
      Fontz: array[THWFont] of THHFont = (
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   185
                                         (Handle: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   186
                                          Height: 12;
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   187
                                          style: TTF_STYLE_NORMAL;
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   188
                                          Name: 'DejaVuSans.ttf'),
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   189
                                         (Handle: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   190
                                          Height: 24;
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   191
                                          style: TTF_STYLE_NORMAL;
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   192
                                          Name: 'DejaVuSans.ttf')
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   193
                                         );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   194
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   195
      FontBorder = 2;
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   196
99
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 97
diff changeset
   197
      PathPrefix: string = './';
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 97
diff changeset
   198
      Pathz: array[TPathType] of string      = (
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   199
                                               '',                              // ptNone      
267
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   200
                                               '',                              // ptData
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   201
                                               'Graphics',                      // ptGraphics
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   202
                                               'Themes',                        // ptThemes
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   203
                                               'Themes/avematan',               // ptCurrTheme
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   204
                                               'Teams',                         // ptTeams
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   205
                                               'Maps',                          // ptMaps
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   206
                                               '',                              // ptMapCurrent
267
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   207
                                               'Demos',                         // ptDemos
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   208
                                               'Sounds',                        // ptSounds
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   209
                                               'Graphics/Graves',               // ptGraves
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   210
                                               'Fonts',                         // ptFonts
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   211
                                               'Forts',                         // ptForts
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   212
                                               'Locale',                        // ptLocale
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   213
                                               'Graphics/AmmoMenu'              // ptAmmoMenu
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   214
                                               );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   215
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   216
      StuffLoadData: array[TStuff] of record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   217
                                     FileName: String[31];
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   218
                                     Path    : TPathType;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   219
                                     end = (
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   220
                                     (FileName:  'Console'; Path: ptGraphics     ),    // sConsoleBG
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   221
                                     (FileName: 'PowerBar'; Path: ptGraphics     ),    // sPowerBar
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   222
                                     (FileName: 'thinking'; Path: ptGraphics     ),    // sQuestion
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   223
                                     (FileName:  'WindBar'; Path: ptGraphics     ),    // sWindBar
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   224
                                     (FileName:    'WindL'; Path: ptGraphics     ),    // sWindL
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   225
                                     (FileName:    'WindR'; Path: ptGraphics     ),    // sWindR
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   226
                                     (FileName: 'RopeNode'; Path: ptGraphics     )     // sRopeNode
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   227
                                     );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   228
      StuffPoz: array[TStuff] of TSDL_Rect = (
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   229
                                      (x: 256; y: 256; w: 256; h: 256), // sConsoleBG
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   230
                                      (x: 256; y: 768; w: 256; h:  32), // sPowerBar
5
0dafbd19a04c Show wind speed on bar
unc0rr
parents: 4
diff changeset
   231
                                      (x: 256; y: 512; w:  32; h:  32), // sQuestion
0dafbd19a04c Show wind speed on bar
unc0rr
parents: 4
diff changeset
   232
                                      (x: 256; y: 800; w: 151; h:  17), // sWindBar
0dafbd19a04c Show wind speed on bar
unc0rr
parents: 4
diff changeset
   233
                                      (x: 256; y: 817; w:  80; h:  13), // sWindL
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   234
                                      (x: 336; y: 817; w:  80; h:  13), // sWindR
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   235
                                      (x: 256; y: 544; w:   6; h:   6)  // sRopeNode
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   236
                                      );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   237
      SpritesData: array[TSprite] of record
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   238
                     FileName: String[31];
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   239
                     Path, AltPath: TPathType;
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   240
                     Surface : PSDL_Surface;
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
   241
                     Width, Height: LongInt;
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   242
                     hasAlpha: boolean;
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   243
                     end = (
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   244
                     (FileName: 'BlueWater'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   245
                     Width: 256; Height: 48; hasAlpha: false),// sprWater
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   246
                     (FileName:    'Clouds'; Path: ptCurrTheme; AltPath: ptGraphics; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   247
                     Width: 256; Height:128; hasAlpha: false),// sprCloud
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   248
                     (FileName:      'Bomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   249
                     Width:  16; Height: 16; hasAlpha: false),// sprBomb
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   250
                     (FileName: 'BigDigits'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   251
                     Width:  32; Height: 32; hasAlpha:  true),// sprBigDigit
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   252
                     (FileName:     'Frame'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   253
                     Width:   4; Height: 32; hasAlpha:  true),// sprFrame
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   254
                     (FileName:       'Lag'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   255
                     Width:  64; Height: 64; hasAlpha: false),// sprLag
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   256
                     (FileName:     'Arrow'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   257
                     Width:  16; Height: 16; hasAlpha: false),// sprCursor
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   258
                     (FileName:   'Grenade'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   259
                     Width:  32; Height: 32; hasAlpha: false),// sprGrenade
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   260
                     (FileName:   'Targetp'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   261
                     Width:  32; Height: 32; hasAlpha: false),// sprTargetP
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   262
                     (FileName:       'UFO'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   263
                     Width:  32; Height: 32; hasAlpha: false),// sprUFO
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   264
                     (FileName:'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   265
                     Width:  32; Height: 32; hasAlpha:  true),// sprSmokeTrace
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   266
                     (FileName:  'RopeHook'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   267
                     Width:  32; Height: 32; hasAlpha: false),// sprRopeHook
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   268
                     (FileName:    'Expl50'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   269
                     Width:  64; Height: 64; hasAlpha: false),// sprExplosion50
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   270
                     (FileName:   'MineOff'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   271
                     Width:  16; Height: 16; hasAlpha: false),// sprMineOff
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   272
                     (FileName:    'MineOn'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   273
                     Width:  16; Height: 16; hasAlpha: false),// sprMineOn
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   274
                     (FileName:      'Case'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   275
                     Width:  32; Height: 32; hasAlpha: false),// sprCase
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   276
                     (FileName:  'FirstAid'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   277
                     Width:  48; Height: 48; hasAlpha: false),// sprFAid
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   278
                     (FileName:  'dynamite'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   279
                     Width:  32; Height: 32; hasAlpha: false),// sprDynamite
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   280
                     (FileName:     'Power'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   281
                     Width:  32; Height: 32; hasAlpha:  true),// sprPower
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   282
                     (FileName:    'ClBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   283
                     Width:  16; Height: 16; hasAlpha: false),// sprClusterBomb
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   284
                     (FileName:'ClParticle'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   285
                     Width:  16; Height: 16; hasAlpha: false),// sprClusterParticle
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   286
                     (FileName:     'Flame'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   287
                     Width:  16; Height: 16; hasAlpha: false),// sprFlame
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   288
                     (FileName:  'horizont'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   289
                     Width:   0; Height:  0; hasAlpha: false),// sprHorizont
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   290
                     (FileName:       'Sky'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   291
                     Width:   0; Height:  0; hasAlpha: false),// sprSky
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   292
                     (FileName: 'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   293
                     Width: 202; Height:  1; hasAlpha: false),// sprAMBorders
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   294
                     (FileName:      'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   295
                     Width: 202; Height: 33; hasAlpha: false),// sprAMSlot
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   296
                     (FileName:  'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   297
                     Width: 202; Height: 33; hasAlpha: false),// sprAMSlotName
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   298
                     (FileName:     'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   299
                     Width:  32; Height: 32; hasAlpha: false),// sprAMAmmos
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   300
                     (FileName:  'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   301
                     Width:  32; Height: 32; hasAlpha: false),// sprAMSlotKeys
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   302
                     (FileName: 'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   303
                     Width:  32; Height: 32; hasAlpha: false),// sprAMSelection
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   304
                     (FileName:    'Finger'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   305
                     Width:  32; Height: 48; hasAlpha: false),// sprFinger
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   306
                     (FileName:   'AirBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   307
                     Width:  32; Height: 32; hasAlpha: false),// sprAirBomb
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   308
                     (FileName:  'Airplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   309
                     Width: 125; Height: 42; hasAlpha: false) // sprAirplane
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   310
                     );
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   311
      Soundz: array[TSound] of record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   312
                                       FileName: String[31];
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   313
                                       Path    : TPathType;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   314
                                       id      : PMixChunk;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
   315
                                       lastChan: LongInt;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   316
                                       end = (
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   317
                                       (FileName: 'grenadeimpact.ogg'; Path: ptSounds  ),// sndGrenadeImpact
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   318
                                       (FileName:     'explosion.ogg'; Path: ptSounds  ),// sndExplosion
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   319
                                       (FileName:  'throwpowerup.ogg'; Path: ptSounds  ),// sndThrowPowerUp
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   320
                                       (FileName:  'throwrelease.ogg'; Path: ptSounds  ),// sndThrowRelease
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   321
                                       (FileName:        'splash.ogg'; Path: ptSounds  ),// sndSplash
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   322
                                       (FileName: 'shotgunreload.ogg'; Path: ptSounds  ),// sndShotgunReload
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   323
                                       (FileName:   'shotgunfire.ogg'; Path: ptSounds  ),// sndShotgunFire
13
7a5db822fd3f - Show no crosshair when using mine
unc0rr
parents: 10
diff changeset
   324
                                       (FileName:   'graveimpact.ogg'; Path: ptSounds  ),// sndGraveImpact
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
   325
                                       (FileName:      'minetick.ogg'; Path: ptSounds  ),// sndMineTicks
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
   326
                                       (FileName:    'pickhammer.ogg'; Path: ptSounds  ) // sndPickhammer
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   327
                                       );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   328
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   329
      Ammoz: array [TAmmoType] of record
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   330
                                  NameId: TAmmoStrId;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   331
                                  Ammo: TAmmo;
112
ca5f06017e99 Fix use of slot 8 and avoid such bug in future
unc0rr
parents: 109
diff changeset
   332
                                  Slot: 0..cMaxSlotIndex;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   333
                                  TimeAfterTurn: Longword;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   334
                                  minAngle, maxAngle: Longword;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   335
                                  end = (
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   336
                                  (NameId: sidGrenade;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   337
                                   Ammo: (Propz: ammoprop_Timerable or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   338
                                                 ammoprop_Power;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   339
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   340
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   341
                                          Timer: 3000;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   342
                                          AmmoType: amGrenade);
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   343
                                   Slot: 1;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   344
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   345
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   346
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   347
                                  (NameId: sidClusterBomb;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   348
                                   Ammo: (Propz: ammoprop_Timerable or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   349
                                                 ammoprop_Power;
78
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   350
                                          Count: 5;
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   351
                                          NumPerTurn: 0;
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   352
                                          Timer: 3000;
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   353
                                          AmmoType: amClusterBomb);
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   354
                                   Slot: 1;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   355
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   356
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   357
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   358
                                  (NameId: sidBazooka;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   359
                                   Ammo: (Propz: ammoprop_Power;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   360
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   361
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   362
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   363
                                          AmmoType: amBazooka);
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   364
                                   Slot: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   365
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   366
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   367
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   368
                                  (NameId: sidUFO;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   369
                                   Ammo: (Propz: ammoprop_Power or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   370
                                                 ammoprop_NeedTarget;
56
a29135563e94 - Replaced water sprite
unc0rr
parents: 55
diff changeset
   371
                                          Count: 2;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   372
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   373
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   374
                                          AmmoType: amUFO);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   375
                                   Slot: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   376
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   377
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   378
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   379
                                  (NameId: sidShotgun;
95
1ef5e2c41115 - Fixed compilation
unc0rr
parents: 83
diff changeset
   380
                                   Ammo: (Propz: ammoprop_ForwMsgs;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   381
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   382
                                          NumPerTurn: 1;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   383
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   384
                                          AmmoType: amShotgun);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   385
                                   Slot: 2;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   386
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   387
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   388
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   389
                                  (NameId: sidPickHammer;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   390
                                   Ammo: (Propz: ammoprop_ForwMsgs or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   391
                                                 ammoprop_AttackInFall or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   392
                                                 ammoprop_AttackInJump or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   393
                                                 ammoprop_NoCrosshair;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   394
                                          Count: 2;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   395
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   396
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   397
                                          AmmoType: amPickHammer);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   398
                                   Slot: 6;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   399
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   400
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   401
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   402
                                  (NameId: sidSkip;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   403
                                   Ammo: (Propz: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   404
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   405
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   406
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   407
                                          AmmoType: amSkip);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   408
                                   Slot: 8;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   409
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   410
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   411
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   412
                                  (NameId: sidRope;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   413
                                   Ammo: (Propz: ammoprop_ForwMsgs or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   414
                                                 ammoprop_AttackInFall or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   415
                                                 ammoprop_AttackInJump;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   416
                                          Count: 5;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   417
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   418
                                          Timer: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   419
                                          AmmoType: amRope);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   420
                                   Slot: 7;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   421
                                   TimeAfterTurn: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   422
                                   minAngle: 0;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   423
                                   maxAngle: cMaxAngle div 2),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   424
                                  (NameId: sidMine;
13
7a5db822fd3f - Show no crosshair when using mine
unc0rr
parents: 10
diff changeset
   425
                                   Ammo: (Propz: ammoprop_NoCrosshair;
56
a29135563e94 - Replaced water sprite
unc0rr
parents: 55
diff changeset
   426
                                          Count: 2;
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   427
                                          NumPerTurn: 0;
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   428
                                          Timer: 0;
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   429
                                          AmmoType: amMine);
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   430
                                   Slot: 4;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   431
                                   TimeAfterTurn: 5000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   432
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   433
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   434
                                  (NameId: sidDEagle;
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   435
                                   Ammo: (Propz: 0;
75
d2b737858ff7 - New First Aid powerup
unc0rr
parents: 74
diff changeset
   436
                                          Count: 3;
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   437
                                          NumPerTurn: 3;
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   438
                                          Timer: 0;
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   439
                                          AmmoType: amDEagle);
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   440
                                   Slot: 2;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   441
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   442
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   443
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   444
                                   (NameId: sidDynamite;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   445
                                    Ammo: (Propz: ammoprop_NoCrosshair or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   446
                                                  ammoprop_AttackInJump or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   447
                                                  ammoprop_AttackInFall;
56
a29135563e94 - Replaced water sprite
unc0rr
parents: 55
diff changeset
   448
                                           Count: 1;
39
b78e7185ed13 - Increased FPS
unc0rr
parents: 37
diff changeset
   449
                                           NumPerTurn: 0;
b78e7185ed13 - Increased FPS
unc0rr
parents: 37
diff changeset
   450
                                           Timer: 0;
b78e7185ed13 - Increased FPS
unc0rr
parents: 37
diff changeset
   451
                                           AmmoType: amDynamite);
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   452
                                    Slot: 4;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   453
                                    TimeAfterTurn: 5000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   454
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   455
                                   maxAngle: 0),
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   456
                                   (NameId: sidFirePunch;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   457
                                    Ammo: (Propz: ammoprop_NoCrosshair or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   458
                                                  ammoprop_ForwMsgs or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   459
                                                  ammoprop_AttackInJump or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   460
                                                  ammoprop_AttackInFall;
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   461
                                           Count: AMMO_INFINITE;
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   462
                                           NumPerTurn: 0;
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   463
                                           Timer: 0;
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   464
                                           AmmoType: amFirePunch);
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
   465
                                    Slot: 3;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   466
                                    TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   467
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   468
                                   maxAngle: 0),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   469
                                   (NameId: sidBaseballBat;
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   470
                                    Ammo: (Propz: 0;
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   471
                                           Count: 1;
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   472
                                           NumPerTurn: 0;
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   473
                                           Timer: 0;
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   474
                                           AmmoType: amBaseballBat);
39
b78e7185ed13 - Increased FPS
unc0rr
parents: 37
diff changeset
   475
                                    Slot: 3;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   476
                                    TimeAfterTurn: 5000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   477
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   478
                                   maxAngle: 0),
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   479
                                  (NameId: sidParachute;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   480
                                   Ammo: (Propz: ammoprop_ForwMsgs or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   481
                                                 ammoprop_AttackInJump or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   482
                                                 ammoprop_AttackInFall;
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   483
                                          Count: 2;
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   484
                                          NumPerTurn: 0;
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   485
                                          Timer: 0;
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   486
                                          AmmoType: amParachute);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   487
                                   Slot: 7;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   488
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   489
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   490
                                   maxAngle: 0),
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   491
                                  (NameId: sidAirAttack;
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   492
                                   Ammo: (Propz: ammoprop_NoCrosshair or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   493
                                                 ammoprop_NeedTarget or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   494
                                                 ammoprop_AttackingPut;
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   495
                                          Count: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   496
                                          NumPerTurn: 0;
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   497
                                          Timer: 0;
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   498
                                          AmmoType: amAirAttack);
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   499
                                   Slot: 5;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   500
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   501
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   502
                                   maxAngle: 0),
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   503
                                  (NameId: sidMineStrike;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   504
                                   Ammo: (Propz: ammoprop_NoCrosshair or
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   505
                                                 ammoprop_NeedTarget or
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   506
                                                 ammoprop_AttackingPut;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   507
                                          Count: 1;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   508
                                          NumPerTurn: 0;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   509
                                          Timer: 0;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   510
                                          AmmoType: amMineStrike);
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   511
                                   Slot: 5;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   512
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   513
                                   minAngle: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   514
                                   maxAngle: 0),
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   515
                                  (NameId: sidBlowTorch;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   516
                                   Ammo: (Propz: ammoprop_ForwMsgs;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   517
                                          Count: 1;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   518
                                          NumPerTurn: 0;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   519
                                          Timer: 0;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   520
                                          AmmoType: amBlowTorch);
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   521
                                   Slot: 6;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   522
                                   TimeAfterTurn: 3000;
305
1c1cd66ffcdc Better blowtorch
unc0rr
parents: 304
diff changeset
   523
                                   minAngle: 768;
1c1cd66ffcdc Better blowtorch
unc0rr
parents: 304
diff changeset
   524
                                   maxAngle: 1280));
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   525
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   526
implementation
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   527
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   528
end.