Raised This Month: $202 Target: $400
 50% 

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 - 263 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 
__________________
404: Not Found

Last edited by OciXCrom; 11-17-2016 at 13:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PowereXe
Member
Join Date: Jan 2017
Location: Turkey, Istanbul
Old 05-29-2017 , 10:44   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #28

Quote:
Originally Posted by Sn!ff3r View Post
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


Thx Bro Worked Very Well When Cvar Is 1.
The v3x's Plugin Not Working In Every Situation. (0 Or 1)
PowereXe is offline
PowereXe
Member
Join Date: Jan 2017
Location: Turkey, Istanbul
Old 05-29-2017 , 10:58   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #29

Quote:
Originally Posted by OciXCrom View Post
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 
Working Without Cvar. That's The Which I Searched.
The Best Plugin Ever.
PowereXe is offline
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 05-29-2017 , 14:39   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #30

Quote:
Originally Posted by OciXCrom View Post
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 
This was made when HamSandwich wasn't available, pretty much like every old plugin, this one is extremely overcomplicated.

I'm willing to see a re-estructuration of the entire AMXX plugin section, there are A LOT of obsolete plugins and yet they are approved, while the current approval requirements are beyond ridiculous, making actually useful plugins sit in Submissions, never to see the light.
__________________

Current Handle Name: G.I. / Luces en Babel / Gabe Iggy (Steam)
Public Plugins:
Static.cfg Restoration | Sven Co-op Player vs Player | Hide Donator Icons
Discord: http://discord.motv.moe/

Last edited by Gabe Iggy; 05-29-2017 at 14:43. Reason: Forgot to write my message lol
Gabe Iggy 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 14:57.


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