hedgewars/uConsts.pas
author unc0rr
Sun, 20 Jan 2008 13:41:38 +0000
changeset 722 993faebbe546
parent 708 6ee55ba9c8fe
child 755 edf26e9554ac
permissions -rw-r--r--
- Use shotgun training as more attractive than the second one with bazooka - More filters for make package_source
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
393
db01cc79f278 Update copyright information
unc0rr
parents: 371
diff changeset
     3
 * Copyright (c) 2004-2007 Andrey Korotaev <unC0Rr@gmail.com>
4
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}
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
    24
type
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    25
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    26
     TGameState = (gsLandGen, gsStart, gsGame, gsConsole, gsExit);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    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
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    29
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    30
     TPathType  = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps,
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    31
                   ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts,
161
d8870bbf960e - AmmoMenu
unc0rr
parents: 155
diff changeset
    32
                   ptLocale, ptAmmoMenu);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    33
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    34
     TSprite    = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    35
                   sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO,
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
    36
                   sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff,
78
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
    37
                   sprMineOn, sprCase, sprFAid, sprDynamite, sprPower,
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
    38
                   sprClusterBomb, sprClusterParticle, sprFlame, sprHorizont,
161
d8870bbf960e - AmmoMenu
unc0rr
parents: 155
diff changeset
    39
                   sprSky, sprAMBorders, sprAMSlot, sprAMSlotName, sprAMAmmos,
283
28d105f378f1 Airplane sprite
unc0rr
parents: 282
diff changeset
    40
                   sprAMSlotKeys, sprAMSelection, sprFinger, sprAirBomb,
534
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
    41
                   sprAirplane, sprAmAirplane, sprAmGirder, sprHHTelepMask,
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
    42
                   sprSwitch, sprParachute, sprTarget, sprRopeNode, sprConsoleBG,
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
    43
                   sprQuestion, sprPowerBar, sprWindBar,
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
    44
                   sprWindL, sprWindR);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    45
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    46
     TGearType  = (gtCloud, gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag,
83
207c85fbef51 - First hedgehog in team has first turn in team
unc0rr
parents: 82
diff changeset
    47
                   gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope,
49
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 43
diff changeset
    48
                   gtSmokeTrace, gtExplosion, gtMine, gtCase, gtDEagleShot, gtDynamite,
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    49
                   gtTeamHealthSorter, gtClusterBomb, gtCluster, gtShover, gtFlame,
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
    50
                   gtFirePunch, gtATStartGame, gtATSmoothWindCh, gtATFinishGame,
520
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
    51
                   gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, gtGirder,
590
e816adf4a27f Basic gtTarget support
unc0rr
parents: 568
diff changeset
    52
                   gtTeleport, gtSmallDamage, gtSwitcher, gtTarget);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    53
16
b6f4b413dd41 - Various fixes for ammo cases
unc0rr
parents: 14
diff changeset
    54
     TGearsType = set of TGearType;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    55
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    56
     TSound     = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    57
                   sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
560
7bf2b554de0c UFO Sound
unc0rr
parents: 559
diff changeset
    58
                   sndMineTick, sndPickhammer, sndGun, sndUFO);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    59
82
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    60
     TAmmoType  = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer,
2f4f3236cccc - New fort
unc0rr
parents: 80
diff changeset
    61
                   amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch,
409
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
    62
                   amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch,
534
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
    63
                   amGirder, amTeleport, amSwitch);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    64
522
ca089787f59d Tags with current damage
unc0rr
parents: 520
diff changeset
    65
     THWFont    = (fnt16, fntBig, fntSmall);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    66
174
0b2c5b22f644 Changeable volume
unc0rr
parents: 162
diff changeset
    67
     TCapGroup  = (capgrpGameState, capgrpAmmoinfo, capgrpNetSay, capgrpVolume);
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    68
307
96b428ac11f2 More statistics
unc0rr
parents: 306
diff changeset
    69
     TStatInfoType = (siGameResult, siMaxStepDamage, siKilledHHs);
306
7b61834edcf6 - Better blowtorch
unc0rr
parents: 305
diff changeset
    70
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    71
     THHFont    = record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    72
                  Handle: PTTF_Font;
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
    73
                  Height: LongInt;
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
    74
                  style: LongInt;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    75
                  Name: string[15];
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    76
                  end;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
    77
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    78
     TAmmo = record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    79
             Propz: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    80
             Count: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    81
             NumPerTurn: LongWord;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    82
             Timer: LongWord;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
    83
             Pos: LongWord;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    84
             AmmoType: TAmmoType;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    85
             end;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    86
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    87
105
e7cb9bb4a9de - Fixed integer->longint
unc0rr
parents: 102
diff changeset
    88
