When you play in classical CS 1.6 server, if you shoot a human, who has bought armor, at the head, his head will release sparkles. Sparkles won't be released from a human who has no armor.
The following plugin is about giving armor to human bots:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#define EXCLUDED_WEAPONS (1<<2 | 1<<CSW_KNIFE | 1<<CSW_HEGRENADE | 1<<CSW_FLASHBANG | 1<<CSW_SMOKEGRENADE | 1<<CSW_C4)
public plugin_init()
{
register_plugin("No Recoil Bots", "1.0", "OciXCrom")
new szWeapon[18]
for(new i = CSW_P228; i <= CSW_P90; i++)
{
if(!(EXCLUDED_WEAPONS & (1<<i)) && get_weaponname(i, szWeapon, charsmax(szWeapon)))
{
RegisterHam(Ham_Weapon_PrimaryAttack, szWeapon, "OnPrimaryAttack", 1)
}
}
RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1)
}
public OnPrimaryAttack(iEnt)
{
static id
id = pev(iEnt, pev_owner)
if(is_user_bot(id))
{
set_pev(id, pev_punchangle, {0.0, 0.0, 0.0})
}
}
public OnPlayerSpawn(id)
{
if(is_user_alive(id) && is_user_bot(id))
{
cs_set_user_armor(id, 200, CS_ARMOR_VESTHELM)
}
}
The problem is that this plugin makes zombies release sparkles from their heads, when shot at the head, as if they have armor, despite the fact they have 0 armor.
Can someone fix this problem? I don't want zombies to release sparkles from their head, as if they have armor.