Raised This Month: $ Target: $400
 0% 

Weapon Id get WeaponName


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
uxMal
Member
Join Date: Oct 2007
Old 10-11-2009 , 14:20   Re: Weapon Id get WeaponName
Reply With Quote #3

Hmm thanks but thats not working either

and now i know why...

I use RegisterHam(Ham_TakeDamage,"player","dmg_func ")

ham_const.inc says

Code:
/**
     * Description:        Usually called whenever an entity takes any kind of damage.
     *                    Inflictor is the entity that caused the damage (such as a gun).
     *                    Attacker is the entity that tirggered the damage (such as the gun's owner).
     * Forward params:    function(this, idinflictor, idattacker, Float:damage, damagebits);
     * Return type:        Integer.
     * Execute params:    ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits);
     */
    Ham_TakeDamage,
But idinflictor and idattacker are the SAME ...

I dont want to use get_user_attacker because that returns the weapon the attacker is holding currently! if i throw a he and switch to an other weapon not the he is registered as an attacker but the other weapon
uxMal 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 22:41.


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