const
43
e297fea1a2f3 - Removed dark pixels on the corners of health case
unc0rr
parents: 42
diff changeset
    89
      errmsgCreateSurface   = 'Error creating SDL surface';
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    90
      errmsgTransparentSet  = 'Error setting transparent color';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    91
      errmsgUnknownCommand  = 'Unknown command';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    92
      errmsgUnknownVariable = 'Unknown variable';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    93
      errmsgIncorrectUse    = 'Incorrect use';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    94
      errmsgShouldntRun     = 'This program shouldn''t be run manually';
615
b646b3c43369 - Add 'Mission Fail' trigger type
unc0rr
parents: 614
diff changeset
    95
      errmsgWrongNumber     = 'Wrong parameters number';
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    96
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    97
      msgLoading           = 'Loading ';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    98
      msgOK                = 'ok';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
    99
      msgFailed            = 'failed';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   100
      msgGettingConfig     = 'Getting game config...';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   101
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   102
const
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   103
      cMaxPower     = 1500;
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   104
      cMaxAngle     = 2048;
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   105
      cPowerDivisor = 1500;
621
8bdbc240f50f New game flag for non-destroyable land
unc0rr
parents: 615
diff changeset
   106
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   107
      MAXNAMELEN = 32;
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   108
64
9df467527ae5 - Start AI rewrite
unc0rr
parents: 56
diff changeset
   109
      COLOR_LAND = $00FFFFFF;
9df467527ae5 - Start AI rewrite
unc0rr
parents: 56
diff changeset
   110
55
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   111
      cifRandomize = $00000001;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   112
      cifTheme     = $00000002;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   113
      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
   114
      cifAllInited = cifRandomize or
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   115
                     cifTheme or
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   116
                     cifMap;
e09f7c952a40 Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents: 53
diff changeset
   117
188
a7c2a61524c2 Cardinal -> Longword
unc0rr
parents: 183
diff changeset
   118
      cTransparentColor: Longword = $000000;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   119
614
0e04504bc140 - Fix some warnings
unc0rr
parents: 601
diff changeset
   120
      cMaxTeams        = 6;
109
ab0340f580c2 - Initialize translations earlier
unc0rr
parents: 105
diff changeset
   121
      cMaxHHIndex      = 7;
423
5f4559ce7062 Better construction tool
unc0rr
parents: 411
diff changeset
   122
      cMaxHHs          = 30;
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   123
      cMaxSpawnPoints  = 1024;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   124
22
517be8dc5b76 - Fixed spawning boxes under water
unc0rr
parents: 17
diff changeset
   125
      cMaxEdgePoints = 16384;
517be8dc5b76 - Fixed spawning boxes under water
unc0rr
parents: 17
diff changeset
   126
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   127
      cHHRadius = 9;
70
82d93eeecebe - Many AI improvements
unc0rr
parents: 64
diff changeset
   128
      cHHStepTicks = 38;
509
fd58135a4407 Bots know shotgun behavior better
unc0rr
parents: 495
diff changeset
   129
294
92a7ccd67bb9 Current hedgehog is on top of others in Z-order
unc0rr
parents: 285
diff changeset
   130
      cHHZ = 1000;
92a7ccd67bb9 Current hedgehog is on top of others in Z-order
unc0rr
parents: 285
diff changeset
   131
      cCurrHHZ = Succ(cHHZ);
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   132
509
fd58135a4407 Bots know shotgun behavior better
unc0rr
parents: 495
diff changeset
   133
      cShotgunRadius = 22;
511
2b5b9e00419d - Further work on new collisions implementation
unc0rr
parents: 509
diff changeset
   134
      cBlowTorchC    = 6;
509
fd58135a4407 Bots know shotgun behavior better
unc0rr
parents: 495
diff changeset
   135
109
ab0340f580c2 - Initialize translations earlier
unc0rr
parents: 105
diff changeset
   136
      cKeyMaxIndex = 1023;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   137
97
e7c1df9cce2c - make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents: 95
diff changeset
   138
      cMaxCaptions = 4;
e7c1df9cce2c - make the game be run from ${PREFIX}/bin with data in ${PREFIX}/share/hedgewars/Data
unc0rr
parents: 95
diff changeset
   139
601
78a68cc4d846 Special game mode allowing the only clan on map for training mode
unc0rr
parents: 590
diff changeset
   140
      gfForts       = $00000001;
614
0e04504bc140 - Fix some warnings
unc0rr
parents: 601
diff changeset
   141
      gfMultiWeapon = $00000002;
621
8bdbc240f50f New game flag for non-destroyable land
unc0rr
parents: 615
diff changeset
   142
      gfSolidLand   = $00000004;
