View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-09-2009 , 20: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 - 1701 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 22:46.
Exolent[jNr] is offline