AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What does this code do? (https://forums.alliedmods.net/showthread.php?t=223134)

proffs 08-10-2013 05:38

What does this code do?
 
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;



Black Rose 08-10-2013 05:52

Re: What does this code do?
 
Looks like it.

simanovich 08-10-2013 08:47

Re: What does this code do?
 
Quote:

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


All times are GMT -4. The time now is 15:59.

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