601
78a68cc4d846 Special game mode allowing the only clan on map for training mode
unc0rr
parents: 590
diff changeset
   143
      gfOneClanMode = $10000000;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   144
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   145
      gstDrowning       = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   146
      gstHHDriven       = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   147
      gstMoving         = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   148
      gstAttacked       = $00000008;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   149
      gstAttacking      = $00000010;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   150
      gstCollision      = $00000020;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   151
      gstHHChooseTarget = $00000040;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   152
      gstHHJumping      = $00000100;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   153
      gsttmpFlag        = $00000200;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   154
      gstHHThinking     = $00000800;
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   155
      gstNoDamage       = $00001000;
424
4598c21bb421 Disable cheat trick with hjump
unc0rr
parents: 423
diff changeset
   156
      gstHHHJump        = $00002000;
511
2b5b9e00419d - Further work on new collisions implementation
unc0rr
parents: 509
diff changeset
   157
      gstAnimation      = $00004000;
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
      gm_Left   = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   160
      gm_Right  = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   161
      gm_Up     = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   162
      gm_Down   = $00000008;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   163
      gm_Switch = $00000010;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   164
      gm_Attack = $00000020;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   165
      gm_LJump  = $00000040;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   166
      gm_HJump  = $00000080;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   167
      gm_Destroy= $00000100;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   168
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   169
      cMaxSlotIndex       = 8;
409
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   170
      cMaxSlotAmmoIndex   = 2;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   171
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   172
      ammoprop_Timerable    = $00000001;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   173
      ammoprop_Power        = $00000002;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   174
      ammoprop_NeedTarget   = $00000004;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   175
      ammoprop_ForwMsgs     = $00000008;
542
ec26095f1bed - Get rid of ammoProp_AttackInFall and gstFalling
unc0rr
parents: 534
diff changeset
   176
      ammoprop_AttackInMove = $00000010;
13
7a5db822fd3f - Show no crosshair when using mine
unc0rr
parents: 10
diff changeset
   177
      ammoprop_NoCrosshair  = $00000040;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   178
      ammoprop_AttackingPut = $00000080;
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   179
      ammoprop_DontHold     = $00000100;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   180
      AMMO_INFINITE = High(LongWord);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   181
42
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   182
      EXPLAllDamageInRadius = $00000001;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   183
      EXPLAutoSound         = $00000002;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   184
      EXPLNoDamage          = $00000004;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   185
      EXPLDoNotTouchHH      = $00000008;
305
1c1cd66ffcdc Better blowtorch
unc0rr
parents: 304
diff changeset
   186
      EXPLDontDraw          = $00000010;
42
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   187
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   188
      posCaseAmmo    = $00000001;
72ffe21f027c - Fixed console behavior
unc0rr
parents: 39
diff changeset
   189
      posCaseHealth  = $00000002;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   190
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
   191
      NoPointX = Low(LongInt);
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   192
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   193
      cHHFileName   = 'Hedgehog';
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   194
      cCHFileName   = 'Crosshair';
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   195
      cThemeCFGFilename = 'theme.cfg';
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   196
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   197
      Fontz: array[THWFont] of THHFont = (
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   198
                                         (Handle: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   199
                                          Height: 12;
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   200
                                          style: TTF_STYLE_NORMAL;
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   201
                                          Name: 'DejaVuSans.ttf'),
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   202
                                         (Handle: nil;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   203
                                          Height: 24;
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   204
                                          style: TTF_STYLE_NORMAL;
522
ca089787f59d Tags with current damage
unc0rr
parents: 520
diff changeset
   205
                                          Name: 'DejaVuSans.ttf'),
ca089787f59d Tags with current damage
unc0rr
parents: 520
diff changeset
   206
                                         (Handle: nil;
ca089787f59d Tags with current damage
unc0rr
parents: 520
diff changeset
   207
                                          Height: 10;
ca089787f59d Tags with current damage
unc0rr
parents: 520
diff changeset
   208
                                          style: TTF_STYLE_NORMAL;
74
42257fee61ae - Unicode support for team and hedgehogs names
unc0rr
parents: 72
diff changeset
   209
                                          Name: 'DejaVuSans.ttf')
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   210
                                         );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   211
202
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   212
      FontBorder = 2;
8603c0420461 Support font styles
unc0rr
parents: 199
diff changeset
   213
99
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 97
diff changeset
   214
      PathPrefix: string = './';
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 97
diff changeset
   215
      Pathz: array[TPathType] of string      = (
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   216
                                               '',                              // ptNone      
267
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   217
                                               '',                              // ptData
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   218
                                               'Graphics',                      // ptGraphics
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   219
                                               'Themes',                        // ptThemes
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   220
                                               'Themes/avematan',               // ptCurrTheme
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   221
                                               'Teams',                         // ptTeams
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   222
                                               'Maps',                          // ptMaps
53
0e27949850e3 - Fixed bubble theme object
unc0rr
parents: 49
diff changeset
   223
                                               '',                              // ptMapCurrent
267
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   224
                                               'Demos',                         // ptDemos
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   225
                                               'Sounds',                        // ptSounds
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   226
                                               'Graphics/Graves',               // ptGraves
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   227
                                               'Fonts',                         // ptFonts
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   228
                                               'Forts',                         // ptForts
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   229
                                               'Locale',                        // ptLocale
bf7c1503f569 Engine gets Data path from frontend
unc0rr
parents: 263
diff changeset
   230
                                               'Graphics/AmmoMenu'              // ptAmmoMenu
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   231
                                               );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   232
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   233
      SpritesData: array[TSprite] of record
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   234
                     FileName: String[31];
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   235
                     Path, AltPath: TPathType;
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   236
                     Surface : PSDL_Surface;
