Raised This Month: $ Target: $400
 0% 

Water Manipulation by Exolent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        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 - 1723 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
 



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 01:38.


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