Raised This Month: $ Target: $400
 0% 

What does this code do?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 08-10-2013 , 05:38   What does this code do?
Reply With Quote #1

I need to know what this code does.

Does it makes T cant take damage on CT?


PHP Code:
public Ham_PlayerTakeDamage_PreiVictimiInflictoriAttackerFloat:flDamageiBits )
{
    if( 
g_iCurrentGame == GAME_NO || !is_user_connectediVictim ) || !is_user_aliveiAttacker ) )
        return 
HAM_IGNORED;
        
    if( 
cs_get_user_teamiVictim ) == CS_TEAM_CT && cs_get_user_teamiAttacker ) == CS_TEAM_T )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

proffs is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-10-2013 , 05:52   Re: What does this code do?
Reply With Quote #2

Looks like it.
__________________
Black Rose is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 08-10-2013 , 08:47   Re: What does this code do?
Reply With Quote #3

Quote:
Does it makes T cant take damage on CT?
If g_iCurrentGame doesn't equal to GAME_NO then yes.
__________________

Last edited by simanovich; 08-10-2013 at 08:48.
simanovich is offline
Reply


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 15:59.


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