371
731ad6d27bd1 integer -> LongInt
unc0rr
parents: 351
diff changeset
   237
                     Width, Height: LongInt;
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   238
                     hasAlpha: boolean;
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   239
                     end = (
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   240
                     (FileName:  'BlueWater'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   241
                      Width: 256; Height: 48; hasAlpha: false),// sprWater
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   242
                     (FileName:     'Clouds'; Path: ptCurrTheme; AltPath: ptGraphics; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   243
                      Width: 256; Height:128; hasAlpha: false),// sprCloud
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   244
                     (FileName:       'Bomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   245
                      Width:  16; Height: 16; hasAlpha: false),// sprBomb
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   246
                     (FileName:  'BigDigits'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   247
                      Width:  32; Height: 32; hasAlpha:  true),// sprBigDigit
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   248
                     (FileName:      'Frame'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   249
                      Width:   4; Height: 32; hasAlpha:  true),// sprFrame
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   250
                     (FileName:        'Lag'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   251
                      Width:  65; Height: 65; hasAlpha:  true),// sprLag
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   252
                     (FileName:      'Arrow'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   253
                      Width:  16; Height: 16; hasAlpha: false),// sprCursor
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   254
                     (FileName:    'Grenade'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   255
                      Width:  32; Height: 32; hasAlpha: false),// sprGrenade
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   256
                     (FileName:    'Targetp'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   257
                      Width:  32; Height: 32; hasAlpha: false),// sprTargetP
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   258
                     (FileName:        'UFO'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   259
                      Width:  32; Height: 32; hasAlpha: false),// sprUFO
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   260
                     (FileName: 'SmokeTrace'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   261
                      Width:  32; Height: 32; hasAlpha:  true),// sprSmokeTrace
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   262
                     (FileName:   'RopeHook'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   263
                      Width:  32; Height: 32; hasAlpha: false),// sprRopeHook
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   264
                     (FileName:     'Expl50'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   265
                      Width:  64; Height: 64; hasAlpha: false),// sprExplosion50
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   266
                     (FileName:    'MineOff'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   267
                      Width:  16; Height: 16; hasAlpha: false),// sprMineOff
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   268
                     (FileName:     'MineOn'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   269
                      Width:  16; Height: 16; hasAlpha: false),// sprMineOn
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   270
                     (FileName:       'Case'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   271
                      Width:  32; Height: 32; hasAlpha: false),// sprCase
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   272
                     (FileName:   'FirstAid'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   273
                      Width:  48; Height: 48; hasAlpha: false),// sprFAid
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   274
                     (FileName:   'dynamite'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   275
                      Width:  32; Height: 32; hasAlpha: false),// sprDynamite
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   276
                     (FileName:      'Power'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   277
                      Width:  32; Height: 32; hasAlpha:  true),// sprPower
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   278
                     (FileName:     'ClBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   279
                      Width:  16; Height: 16; hasAlpha: false),// sprClusterBomb
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   280
                     (FileName: 'ClParticle'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   281
                      Width:  16; Height: 16; hasAlpha: false),// sprClusterParticle
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   282
                     (FileName:      'Flame'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   283
                      Width:  16; Height: 16; hasAlpha: false),// sprFlame
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   284
                     (FileName:   'horizont'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   285
                      Width:   0; Height:  0; hasAlpha: false),// sprHorizont
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   286
                     (FileName:        'Sky'; Path: ptCurrTheme; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   287
                      Width:   0; Height:  0; hasAlpha: false),// sprSky
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   288
                     (FileName:  'BrdrLines'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   289
                      Width: 202; Height:  1; hasAlpha: false),// sprAMBorders
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   290
                     (FileName:       'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   291
                      Width: 202; Height: 33; hasAlpha: false),// sprAMSlot
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   292
                     (FileName:   'AmmoName'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   293
                      Width: 202; Height: 33; hasAlpha: false),// sprAMSlotName
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   294
                     (FileName:      'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   295
                      Width:  32; Height: 32; hasAlpha: false),// sprAMAmmos
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   296
                     (FileName:   'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   297
                      Width:  32; Height: 32; hasAlpha: false),// sprAMSlotKeys
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   298
                     (FileName:  'Selection'; Path: ptAmmoMenu; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   299
                      Width:  32; Height: 32; hasAlpha: false),// sprAMSelection
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   300
                     (FileName:     'Finger'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   301
                      Width:  32; Height: 48; hasAlpha: false),// sprFinger
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   302
                     (FileName:    'AirBomb'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   303
                      Width:  32; Height: 32; hasAlpha: false),// sprAirBomb
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   304
                     (FileName:   'Airplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   305
                      Width: 125; Height: 42; hasAlpha: false),// sprAirplane
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   306
                     (FileName: 'amAirplane'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   307
                      Width:  64; Height: 32; hasAlpha:  true),// sprAirplane
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   308
                     (FileName:   'amGirder'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   309
                      Width: 160; Height:160; hasAlpha: false),// sprAmGirder
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   310
                     (FileName:     'hhMask'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   311
                      Width:  32; Height: 32; hasAlpha: false),// sprHHTelepMask
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   312
                     (FileName:     'Switch'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   313
                      Width:  32; Height: 32; hasAlpha:  true),// sprSwitch
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   314
                     (FileName:  'Parachute'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   315
                      Width:  48; Height: 48; hasAlpha:  true),// sprParachute
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   316
                     (FileName:     'Target'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   317
                      Width:  32; Height: 32; hasAlpha: false),// sprTarget
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   318
                     (FileName:   'RopeNode'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   319
                      Width:   6; Height:  6; hasAlpha: false),// sprRopeNode
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   320
                     (FileName:    'Console'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   321
                      Width: 256; Height:256; hasAlpha: false),// sprConsoleBG
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   322
                     (FileName:   'thinking'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   323
                      Width:  32; Height: 32; hasAlpha: false),// sprQuestion
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
   324
                     (FileName:   'PowerBar'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   325
                      Width: 256; Height: 32; hasAlpha: false),// sprPowerBar
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
   326
                     (FileName:    'WindBar'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   327
                      Width: 151; Height: 17; hasAlpha: false),// sprWindBar
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
   328
                     (FileName:      'WindL'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   329
                      Width:  80; Height: 13; hasAlpha: false),// sprWindL
689
f4ec46c48ed2 The rest of stuff converted to sprites
unc0rr
parents: 688
diff changeset
   330
                     (FileName:      'WindR'; Path: ptGraphics; AltPath: ptNone; Surface: nil;
708
6ee55ba9c8fe New animated switching sign
unc0rr
parents: 689
diff changeset
   331
                      Width:  80; Height: 13; hasAlpha: false) // sprWindR
35
9367f246fb5f - New rope
unc0rr
parents: 22
diff changeset
   332
                     );
