Raised This Month: $ Target: $400
 0% 

SH_DMG_KILL problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 01-08-2011 , 06:40   SH_DMG_KILL problems
Reply With Quote #1

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(idheroIDmode
    if ( 
gHeroID == heroID 
        
gHasGrim[id] = mode true false;     
//----------------------------------------------------------------------------- 
public client_damage(attackervictim)
{
    if (
victim != attacker && is_user_connected(attacker) ) 
    if ( 
sh_is_active() && gHasGrim[attacker] && pev(attackerpev_button) & IN_ATTACK2 && get_user_weapon(attacker) == CSW_KNIFE )
        
sh_extra_damage(victimattacker1"knife"0SH_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
Exploited is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode