Raised This Month: $105 Target: $400
 26% 

Auto Heal On Damage & Spawn Health & FallDamage


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Exolent[jNr] (178)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-20-2008 , 16:47   Auto Heal On Damage & Spawn Health & FallDamage
Reply With Quote #1

Auto Heal On Damage & Spawn Health & FallDamage Modifier




.: Description :.

This plugin make an autohealer, aka when you take damage you recover HPs with ability to set how many HPs you get per second.
The other feature of this plugin is to set the starting health (default is 100HP on cs).



.: Commands :.

  • amx_make_autohealer <HpAmount> [Optional: Period]
    Create an autohealer and/or set the amount of HPs you can gain per second.
    If you set a period, you don't let then engine think by itself, so it uses a bit more resources.
  • amx_remove_autohealer
    Remove the autohealer.
  • amx_spawn_health <HealthAmount>
    Set the starting health (0 to deactivate)
  • amx_fall_damage <Damage Factor>
    Set the fall damage factor (0.0 to deactivate)



.: Modules/Requirements :.

AMXX1.8+
Engine
Hamsandwich
It shouldn't be mod specific, let me know if you have any problem with a mod.

.: Changelog :.

Code:
v0.1.5 (21aug2012)
added checks to prevent error reported on there

v0.1.4 (15feb2010)
added fall damage modifier/disabled

v0.1.3 (21jun2009)
fixed code wasn't working on playerid 32
fixed cmds weren't working from amxx.cfg or other cfg files
optimized code

v0.1.2 (27oct2008)
added a check to prevent "Invalid HamHook handle" error

v0.1.1 (10oct2008)
replaced global_get with get_gametime

v0.1.0
added ability to change healing period

Attached Files
File Type: sma Get Plugin or Get Source (autoheal_spawnhealth.sma - 3377 views - 5.6 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 08-21-2012 at 13:55.
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-20-2008 , 16:51   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #2

Hehe...i'm the first
Quote:
possibility so set how many HPs you get per second.
that's pretty nice.
__________________

anakin_cstrike is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-20-2008 , 16:56   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #3

Hmmm , I tought I saw just the same but then unapproved today :/
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-20-2008 , 16:58   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
I saw just the same
This one doesn't use any task, you are healed by engine
__________________
- tired and retired -
ConnorMcLeod is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-20-2008 , 17:17   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #5

Plugin like this already exists: http://forums.alliedmods.net/showthread.php?t=74334
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-20-2008 , 17:29   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #6

Quote:
Originally Posted by connorr View Post
This one doesn't use any task, you are healed by engine
sa it , it looks weirdo xD
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-20-2008 , 17:33   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #7

Quote:
Originally Posted by AcidoX View Post
Plugin like this already exists: http://forums.alliedmods.net/showthread.php?t=74334
Well, yours uses tasks (it doesn't really matter, but it's still better to use engine), and have some stuff i don't like (screenfade and sounds and messages).
This one is more dedicated to kz servers.
It also replaces this one that doesn't allow healers to set more than 100HPs.
__________________
- tired and retired -
ConnorMcLeod is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-20-2008 , 17:41   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #8

Well, but you can disable all the cvars...
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-20-2008 , 17:45   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #9

Commands are sometimes better than cvars
I don't know why you argue, your plugin is just different from this one.
__________________
- tired and retired -
ConnorMcLeod is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-20-2008 , 17:53   Re: Auto Heal On Damage & Spawn Health
Reply With Quote #10

Well, yes its made more for hns
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
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 04:18.


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