Hey there,
So, I am using a Grim Reaper version with SH_DMG_KILL as it doesn't do like 10000 damage unlike the version with that hammethod you guys helped me with earlier. The problem with my SH_DMG_KILL thing is that it doesn't always kill in one hit, but it does sometimes. It does not matter how much hp the victim have left.
Heres my code:
PHP Code:
// Grim Reaper
#include <superheromod>
new gHeroID;
new bool:gHasGrim[SH_MAXSLOTS+1];
//-----------------------------------------------------------------------------
public plugin_init()
{
register_plugin("SUPERHERO Grim Reaper", "0.1", "Author");
new pLevel = register_cvar("grimreaper_level", "8");
gHeroID = sh_create_hero("Grim Reaper", pLevel);
sh_set_hero_info(gHeroID, "Rawr!", "Knife = 1 Hit KO");
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
}
//-----------------------------------------------------------------------------
public sh_hero_init(id, heroID, mode)
if ( gHeroID == heroID )
gHasGrim[id] = mode ? true : false;
//-----------------------------------------------------------------------------
public client_damage(attacker, victim)
{
if (victim != attacker && is_user_connected(attacker) )
if ( sh_is_active() && gHasGrim[attacker] && pev(attacker, pev_button) & IN_ATTACK2 && get_user_weapon(attacker) == CSW_KNIFE )
sh_extra_damage(victim, attacker, 1, "knife", 0, SH_DMG_KILL )
}
I was thinking that maybe making the damage higher? That is the third param, which I currently set to one.
Any ideas?
Exploited
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts