Skip to content

Plugin adds pseudo-realism)

Code: fl0wer Description: When shooting an opponent in the arm, there is a small chance that several shots are forcibly fired.

PluginCounter-Strike 1.6Views:5

Description

Code: fl0wer

Description:
When shooting an opponent in the arm, there is a small chance that several shots are forcibly fired.

Pawn
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() RegisterHam(Ham_TakeDamage, "player", "CBasePlayer__TakeDamage_Post", 1)

public CBasePlayer__TakeDamage_Post(iVictim, iInflicator, iAttacker)
{
      if (!is_user_alive(iVictim) || iVictim == iAttacker)
            return;

      new m_LastHitGroup = get_pdata_int(iVictim, 75, 5);

      if (m_LastHitGroup != HIT_LEFTARM || m_LastHitGroup != HIT_RIGHTARM)
            return;

      if (random_num(0, 3))
            return;

      new iRandom = random_num(1, 5);

      for (new i = 0; i <= iRandom; i++) ExecuteHamB(Ham_Weapon_PrimaryAttack, get_pdata_cbase(iVictim, 373, 5))
}

Related

Pluginv1.8

Hats

AMX Mod X plugin for Counter-Strike. The plugin allows the player to wear hats on their heads. The main feature of this modification is the player's ability to choose a skin or a submodel of a headgear on his own and set which of them will be available exclusively to VIP players.

Pluginv0.3

Slot Machine

AMX Mod X plugin for Counter-Strike. The plugin allows you to place slot machines on the map and play them. The player places a bet and waits for a winning combination of symbols to appear. A victory is counted when a whole row or diagonal is filled with the same symbols.

Pluginv1.0

Costumes

This plugin adds costumes to your server; the models are compressed into one so as not to hit the server's limit. It can also be set up for ZombiePlague: to do so, uncomment the code // #define ZP_SUPPORT in the source and compile. Usage: /costumes - in chat to open the costumes menu…