hedgewars/uConsts.pas
changeset 843 27b5180d0988
parent 834 5687fa57a6c1
child 844 9a82149409f3
equal deleted inserted replaced
842:fae2fae2fe8d 843:27b5180d0988
   390                 (FileName:    'Firstblood.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndFirstBlood
   390                 (FileName:    'Firstblood.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndFirstBlood
   391                 );
   391                 );
   392 
   392 
   393       Ammoz: array [TAmmoType] of record
   393       Ammoz: array [TAmmoType] of record
   394                                   NameId: TAmmoStrId;
   394                                   NameId: TAmmoStrId;
       
   395                                   NameTex: PTexture;
   395                                   Probability, NumberInCase: Longword;
   396                                   Probability, NumberInCase: Longword;
   396                                   Ammo: TAmmo;
   397                                   Ammo: TAmmo;
   397                                   Slot: 0..cMaxSlotIndex;
   398                                   Slot: 0..cMaxSlotIndex;
   398                                   TimeAfterTurn: Longword;
   399                                   TimeAfterTurn: Longword;
   399                                   minAngle, maxAngle: Longword;
   400                                   minAngle, maxAngle: Longword;
   400                                   isDamaging: boolean;
   401                                   isDamaging: boolean;
   401                                   PosCount: Longword;
   402                                   PosCount: Longword;
   402                                   PosSprite: TSprite;
   403                                   PosSprite: TSprite;
   403                                   end = (
   404                                   end = (
   404                                   (NameId: sidGrenade;
   405                                   (NameId: sidGrenade;
       
   406                                    NameTex: nil;
   405                                    Probability: 0;
   407                                    Probability: 0;
   406                                    NumberInCase: 1;
   408                                    NumberInCase: 1;
   407                                    Ammo: (Propz: ammoprop_Timerable or
   409                                    Ammo: (Propz: ammoprop_Timerable or
   408                                                  ammoprop_Power;
   410                                                  ammoprop_Power;
   409                                           Count: AMMO_INFINITE;
   411                                           Count: AMMO_INFINITE;
   417                                    maxAngle: 0;
   419                                    maxAngle: 0;
   418                                    isDamaging: true;
   420                                    isDamaging: true;
   419                                    PosCount: 1;
   421                                    PosCount: 1;
   420                                    PosSprite: sprWater),
   422                                    PosSprite: sprWater),
   421                                   (NameId: sidClusterBomb;
   423                                   (NameId: sidClusterBomb;
       
   424                                    NameTex: nil;
   422                                    Probability: 100;
   425                                    Probability: 100;
   423                                    NumberInCase: 3;
   426                                    NumberInCase: 3;
   424                                    Ammo: (Propz: ammoprop_Timerable or
   427                                    Ammo: (Propz: ammoprop_Timerable or
   425                                                  ammoprop_Power;
   428                                                  ammoprop_Power;
   426                                           Count: 5;
   429                                           Count: 5;
   434                                    maxAngle: 0;
   437                                    maxAngle: 0;
   435                                    isDamaging: true;
   438                                    isDamaging: true;
   436                                    PosCount: 1;
   439                                    PosCount: 1;
   437                                    PosSprite: sprWater),
   440                                    PosSprite: sprWater),
   438                                   (NameId: sidBazooka;
   441                                   (NameId: sidBazooka;
       
   442                                    NameTex: nil;
   439                                    Probability: 0;
   443                                    Probability: 0;
   440                                    NumberInCase: 1;
   444                                    NumberInCase: 1;
   441                                    Ammo: (Propz: ammoprop_Power;
   445                                    Ammo: (Propz: ammoprop_Power;
   442                                           Count: AMMO_INFINITE;
   446                                           Count: AMMO_INFINITE;
   443                                           NumPerTurn: 0;
   447                                           NumPerTurn: 0;
   450                                    maxAngle: 0;
   454                                    maxAngle: 0;
   451                                    isDamaging: true;
   455                                    isDamaging: true;
   452                                    PosCount: 1;
   456                                    PosCount: 1;
   453                                    PosSprite: sprWater),
   457                                    PosSprite: sprWater),
   454                                   (NameId: sidUFO;
   458                                   (NameId: sidUFO;
       
   459                                    NameTex: nil;
   455                                    Probability: 100;
   460                                    Probability: 100;
   456                                    NumberInCase: 1;
   461                                    NumberInCase: 1;
   457                                    Ammo: (Propz: ammoprop_Power or
   462                                    Ammo: (Propz: ammoprop_Power or
   458                                                  ammoprop_NeedTarget or
   463                                                  ammoprop_NeedTarget or
   459                                                  ammoprop_DontHold;
   464                                                  ammoprop_DontHold;
   468                                    maxAngle: 0;
   473                                    maxAngle: 0;
   469                                    isDamaging: true;
   474                                    isDamaging: true;
   470                                    PosCount: 1;
   475                                    PosCount: 1;
   471                                    PosSprite: sprWater),
   476                                    PosSprite: sprWater),
   472                                   (NameId: sidShotgun;
   477                                   (NameId: sidShotgun;
       
   478                                    NameTex: nil;
   473                                    Probability: 0;
   479                                    Probability: 0;
   474                                    NumberInCase: 1;
   480                                    NumberInCase: 1;
   475                                    Ammo: (Propz: ammoprop_ForwMsgs;
   481                                    Ammo: (Propz: ammoprop_ForwMsgs;
   476                                           Count: AMMO_INFINITE;
   482                                           Count: AMMO_INFINITE;
   477                                           NumPerTurn: 1;
   483                                           NumPerTurn: 1;
   484                                    maxAngle: 0;
   490                                    maxAngle: 0;
   485                                    isDamaging: true;
   491                                    isDamaging: true;
   486                                    PosCount: 1;
   492                                    PosCount: 1;
   487                                    PosSprite: sprWater),
   493                                    PosSprite: sprWater),
   488                                   (NameId: sidPickHammer;
   494                                   (NameId: sidPickHammer;
       
   495                                    NameTex: nil;
   489                                    Probability: 0;
   496                                    Probability: 0;
   490                                    NumberInCase: 1;
   497                                    NumberInCase: 1;
   491                                    Ammo: (Propz: ammoprop_ForwMsgs or
   498                                    Ammo: (Propz: ammoprop_ForwMsgs or
   492                                                  ammoprop_AttackInMove or
   499                                                  ammoprop_AttackInMove or
   493                                                  ammoprop_NoCrosshair or
   500                                                  ammoprop_NoCrosshair or
   503                                    maxAngle: 0;
   510                                    maxAngle: 0;
   504                                    isDamaging: false;
   511                                    isDamaging: false;
   505                                    PosCount: 1;
   512                                    PosCount: 1;
   506                                    PosSprite: sprWater),
   513                                    PosSprite: sprWater),
   507                                   (NameId: sidSkip;
   514                                   (NameId: sidSkip;
       
   515                                    NameTex: nil;
   508                                    Probability: 0;
   516                                    Probability: 0;
   509                                    NumberInCase: 1;
   517                                    NumberInCase: 1;
   510                                    Ammo: (Propz: ammoprop_DontHold;
   518                                    Ammo: (Propz: ammoprop_DontHold;
   511                                           Count: AMMO_INFINITE;
   519                                           Count: AMMO_INFINITE;
   512                                           NumPerTurn: 0;
   520                                           NumPerTurn: 0;
   519                                    maxAngle: 0;
   527                                    maxAngle: 0;
   520                                    isDamaging: false;
   528                                    isDamaging: false;
   521                                    PosCount: 1;
   529                                    PosCount: 1;
   522                                    PosSprite: sprWater),
   530                                    PosSprite: sprWater),
   523                                   (NameId: sidRope;
   531                                   (NameId: sidRope;
       
   532                                    NameTex: nil;
   524                                    Probability: 100;
   533                                    Probability: 100;
   525                                    NumberInCase: 3;
   534                                    NumberInCase: 3;
   526                                    Ammo: (Propz: ammoprop_ForwMsgs or
   535                                    Ammo: (Propz: ammoprop_ForwMsgs or
   527                                                  ammoprop_AttackInMove or
   536                                                  ammoprop_AttackInMove or
   528                                                  ammoprop_DontHold;
   537                                                  ammoprop_DontHold;
   537                                    maxAngle: cMaxAngle div 2;
   546                                    maxAngle: cMaxAngle div 2;
   538                                    isDamaging: false;
   547                                    isDamaging: false;
   539                                    PosCount: 1;
   548                                    PosCount: 1;
   540                                    PosSprite: sprWater),
   549                                    PosSprite: sprWater),
   541                                   (NameId: sidMine;
   550                                   (NameId: sidMine;
       
   551                                    NameTex: nil;
   542                                    Probability: 100;
   552                                    Probability: 100;
   543                                    NumberInCase: 1;
   553                                    NumberInCase: 1;
   544                                    Ammo: (Propz: ammoprop_NoCrosshair or
   554                                    Ammo: (Propz: ammoprop_NoCrosshair or
   545                                                  ammoprop_DontHold;
   555                                                  ammoprop_DontHold;
   546                                           Count: 2;
   556                                           Count: 2;
   554                                    maxAngle: 0;
   564                                    maxAngle: 0;
   555                                    isDamaging: true;
   565                                    isDamaging: true;
   556                                    PosCount: 1;
   566                                    PosCount: 1;
   557                                    PosSprite: sprWater),
   567                                    PosSprite: sprWater),
   558                                   (NameId: sidDEagle;
   568                                   (NameId: sidDEagle;
       
   569                                    NameTex: nil;
   559                                    Probability: 100;
   570                                    Probability: 100;
   560                                    NumberInCase: 2;
   571                                    NumberInCase: 2;
   561                                    Ammo: (Propz: 0;
   572                                    Ammo: (Propz: 0;
   562                                           Count: 3;
   573                                           Count: 3;
   563                                           NumPerTurn: 3;
   574                                           NumPerTurn: 3;
   570                                    maxAngle: 0;
   581                                    maxAngle: 0;
   571                                    isDamaging: true;
   582                                    isDamaging: true;
   572                                    PosCount: 1;
   583                                    PosCount: 1;
   573                                    PosSprite: sprWater),
   584                                    PosSprite: sprWater),
   574                                   (NameId: sidDynamite;
   585                                   (NameId: sidDynamite;
       
   586                                    NameTex: nil;
   575                                    Probability: 100;
   587                                    Probability: 100;
   576                                    NumberInCase: 1;
   588                                    NumberInCase: 1;
   577                                    Ammo: (Propz: ammoprop_NoCrosshair or
   589                                    Ammo: (Propz: ammoprop_NoCrosshair or
   578                                                  ammoprop_AttackInMove or
   590                                                  ammoprop_AttackInMove or
   579                                                  ammoprop_DontHold;
   591                                                  ammoprop_DontHold;
   588                                    maxAngle: 0;
   600                                    maxAngle: 0;
   589                                    isDamaging: true;
   601                                    isDamaging: true;
   590                                    PosCount: 1;
   602                                    PosCount: 1;
   591                                    PosSprite: sprWater),
   603                                    PosSprite: sprWater),
   592                                   (NameId: sidFirePunch;
   604                                   (NameId: sidFirePunch;
       
   605                                    NameTex: nil;
   593                                    Probability: 0;
   606                                    Probability: 0;
   594                                    NumberInCase: 1;
   607                                    NumberInCase: 1;
   595                                    Ammo: (Propz: ammoprop_NoCrosshair or
   608                                    Ammo: (Propz: ammoprop_NoCrosshair or
   596                                                  ammoprop_ForwMsgs or
   609                                                  ammoprop_ForwMsgs or
   597                                                  ammoprop_AttackInMove;
   610                                                  ammoprop_AttackInMove;
   606                                    maxAngle: 0;
   619                                    maxAngle: 0;
   607                                    isDamaging: true;
   620                                    isDamaging: true;
   608                                    PosCount: 1;
   621                                    PosCount: 1;
   609                                    PosSprite: sprWater),
   622                                    PosSprite: sprWater),
   610                                   (NameId: sidBaseballBat;
   623                                   (NameId: sidBaseballBat;
       
   624                                    NameTex: nil;
   611                                    Probability: 100;
   625                                    Probability: 100;
   612                                    NumberInCase: 1;
   626                                    NumberInCase: 1;
   613                                    Ammo: (Propz: ammoprop_DontHold;
   627                                    Ammo: (Propz: ammoprop_DontHold;
   614                                           Count: 1;
   628                                           Count: 1;
   615                                           NumPerTurn: 0;
   629                                           NumPerTurn: 0;
   622                                    maxAngle: cMaxAngle div 2;
   636                                    maxAngle: cMaxAngle div 2;
   623                                    isDamaging: true;
   637                                    isDamaging: true;
   624                                    PosCount: 1;
   638                                    PosCount: 1;
   625                                    PosSprite: sprWater),
   639                                    PosSprite: sprWater),
   626                                   (NameId: sidParachute;
   640                                   (NameId: sidParachute;
       
   641                                    NameTex: nil;
   627                                    Probability: 100;
   642                                    Probability: 100;
   628                                    NumberInCase: 1;
   643                                    NumberInCase: 1;
   629                                    Ammo: (Propz: ammoprop_ForwMsgs or
   644                                    Ammo: (Propz: ammoprop_ForwMsgs or
   630                                                  ammoprop_AttackInMove or
   645                                                  ammoprop_AttackInMove or
   631                                                  ammoprop_NoCrosshair or
   646                                                  ammoprop_NoCrosshair or
   641                                    maxAngle: 0;
   656                                    maxAngle: 0;
   642                                    isDamaging: false;
   657                                    isDamaging: false;
   643                                    PosCount: 1;
   658                                    PosCount: 1;
   644                                    PosSprite: sprWater),
   659                                    PosSprite: sprWater),
   645                                   (NameId: sidAirAttack;
   660                                   (NameId: sidAirAttack;
       
   661                                    NameTex: nil;
   646                                    Probability: 100;
   662                                    Probability: 100;
   647                                    NumberInCase: 1;
   663                                    NumberInCase: 1;
   648                                    Ammo: (Propz: ammoprop_NoCrosshair or
   664                                    Ammo: (Propz: ammoprop_NoCrosshair or
   649                                                  ammoprop_NeedTarget or
   665                                                  ammoprop_NeedTarget or
   650                                                  ammoprop_AttackingPut or
   666                                                  ammoprop_AttackingPut or
   660                                    maxAngle: 0;
   676                                    maxAngle: 0;
   661                                    isDamaging: true;
   677                                    isDamaging: true;
   662                                    PosCount: 2;
   678                                    PosCount: 2;
   663                                    PosSprite: sprAmAirplane),
   679                                    PosSprite: sprAmAirplane),
   664                                   (NameId: sidMineStrike;
   680                                   (NameId: sidMineStrike;
       
   681                                    NameTex: nil;
   665                                    Probability: 400;
   682                                    Probability: 400;
   666                                    NumberInCase: 1;
   683                                    NumberInCase: 1;
   667                                    Ammo: (Propz: ammoprop_NoCrosshair or
   684                                    Ammo: (Propz: ammoprop_NoCrosshair or
   668                                                  ammoprop_NeedTarget or
   685                                                  ammoprop_NeedTarget or
   669                                                  ammoprop_AttackingPut or
   686                                                  ammoprop_AttackingPut or
   679                                    maxAngle: 0;
   696                                    maxAngle: 0;
   680                                    isDamaging: true;
   697                                    isDamaging: true;
   681                                    PosCount: 2;
   698                                    PosCount: 2;
   682                                    PosSprite: sprAmAirplane),
   699                                    PosSprite: sprAmAirplane),
   683                                   (NameId: sidBlowTorch;
   700                                   (NameId: sidBlowTorch;
       
   701                                    NameTex: nil;
   684                                    Probability: 100;
   702                                    Probability: 100;
   685                                    NumberInCase: 2;
   703                                    NumberInCase: 2;
   686                                    Ammo: (Propz: ammoprop_ForwMsgs;
   704                                    Ammo: (Propz: ammoprop_ForwMsgs;
   687                                           Count: 1;
   705                                           Count: 1;
   688                                           NumPerTurn: 0;
   706                                           NumPerTurn: 0;
   695                                    maxAngle: 1280;
   713                                    maxAngle: 1280;
   696                                    isDamaging: false;
   714                                    isDamaging: false;
   697                                    PosCount: 1;
   715                                    PosCount: 1;
   698                                    PosSprite: sprWater),
   716                                    PosSprite: sprWater),
   699                                   (NameId: sidGirder;
   717                                   (NameId: sidGirder;
       
   718                                    NameTex: nil;
   700                                    Probability: 400;
   719                                    Probability: 400;
   701                                    NumberInCase: 3;
   720                                    NumberInCase: 3;
   702                                    Ammo: (Propz: ammoprop_NoCrosshair or
   721                                    Ammo: (Propz: ammoprop_NoCrosshair or
   703                                                  ammoprop_NeedTarget or
   722                                                  ammoprop_NeedTarget or
   704                                                  ammoprop_AttackingPut or
   723                                                  ammoprop_AttackingPut or
   714                                    maxAngle: 0;
   733                                    maxAngle: 0;
   715                                    isDamaging: false;
   734                                    isDamaging: false;
   716                                    PosCount: 8;
   735                                    PosCount: 8;
   717                                    PosSprite: sprAmGirder),
   736                                    PosSprite: sprAmGirder),
   718                                   (NameId: sidTeleport;
   737                                   (NameId: sidTeleport;
       
   738                                    NameTex: nil;
   719                                    Probability: 400;
   739                                    Probability: 400;
   720                                    NumberInCase: 1;
   740                                    NumberInCase: 1;
   721                                    Ammo: (Propz: ammoprop_ForwMsgs or
   741                                    Ammo: (Propz: ammoprop_ForwMsgs or
   722                                                  ammoprop_NoCrosshair or
   742                                                  ammoprop_NoCrosshair or
   723                                                  ammoprop_NeedTarget or
   743                                                  ammoprop_NeedTarget or
   734                                    maxAngle: 0;
   754                                    maxAngle: 0;
   735                                    isDamaging: false;
   755                                    isDamaging: false;
   736                                    PosCount: 1;
   756                                    PosCount: 1;
   737                                    PosSprite: sprWater),
   757                                    PosSprite: sprWater),
   738                                   (NameId: sidSwitch;
   758                                   (NameId: sidSwitch;
       
   759                                    NameTex: nil;
   739                                    Probability: 100;
   760                                    Probability: 100;
   740                                    NumberInCase: 1;
   761                                    NumberInCase: 1;
   741                                    Ammo: (Propz: ammoprop_ForwMsgs or
   762                                    Ammo: (Propz: ammoprop_ForwMsgs or
   742                                                  ammoprop_NoCrosshair or
   763                                                  ammoprop_NoCrosshair or
   743                                                  ammoprop_DontHold;
   764                                                  ammoprop_DontHold;