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

[ZP][Addon] No fall damage for zombies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-06-2009 , 18:39   [ZP][Addon] No fall damage for zombies
Reply With Quote #1

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

Attached Files
File Type: sma Get Plugin or Get Source (zp_nofalldamage.sma - 4059 views - 611 Bytes)
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 05-06-2009 , 20:40   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #2

Quote:
Originally Posted by Sn!ff3r View Post
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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
killer2100
Member
Join Date: Apr 2010
Location: Ireland (Not Irish)
Old 07-12-2010 , 07:05   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #3

man i love this forum
__________________
Im New To Cs Zombie Mode, Making My Own Server, Always Accept Help
killer2100 is offline
Send a message via Skype™ to killer2100
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-12-2010 , 11:28   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #4

Quote:
Originally Posted by killer2100 View Post
man i love this forum

stop revive threads retard.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-12-2010 , 11:50   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #5

Quote:
Originally Posted by lucas_7_94 View Post
stop revive threads retard.
Luqenglish language rulz.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
sk@.@
Senior Member
Join Date: Feb 2010
Location: Hong Kong
Old 07-13-2010 , 07:17   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #6

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")
}
__________________
This is my Game-Blog:
http://hsk-game.blogspot.hk/
sk@.@ is offline
Send a message via MSN to sk@.@
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-13-2010 , 12:17   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #7

Quote:
Originally Posted by meTaLiCroSS View Post
Luqenglish language rulz.
hahahahaaahha
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-14-2010 , 08:41   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #8

Quote:
Originally Posted by meTaLiCroSS View Post
Luqenglish language rulz.
Quote:
Originally Posted by abdul-rehman View Post
You need to pay more attention during your english lesson classes
Learn english first
sorry , i rocks.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-14-2010 , 09:48   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #9

Quote:
Originally Posted by lucas_7_94 View Post
sorry , i rocks.
Hahaha
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Reply



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 16:50.


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