Raised This Month: $ Target: $400
 0% 

Entity only takedamage from knife


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-18-2018 , 14:58   Re: Entity only takedamage from knife
Reply With Quote #1

PHP Code:
if(!g_HamReg)
    {
        
g_HamReg 1
        
//client_print(0, print_console, "Ham Registered")
        //RegisterHamFromEntity(Ham_TakeDamage, Ent, "fw_BossTakeDamage")
        
RegisterHamFromEntity(Ham_TraceAttackEnt"fw_BossTraceAttack")
    }

    
g_Test Ent
}

public 
fw_BossTraceAttack(EntAttackerFloat:DamageFloat:Dir[3], ptrDamageType)
{
    
client_print(Attackerprint_center"%.f"Damage)

Shotgun also didn't work. Only Knife.
I also disabled all other plugins (to make sure it isn't cost by other plugins).
I switched from takedamage to traceattack. Still only knife deal damage but not other.
__________________
My plugin:

Last edited by Celena Luna; 07-18-2018 at 15:01.
Celena Luna is offline
Reply



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 12:51.


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