688
e4d1fb310a66 Convert some stuff to sprites
unc0rr
parents: 621
diff changeset
   333
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   334
      Soundz: array[TSound] of record
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   335
                                       FileName: String[31];
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   336
                                       Path    : TPathType;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   337
                                       id      : PMixChunk;
282
b1e3387389b6 - Pickhammer sound
unc0rr
parents: 271
diff changeset
   338
                                       lastChan: LongInt;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   339
                                       end = (
467
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   340
                                       (FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   341
                                       (FileName:     'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   342
                                       (FileName:  'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   343
                                       (FileName:  'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   344
                                       (FileName:        'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   345
                                       (FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   346
                                       (FileName:   'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   347
                                       (FileName:   'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact
20d36f976b25 - Proper fix to get network byte order
unc0rr
parents: 454
diff changeset
   348
                                       (FileName:      'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks
559
6083fffc9e2f Desert Eagle sound
unc0rr
parents: 553
diff changeset
   349
                                       (FileName:    'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer
560
7bf2b554de0c UFO Sound
unc0rr
parents: 559
diff changeset
   350
                                       (FileName:           'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun
7bf2b554de0c UFO Sound
unc0rr
parents: 559
diff changeset
   351
                                       (FileName:           'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndUFO
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   352
                                       );
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   353
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   354
      Ammoz: array [TAmmoType] of record
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   355
                                  NameId: TAmmoStrId;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   356
                                  Probability, NumberInCase: Longword;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   357
                                  Ammo: TAmmo;
112
ca5f06017e99 Fix use of slot 8 and avoid such bug in future
unc0rr
parents: 109
diff changeset
   358
                                  Slot: 0..cMaxSlotIndex;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   359
                                  TimeAfterTurn: Longword;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   360
                                  minAngle, maxAngle: Longword;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   361
                                  PosCount: Longword;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   362
                                  PosSprite: TSprite;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   363
                                  end = (
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   364
                                  (NameId: sidGrenade;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   365
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   366
                                   NumberInCase: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   367
                                   Ammo: (Propz: ammoprop_Timerable or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   368
                                                 ammoprop_Power;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   369
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   370
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   371
                                          Timer: 3000;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   372
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   373
                                          AmmoType: amGrenade);
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   374
                                   Slot: 1;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   375
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   376
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   377
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   378
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   379
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   380
                                  (NameId: sidClusterBomb;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   381
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   382
                                   NumberInCase: 3;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   383
                                   Ammo: (Propz: ammoprop_Timerable or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   384
                                                 ammoprop_Power;
78
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   385
                                          Count: 5;
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   386
                                          NumPerTurn: 0;
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   387
                                          Timer: 3000;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   388
                                          Pos: 0;
78
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   389
                                          AmmoType: amClusterBomb);
66bb79dd248d Cluster bomb
unc0rr
parents: 75
diff changeset
   390
                                   Slot: 1;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   391
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   392
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   393
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   394
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   395
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   396
                                  (NameId: sidBazooka;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   397
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   398
                                   NumberInCase: 1;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   399
                                   Ammo: (Propz: ammoprop_Power;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   400
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   401
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   402
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   403
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   404
                                          AmmoType: amBazooka);
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   405
                                   Slot: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   406
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   407
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   408
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   409
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   410
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   411
                                  (NameId: sidUFO;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   412
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   413
                                   NumberInCase: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   414
                                   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
   415
                                                 ammoprop_NeedTarget or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   416
                                                 ammoprop_DontHold;
56
a29135563e94 - Replaced water sprite
unc0rr
parents: 55
diff changeset
   417
                                          Count: 2;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   418
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   419
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   420
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   421
                                          AmmoType: amUFO);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   422
                                   Slot: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   423
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   424
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   425
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   426
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   427
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   428
                                  (NameId: sidShotgun;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   429
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   430
                                   NumberInCase: 1;
95
1ef5e2c41115 - Fixed compilation
unc0rr
parents: 83
diff changeset
   431
                                   Ammo: (Propz: ammoprop_ForwMsgs;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   432
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   433
                                          NumPerTurn: 1;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   434
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   435
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   436
                                          AmmoType: amShotgun);
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   437
                                   Slot: 2;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   438
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   439
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   440
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   441
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   442
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   443
                                  (NameId: sidPickHammer;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   444
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   445
                                   NumberInCase: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   446
                                   Ammo: (Propz: ammoprop_ForwMsgs or
542
ec26095f1bed - Get rid of ammoProp_AttackInFall and gstFalling
unc0rr
parents: 534
diff changeset
   447
                                                 ammoprop_AttackInMove or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   448
                                                 ammoprop_NoCrosshair or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   449
                                                 ammoprop_DontHold;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   450
                                          Count: 2;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   451
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   452
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   453
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   454
                                          AmmoType: amPickHammer);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   455
                                   Slot: 6;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   456
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   457
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   458
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   459
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   460
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   461
                                  (NameId: sidSkip;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   462
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   463
                                   NumberInCase: 1;
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   464
                                   Ammo: (Propz: ammoprop_DontHold;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   465
                                          Count: AMMO_INFINITE;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   466
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   467
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   468
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   469
                                          AmmoType: amSkip);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   470
                                   Slot: 8;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   471
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   472
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   473
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   474
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   475
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   476
                                  (NameId: sidRope;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   477
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   478
                                   NumberInCase: 3;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   479
                                   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
   480
                                                 ammoprop_AttackInMove or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   481
                                                 ammoprop_DontHold;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   482
                                          Count: 5;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   483
                                          NumPerTurn: 0;
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   484
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   485
                                          Pos: 0;
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   486
                                          AmmoType: amRope);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   487
                                   Slot: 7;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   488
                                   TimeAfterTurn: 0;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   489
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   490
                                   maxAngle: cMaxAngle div 2;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   491
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   492
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   493
                                  (NameId: sidMine;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   494
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   495
                                   NumberInCase: 1;
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   496
                                   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
   497
                                                 ammoprop_DontHold;
56
a29135563e94 - Replaced water sprite
unc0rr
parents: 55
diff changeset
   498
                                          Count: 2;
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   499
                                          NumPerTurn: 0;
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   500
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   501
                                          Pos: 0;
10
edf56dca1587 - Mine weapon
unc0rr
parents: 9
diff changeset
   502
                                          AmmoType: amMine);
79
29b477319854 - New test map
unc0rr
parents: 78
diff changeset
   503
                                   Slot: 4;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   504
                                   TimeAfterTurn: 5000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   505
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   506
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   507
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   508
                                   PosSprite: sprWater),
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 79
diff changeset
   509
                                  (NameId: sidDEagle;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   510
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   511
                                   NumberInCase: 2;
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   512
                                   Ammo: (Propz: 0;
75
d2b737858ff7 - New First Aid powerup
unc0rr
parents: 74
diff changeset
   513
                                          Count: 3;
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   514
                                          NumPerTurn: 3;
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   515
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   516
                                          Pos: 0;
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   517
                                          AmmoType: amDEagle);
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   518
                                   Slot: 2;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   519
                                   TimeAfterTurn: 3000;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   520
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   521
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   522
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   523
                                   PosSprite: sprWater),
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   524
                                  (NameId: sidDynamite;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   525
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   526
                                   NumberInCase: 1;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   527
                                   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
   528
                                                 ammoprop_AttackInMove or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   529
                                                 ammoprop_DontHold;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   530
                                          Count: 1;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   531
                                          NumPerTurn: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   532
                                          Timer: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   533
                                          Pos: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   534
                                          AmmoType: amDynamite);
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   535
                                   Slot: 4;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   536
                                   TimeAfterTurn: 5000;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   537
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   538
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   539
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   540
                                   PosSprite: sprWater),
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   541
                                  (NameId: sidFirePunch;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   542
                                   Probability: 0;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   543
                                   NumberInCase: 1;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   544
                                   Ammo: (Propz: ammoprop_NoCrosshair or
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   545
                                                 ammoprop_ForwMsgs or
542
ec26095f1bed - Get rid of ammoProp_AttackInFall and gstFalling
unc0rr
parents: 534
diff changeset
   546
                                                 ammoprop_AttackInMove;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   547
                                          Count: AMMO_INFINITE;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   548
                                          NumPerTurn: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   549
                                          Timer: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   550
                                          Pos: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   551
                                          AmmoType: amFirePunch);
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   552
                                   Slot: 3;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   553
                                   TimeAfterTurn: 3000;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   554
                                   MinAngle: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   555
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   556
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   557
                                   PosSprite: sprWater),
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   558
                                  (NameId: sidBaseballBat;
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: 1;
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   561
                                   Ammo: (Propz: ammoprop_DontHold;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   562
                                          Count: 1;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   563
                                          NumPerTurn: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   564
                                          Timer: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   565
                                          Pos: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   566
                                          AmmoType: amBaseballBat);
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   567
                                   Slot: 3;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   568
                                   TimeAfterTurn: 5000;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   569
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   570
                                   maxAngle: cMaxAngle div 2;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   571
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   572
                                   PosSprite: sprWater),
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   573
                                  (NameId: sidParachute;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   574
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   575
                                   NumberInCase: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   576
                                   Ammo: (Propz: ammoprop_ForwMsgs or
542
ec26095f1bed - Get rid of ammoProp_AttackInFall and gstFalling
unc0rr
parents: 534
diff changeset
   577
                                                 ammoprop_AttackInMove or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   578
                                                 ammoprop_NoCrosshair or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   579
                                                 ammoprop_DontHold;
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   580
                                          Count: 2;
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   581
                                          NumPerTurn: 0;
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   582
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   583
                                          Pos: 0;
211
558476056205 Parachute
unc0rr
parents: 202
diff changeset
   584
                                          AmmoType: amParachute);
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   585
                                   Slot: 7;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   586
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   587
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   588
                                   maxAngle: 0;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   589
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   590
                                   PosSprite: sprWater),
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   591
                                  (NameId: sidAirAttack;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   592
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   593
                                   NumberInCase: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   594
                                   Ammo: (Propz: ammoprop_NoCrosshair or
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   595
                                                 ammoprop_NeedTarget or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   596
                                                 ammoprop_AttackingPut or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   597
                                                 ammoprop_DontHold;
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   598
                                          Count: 1;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   599
                                          NumPerTurn: 0;
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   600
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   601
                                          Pos: 0;
263
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   602
                                          AmmoType: amAirAttack);
36379e6abcdd - Health tags over drowned hedgehogs
unc0rr
parents: 211
diff changeset
   603
                                   Slot: 5;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   604
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   605
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   606
                                   maxAngle: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   607
                                   PosCount: 2;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   608
                                   PosSprite: sprAmAirplane),
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   609
                                  (NameId: sidMineStrike;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   610
                                   Probability: 400;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   611
                                   NumberInCase: 1;
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   612
                                   Ammo: (Propz: ammoprop_NoCrosshair or
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   613
                                                 ammoprop_NeedTarget or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   614
                                                 ammoprop_AttackingPut or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   615
                                                 ammoprop_DontHold;
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   616
                                          Count: 1;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   617
                                          NumPerTurn: 0;
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   618
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   619
                                          Pos: 0;
285
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   620
                                          AmmoType: amMineStrike);
cdab49768c83 Mine Strike weapon
unc0rr
parents: 283
diff changeset
   621
                                   Slot: 5;
351
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   622
                                   TimeAfterTurn: 0;
29bc9c36ad5f Fixed-point arithmetics in engine.
unc0rr
parents: 307
diff changeset
   623
                                   minAngle: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   624
                                   maxAngle: 0;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   625
                                   PosCount: 2;
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   626
                                   PosSprite: sprAmAirplane),
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   627
                                  (NameId: sidBlowTorch;
394
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   628
                                   Probability: 100;
4c017ae1226a - Implement hack to let ammo stores work without needed assistance of frontend
unc0rr
parents: 393
diff changeset
   629
                                   NumberInCase: 2;
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   630
                                   Ammo: (Propz: ammoprop_ForwMsgs;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   631
                                          Count: 1;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   632
                                          NumPerTurn: 0;
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   633
                                          Timer: 0;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   634
                                          Pos: 0;
302
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   635
                                          AmmoType: amBlowTorch);
7aca131ecd7f First implementation of Blow Torch
unc0rr
parents: 300
diff changeset
   636
                                   Slot: 6;
304
8096e69e839e Attack angle constraints
unc0rr
parents: 302
diff changeset
   637
                                   TimeAfterTurn: 3000;
305
1c1cd66ffcdc Better blowtorch
unc0rr
parents: 304
diff changeset
   638
                                   minAngle: 768;
408
6c3da4907d00 Airplane can fly from right to left
unc0rr
parents: 394
diff changeset
   639
                                   maxAngle: 1280;
495
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   640
                                   PosCount: 1;
62c1c2b4414c - Fix most of the warnings in hwengine
unc0rr
parents: 467
diff changeset
   641
                                   PosSprite: sprWater),
409
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   642
                                  (NameId: sidGirder;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   643
                                   Probability: 400;
411
fe3a3bd0512f Increased number of construction tools in ammo case
unc0rr
parents: 409
diff changeset
   644
                                   NumberInCase: 3;
409
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   645
                                   Ammo: (Propz: ammoprop_NoCrosshair or
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   646
                                                 ammoprop_NeedTarget or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   647
                                                 ammoprop_AttackingPut or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   648
                                                 ammoprop_DontHold;
409
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   649
                                          Count: 1;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   650
                                          NumPerTurn: 0;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   651
                                          Timer: 0;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   652
                                          Pos: 0;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   653
                                          AmmoType: amGirder);
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   654
                                   Slot: 6;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   655
                                   TimeAfterTurn: 3000;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   656
                                   minAngle: 0;
4f1841929ccc Construction tool
unc0rr
parents: 408
diff changeset
   657
                                   maxAngle: 0;
423
5f4559ce7062 Better construction tool
unc0rr
parents: 411
diff changeset
   658
                                   PosCount: 8;
520
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   659
                                   PosSprite: sprAmGirder),
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   660
                                  (NameId: sidTeleport;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   661
                                   Probability: 400;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   662
                                   NumberInCase: 1;
525
ae21b8e86dd9 Teleported hedgehog picks up cases
unc0rr
parents: 522
diff changeset
   663
                                   Ammo: (Propz: ammoprop_ForwMsgs or
ae21b8e86dd9 Teleported hedgehog picks up cases
unc0rr
parents: 522
diff changeset
   664
                                                 ammoprop_NoCrosshair or
520
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   665
                                                 ammoprop_NeedTarget or
553
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   666
                                                 ammoprop_AttackingPut or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   667
                                                 ammoprop_DontHold;
520
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   668
                                          Count: 2;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   669
                                          NumPerTurn: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   670
                                          Timer: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   671
                                          Pos: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   672
                                          AmmoType: amTeleport);
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   673
                                   Slot: 7;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   674
                                   TimeAfterTurn: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   675
                                   minAngle: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   676
                                   maxAngle: 0;
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   677
                                   PosCount: 1;
534
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   678
                                   PosSprite: sprWater),
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   679
                                  (NameId: sidSwitch;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   680
                                   Probability: 100;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   681
                                   NumberInCase: 1;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   682
                                   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
   683
                                                 ammoprop_NoCrosshair or
5478386d935f - Switch to bazooka (or whatever) after use of some weapon (fixes problem with bots)
unc0rr
parents: 547
diff changeset
   684
                                                 ammoprop_DontHold;
534
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   685
                                          Count: 3;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   686
                                          NumPerTurn: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   687
                                          Timer: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   688
                                          Pos: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   689
                                          AmmoType: amSwitch);
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   690
                                   Slot: 8;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   691
                                   TimeAfterTurn: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   692
                                   minAngle: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   693
                                   maxAngle: 0;
92fb2b0d5117 - Fix some bugs
unc0rr
parents: 525
diff changeset
   694
                                   PosCount: 1;
520
e83dfb7ffead Teleportation tool
unc0rr
parents: 511
diff changeset
   695
                                   PosSprite: sprWater));
37
2b7f2a43b999 - Properly get seed in net game
unc0rr
parents: 35
diff changeset
   696
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   697
implementation
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   698
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 2
diff changeset
   699
end.