Raised This Month: $ Target: $400
 0% 

Offset for TeamScore?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-06-2010 , 12:40   Re: Offset for TeamScore?
Reply With Quote #8

This is fantastic

Still a last question: I'm using Ham_TakeDamage to catch a damage and execute some stuff. How I get the hitplace? Is the hitplace already set in the offset?

PHP Code:
new const m_LastHitGroup 75

public ham_takedamage(iVictimiInflictoriAttackerFloat:fDamageiDmgBits){

    
//A grenade or c4 explode
    
if (iInflictor != iAttacker) return HAM_IGNORED

    
new szClassA[33]
    
pev(iAttackerpev_classnameszClassA32)

    if (
equal(szClassA"player")){
        new 
iWeapID get_user_weapon(iAttacker)

        if (
iHitPlace == HIT_HEAD){
            ....
        }
    }

    return 
HAM_IGNORED

Leon M. 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 03:39.


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