Monthly Target: $400 Donations: $242
 60% 

No fall damage (Eliminates damage from falling!!)


Post New Thread Reply   
 
Thread Tools Display Modes
spider853
Senior Member
Join Date: Jul 2006
Old 06-28-2007 , 13:10   Re: No fall damage 0.2
Reply With Quote #21

what about
entity_set_int(id, EV_INT_watertype, -3);

if you are falling you are putted in water?? and you can't have fall velocity more than 350? ... can you make it without water?
__________________
_____________________________________________
spider853 is offline
Send a message via ICQ to spider853
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-12-2010 , 14:31   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #22

PHP Code:
/* Plugin generated by AMXX-Studio */

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

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

#define DMG_FALL (1<<5)

new cvar

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
    
    
cvar register_cvar("mp_falldamage""0")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    return (
get_pcvar_num(cvar) && damage_type DMG_FALL) ? HAM_SUPERCEDE HAM_IGNORED

__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Old 09-05-2011, 05:24
johnnyvh
This message has been deleted by xPaw. Reason: Spam.
bhatti
Member
Join Date: Sep 2012
Old 02-22-2013 , 21:24   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #23

i dont care about all people i love this plugin
bhatti is offline
kbr
Member
Join Date: Sep 2011
Old 03-18-2013 , 14:11   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #24

What about "mp_falldamge 0" only for admins?
kbr is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-20-2013 , 04:10   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #25

Quote:
Originally Posted by kbr View Post
What about "mp_falldamge 0" only for admins?
try this version. edit ACCESS_LEVEL if you'd like.
Attached Files
File Type: sma Get Plugin or Get Source (no_fall_damage_admin.sma - 239 views - 974 Bytes)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
kbr
Member
Join Date: Sep 2011
Old 09-17-2013 , 22:37   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #26

Quote:
Originally Posted by v3x View Post
try this version. edit ACCESS_LEVEL if you'd like.
It doesn't work
kbr is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-17-2016 , 13:40   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #27

Why are all of those complications necessary? This works just fine:

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define DMG_FALL (1<<5)

public plugin_init()
{
    
register_plugin("No Fall Damage""1.0""OciXCrom")
    
RegisterHam(Ham_TakeDamage"player""OnTakeDamagePre"0)
}

public 
OnTakeDamagePre(iVictimiInflictoriAttackerFloat:fDamageiBits)
    return 
iBits DMG_FALL HAM_SUPERCEDE HAM_IGNORED 
__________________

Last edited by OciXCrom; 11-17-2016 at 13:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 19:33.


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