Raised This Month: $66 Target: $400
 16% 

Water Manipulation by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-09-2009 , 21:55   Water Manipulation by Exolent
Reply With Quote #1

Water Manipulation
by Exolent

Description:
  • This plugin allows you to change the player speed while in water and everything about the drown damage.

How Water Damage Works:
  • Once the drowning damage begins, it has a system of how much is dealt:
    • 1st Damage: 3
    • 2nd Damage: 4
    • After 2nd Damage: 5
  • So, as you see:
    • The start of the damage is 3.
    • The increase of each time is 1.
    • The maximum damage dealt is 5.

Cvars:
  • water_speed <units per second>
    • The maxspeed of the player while in the water.
    • Default: 250.0
  • water_damage_delay <seconds>
    • The amount of time required to be submerged in water before the drowning damage begins.
    • Default: 12.0125
  • water_damage_interval <seconds>
    • The amount of time between each drowning damage after it has started.
    • Default: 1.01
  • water_damage_start <damage amount>
    • The first damage amount done to the player.
    • Default: 3.0
  • water_damage_increase <damage amount>
    • The increase of damage each time until it reaches the maximum.
    • Default: 1.0
  • water_damage_maximum <damage amount>
    • The maximum damage done to player from increase from the start.
    • Default: 5.0
  • water_heal_delay <seconds>
    • The amount of time required to be out of water before the healing of the drowning damage begins.
    • Default: 0.0
  • water_heal_interval <seconds>
    • The amount of time between each drown healing after it has started.
    • Default: 1.01
  • water_heal_amount <health amount>
    • The amount of health given for each drown heal.
    • Default: 10.0

Notes:
  • Requires AMX Mod X version 1.8.0 (or higher).
  • If you don't change any cvars, the water will seem like normal.
  • Make sure you place this plugin at the TOP of your 3rd party plugins in the plugins.ini

Changelog:
  • Version 0.1
    - Initial Release
  • Version 0.2
    - Added cvars:
    • water_heal_delay
    • water_heal_interval
    • water_heal_amount
Attached Files
File Type: sma Get Plugin or Get Source (water_manipulation.sma - 1240 views - 7.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-19-2009 at 23:46.
Exolent[jNr] is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 01-10-2009 , 04:27   Re: Water Manipulation by Exolent
Reply With Quote #2

sounds cool!
__________________
[B]
{PHILMAGROIN} is offline
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 01-10-2009 , 04:28   Re: Water Manipulation by Exolent
Reply With Quote #3

Good job, but you should post required modules . +Karma!
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-10-2009 , 04:38   Re: Water Manipulation by Exolent
Reply With Quote #4

Quote:
Originally Posted by FakeNick View Post
you should post required modules
Put it at top of "Notes"
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-10-2009 , 05:52   Re: Water Manipulation by Exolent
Reply With Quote #5

tuty was owned

gj!
__________________
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 01-10-2009 , 06:50   Re: Water Manipulation by Exolent
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
tuty was owned

gj!

if i didn come with my plugin exolent doesn't make this plugin
__________________
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-10-2009 , 10:41   Re: Water Manipulation by Exolent
Reply With Quote #7

Nice.
Quote:
Make sure you place this plugin at the TOP of your 3rd party plugins in the plugins.ini
Why?
__________________

anakin_cstrike is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-10-2009 , 11:04   Re: Water Manipulation by Exolent
Reply With Quote #8

Quote:
Originally Posted by tuty View Post

if i didn come with my plugin exolent doesn't make this plugin
click <--
Mlk27 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-10-2009 , 15:03   Re: Water Manipulation by Exolent
Reply With Quote #9

Quote:
Originally Posted by anakin_cstrike View Post
Why?
Because, other plugins may hook the drown damage and use it in their plugins.
This one removes the default damage and creates its own system.
Therefore, the other plugins would hook the original damage and this plugin's damage.

EDIT: On a side note, to remove all drown damage, just set the water_damage_delay cvar to something like 99999.9
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-12-2009 , 05:11   Re: Water Manipulation by Exolent
Reply With Quote #10

can you make this not using the pragma semicolon 1? it looks much better without those semicolons madness.. xD
Mlk27 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 07:15.


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