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

Toxic Water 0.8 [UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   GHW_Chronic (70)
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 04-28-2008 , 12:59   Toxic Water 0.8 [UPDATED]
Reply With Quote #1

Toxic Water
v0.8




The Title says it all. When you touch water or you're near water you'll get some damage.

Cvars:
amx_toxicwater
<1/0> (On/Off) (Default: 1)
tx_dmgfeet <damage> (How much damage you'll get when your feet touches the water) (Default: 7)
tx_dmgwaist <damage> (How much damage you'll get when your waist touches the water) (Default: 15)
tx_dmghead
<damage> (How much damage you'll get when you're completely under water) (Default: 30)
tx_dmgnear
<damage> (How much damage you'll get when you're near the toxic water) (Default: 5)
tx_dmgradius
<units> (How far away from water you'll get tx_dmgnear damage) (Default: 100)
tx_fadegreen <1/0> (On/Off, screen will fade in a green color) (Default: 1)

I think there is no need for screenshots. Just a yellow Radioactivity icon and a sound warning. And of course a normal damage effect. Every second you're near/in water you'll get damaged. Of course the warning sound isn't going to annoy you every second XD. If you touch water: It plays a sound and sets the timer. After 10seconds it resets the sound. So if you touch the water after 10sec after you touched the water - only then it'll play the sound again. My english isn't good
If you don't like the sound. Which plays when you get near the toxic water. Just comment this line:
Quote:
Change:
#define SOUNDS_ON
to
//#define SOUNDS_ON
And recompile the plugin.

Includes:
Quote:
#include <amxmodx>
#include <fakemeta>

Credits:
Wilson [29th ID] and v3x - For helping me with radius and tx_dmgnear.

Changes:
v0.8
*No need for fakemeta util anymore! Included stocks in plugin.
*Optimized code a little bit.
*Fixed some really big bugs.
*Added a cool screen fade effect.
v0.7
*Initial Release
Attached Files
File Type: sma Get Plugin or Get Source (toxic_water.sma - 1829 views - 5.5 KB)
__________________

Last edited by shine771; 05-01-2008 at 03:47.
shine771 is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-28-2008 , 23:53   Re: Toxic Water 0.7
Reply With Quote #2

I'm confused. Does this damage repeatedly, or is it a one time thing?
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-29-2008 , 00:52   Re: Toxic Water 0.7
Reply With Quote #3

deals the damage every 1 second that the player is near/in/meets the requirements to become hurt by the acid/water
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-29-2008 , 02:26   Re: Toxic Water 0.7
Reply With Quote #4

Quote:
Originally Posted by GHW_Chronic View Post
deals the damage every 1 second that the player is near/in/meets the requirements to become hurt by the acid/water
Ok, that makes more sense. It is poorly explained in main post, I apologize.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-29-2008 , 07:21   Re: Toxic Water 0.7
Reply With Quote #5

Nice plugin. I see that my code worked for you
__________________
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
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 04-29-2008 , 09:52   Re: Toxic Water 0.7
Reply With Quote #6

Aha. Thanks again .
btw: Has anyone tested this plugin yet? Maybe someone has some suggestions? Or maybe they have noticed some bugs? I tested and everything was ok... Just wondering... because i really haven't created a plugin.. and released it without any fixes.

EDIT: Sorry... i'll explain it better in the first post
__________________

Last edited by shine771; 04-29-2008 at 09:59.
shine771 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 04-29-2008 , 10:43   Re: Toxic Water 0.7
Reply With Quote #7

Because of your plugin size i think you shuld include the stocks frome fakemeta utility so people dont have to compile it locally.
But thats just a suggestion^^
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-29-2008 , 10:57   Re: Toxic Water 0.7
Reply With Quote #8

no need to do task_exists before remove_task. just do remove_task.

in the PreThink, just have one check for can_take_dmg[id] and then do a switch statement for pev(id,pev_waterlevel)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 04-29-2008 , 12:07   Re: Toxic Water 0.8 [UPDATED]
Reply With Quote #9

Thanks for suggestions. Fixed some glitches too... just didn't notice them when releasing... i'm just blind . Anyway - Added a cool green screen fade effect. Thought it won't look so good, but actually it did! Check the new version out .
__________________
shine771 is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 04-30-2008 , 22:18   Re: Toxic Water 0.8 [UPDATED]
Reply With Quote #10

I think this may be badass to use with the new Biohazard mod...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
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 05:33.


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