View Single Post
SyluxLockjaw100
Senior Member
Join Date: Jul 2010
Location: Novaya Russia
Old 05-03-2013 , 22:00   Re: Zombies not being immune to damage types.
Reply With Quote #3

Quote:
Originally Posted by yokomo View Post
Yo Najwa Latif,

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(!
zp_core_is_zombie(victim) || zp_class_zombie_get_current(victim) != g_ZombieClassID) return HAM_IGNORED;
        
    if(
damage_type DMG_BURN || damage_type DMG_SLOWBURN 
    
|| damage_type DMG_FREEZE || damage_type DMG_SLOWFREEZE 
    
|| damage_type DMG_DROWN || damage_type DMG_SHOCK) return HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

Thanks bro.
SyluxLockjaw100 is offline