Raised This Month: $95 Target: $400
 23% 

No DROWN in Water


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 01-08-2009 , 13:06   No DROWN in Water
Reply With Quote #1

No DROWN in Water
v1.2


Description:

- All as you know, in cs if you stay in water more then ~10 sec you will be damaged.
- Well, with this plugin you can stay in water all the time as you want


Cvars:

- sv_nodrown 1 - enable \ 0 - disable the plugin (default: 1)

Modules:

- hamsandwich

Video:

- REMOVED

Changelog:

Code:
- optimized
- the pain sounds is now removed :)
- only hamsandwich

Credits:

- Exolent[jNr] hello

Attached Files
File Type: sma Get Plugin or Get Source (no_drown.sma - 818 views - 577 Bytes)
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 02-28-2012 at 12:39.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-08-2009 , 13:10   Re: No Die In Water (no dmg)
Reply With Quote #2

i watched video, it just saving hp, then you should remove damage sound and leave only icon, would be better

EDIT: watched in code, then when i'm in water noone can kill me? thats named cheating..
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-08-2009 , 13:15   Re: No Die In Water (no dmg)
Reply With Quote #3

It would be better to do this:

Code:
#include <amxmodx> #include <hamsandwich> #define PLUGIN "NoDieInWater" #define VERSION "1.0" #define AUTHOR "tuty" new g_enabled; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     RegisterHam(Ham_TakeDamage, "player", "FwdTakeDamage");     g_enabled = register_cvar("sv_nodieinwater", "1"); } public FwdTakeDamage(client, inflictor, attacker, Float:damage, damagebits) {     return ((damagebits & DMG_DROWN) && get_pcvar_num(g_enabled)) ? HAM_SUPERCEDE : HAM_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-08-2009 , 13:15   Re: No Die In Water (no dmg)
Reply With Quote #4

Would not it more efficient to hook TakeDamage and supercede on DMG_DROWN damage ?
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-08-2009 , 13:34   Re: No Die In Water (no dmg)
Reply With Quote #5

The ideea is nice, but try like X-o said.
__________________

anakin_cstrike is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-08-2009 , 13:36   Re: No Die In Water (no dmg)
Reply With Quote #6

Quote:
Originally Posted by anakin_cstrike View Post
You mean Ham
The ideea is nice.
No, he means Fakemeta. His plugin doesn't use Ham, Exo's does
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 01-08-2009 , 13:36   Re: No Die In Water (no dmg)
Reply With Quote #7

yeah exolent your code is good but i cant replace it.. because is not my code :-? what can i do:/
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-08-2009 , 13:38   Re: No Die In Water (no dmg)
Reply With Quote #8

Don't copy+paste it.
Read and understand what it does, then write it in your coding style.
I don't think there's a need for credit here, but you can if you want.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 01-08-2009 , 13:44   Re: No Die In Water (no dmg)
Reply With Quote #9

i do credtis


my scripting style is not verry good but is unic now i'm working
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-08-2009 , 14:53   Re: No Die In Water (no dmg)
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
No, he means Fakemeta. His plugin doesn't use Ham, Exo's does
I saw that after i posted.
__________________

anakin_cstrike 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:21.


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