Toxic Water 0.8 [UPDATED]

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Toxic Water 0.8 [UPDATED]

Post by greenie »

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

get plugin
get source
Post Reply

Return to “General Purpose”