Raised This Month: $32 Target: $400
 8% 

[ZP] Zombies not to take damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 02-27-2011 , 12:45   [ZP] Zombies not to take damage
Reply With Quote #1

How to make zombies not to take damage from anything (like trigger_hurt; func_water etc.), but bullets (incl. fire, frost nades).
What to do with the hamsandwich stuff?
hellmoss is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 02-27-2011 , 16:46   Re: [ZP] Zombies not to take damage
Reply With Quote #2

PHP Code:


#include < amxmodx >
#include < hamsandwich >
#include < hlsdk_const >

#include < zombieplague >

const DMG_ALLDAMAGE DMG_CRUSH DMG_BURN DMG_SLASH DMG_FREEZE DMG_FALL DMG_BLAST DMG_CLUB DMG_SHOCK DMG_SONIC DMG_ENERGYBEAM DMG_DROWN DMG_PARALYZE DMG_NERVEGAS DMG_POISON DMG_RADIATION DMG_ACID DMG_MORTAR DMG_SLOWBURN DMG_SLOWFREEZE;

public 
plugin_init( )
{
    
register_plugin"[ZP] Zombie Damage NOT""1.0.1""tuty" );
    
    
RegisterHamHam_TakeDamage"player""bacon_TakeDamage" );
}

public 
bacon_TakeDamageclientinflictorattackerFloat:damagedamagebits )
{
    if( 
zp_get_user_zombieclient ) )
    {
        if( 
damagebits DMG_ALLDAMAGE )
            {
                    return 
HAM_SUPERCEDE;
            }
    }

        return 
HAM_IGNORED;

__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 03-01-2011 , 10:58   Re: [ZP] Zombies not to take damage
Reply With Quote #3

Oooh, now I see it's the hlsd_const include file. Thank You!
hellmoss 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 03:30.


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