AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP][Addon] No fall damage for zombies (https://forums.alliedmods.net/showthread.php?t=91862)

Sn!ff3r 05-06-2009 18:39

[ZP][Addon] No fall damage for zombies
 
1 Attachment(s)
Next simple plugin, that disables fall damage for all zombies.

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "No fall damage for zombies"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define DMG_FALL (1<<5)

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(!(
damage_type DMG_FALL))
        return 
HAM_IGNORED
    
    
if(!zp_get_user_zombie(victim))
        return 
HAM_IGNORED
    
    
return HAM_SUPERCEDE



meTaLiCroSS 05-06-2009 20:40

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by Sn!ff3r (Post 822593)
Next simple plugin, that disables fall damage for all zombies.

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "No fall damage for zombies"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define DMG_FALL (1<<5)

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(!(
damage_type DMG_FALL))
        return 
HAM_IGNORED
    
    
if(!zp_get_user_zombie(victim))
        return 
HAM_IGNORED
    
    
return HAM_SUPERCEDE



Another good plugin by Sniffer :D

killer2100 07-12-2010 07:05

Re: [ZP][Addon] No fall damage for zombies
 
man i love this forum :D

lucas_7_94 07-12-2010 11:28

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by killer2100 (Post 1236472)
man i love this forum :D


stop revive threads retard.

meTaLiCroSS 07-12-2010 11:50

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by lucas_7_94 (Post 1236698)
stop revive threads retard.

Luqenglish language rulz.

sk@.@ 07-13-2010 07:17

Re: [ZP][Addon] No fall damage for zombies
 
BOT not ok !??

you will

Quote:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "No fall damage for zombies"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define DMG_FALL (1<<5)

new cvar_botquota
new bool:BotHasDebug = false

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")

cvar_botquota = get_cvar_pointer("bot_quota")
}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if (!(damage_type & DMG_FALL))
return HAM_IGNORED

if (!zp_get_user_zombie(victim))
return HAM_IGNORED

return HAM_SUPERCEDE
}

public client_putinserver(id)
{
if (!cvar_botquota || !is_user_bot(id) || BotHasDebug)
return;

new classname[32]
pev(id, pev_classname, classname, 31)

if (!equal(classname, "player"))
set_task(0.1, "_Debug", id)
}

public _Debug(id)
{
if (!get_pcvar_num(cvar_botquota) || !is_user_connected(id))
return;

BotHasDebug = true
RegisterHamFromEntity(Ham_TraceAttack, id, "fw_TraceAttack")
}

georgik57 07-13-2010 12:17

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by meTaLiCroSS (Post 1236718)
Luqenglish language rulz.

hahahahaaahha

lucas_7_94 07-14-2010 08:41

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by meTaLiCroSS (Post 1236718)
Luqenglish language rulz.

Quote:

Originally Posted by abdul-rehman (Post 1238653)
You need to pay more attention during your english lesson classes
Learn english first

sorry , i rocks.

abdul-rehman 07-14-2010 09:48

Re: [ZP][Addon] No fall damage for zombies
 
Quote:

Originally Posted by lucas_7_94 (Post 1238802)
sorry , i rocks.

Hahaha :lol: :lol:


All times are GMT -4. The time now is 16:57.

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