Raised This Month: $ Target: $400
 0% 

TakeDamage & trigger_hurt problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 04-06-2009 , 15:39   TakeDamage & trigger_hurt problem
Reply With Quote #1

Hi I have this code:

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (!
get_pcvar_num(cvar_godmode))
        return 
HAM_IGNORED
    
    
if (g_godmode[attacker])
    {
        
set_user_hitzones(0attacker255)
        
g_godmode[attacker] = false
    
}
    
    return 
HAM_IGNORED

In the map surf_ninja when I fall, the trigger_hurt fails (not ever). If I disable the function "TakeDamage" now the trigger_hurt works fine. What is wrong?

Some pics...

[IMG]http://img12.**************/img12/5193/surfninja0000.th.jpg[/IMG]
[IMG]http://img19.**************/img19/82/surfninja0001.th.jpg[/IMG]
[IMG]http://img12.**************/img12/2923/surfninja0002.th.jpg[/IMG]

Thanks
__________________
ILUSION is offline
 


Thread Tools
Display Modes

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 02:27.


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