Set Health
3 Attachment(s)
SetHealth by Mr. Blip
I looked and looked and couldn't find a plugin that sets a players health to a specified amount in a manner that I wanted it to. The closest thing I could find was one that was buried in the 'Super Admin' plugin, but it seemed messy and didn't work as I wanted it to (for example, @T and @CT actually targeted all). So, with the help of bl4nk, I set forth on a journey on how to create my own plugins and this is what I came up with. Cvars:
Change Log: Version 1.2.2
|
Re: Set Health
We really need a sethealth command in the SM core commands
|
Re: Set Health
This works, the only thing I see with it though is that SetEntityHealth doesn't change the max value that the health can be, so you should really put a check in to see if they are exceeding that amount, otherwise its going to trickle back down.
|
Re: Set Health
Updated to version 1.1:
|
Re: Set Health
Hm, I wonder if this could be modified to roll back the +50 health on pyros from the back burner...
|
Re: Set Health
This would be cooler if it was like Mani's that could
1) Target players using regex. ie sm_sethealth "Apple" 2 Would set RedApple, Apple Cider, and Applerleorler's health to 2 2) When health is set to 0, make the target explode. |
Re: Set Health
Works perfect on TF2. Though, it doesn't go past 500 HP and drains your health to 0 if you go over 500; it doesn't kill you, just drains the rest of the way. For instance:
If I set my health to 1000, it will drain my health to 0. It won't kill me, but restart me at 500 and continue to drain me until I'm back to full health. I believe the reason for this isn't because the game can't handle above 500, but that it registers anything about the classes maximum health(Without bonus) as a bonus. So it will drain it the same way. The only thing I can say to remendy this would to either max it out at 500 for TF2. It's a minor inconvience. The worst that happens is your health depletes to 0, you have the death animation, but resets to 500 before it registers it as a death. |
Re: Set Health
Updated to version 1.2:
Quote:
Quote:
Option 2, on the other hand, sounds incredibly awesome. Expect that in the next release. |
Re: Set Health
I want to make note that DOD:S works fine. Most likely because it doesn't have a health ceiling like TF2.
|
Re: Set Health
I'm getting an unknown command. The plugin is loaded properly, but I'm getting this error:
Code:
L 07/22/2008 - 15:46:11: [SM] Native "SetEntProp" reported: Property "m_iMaxHealth" not found (entity 1/player) |
All times are GMT -4. The time now is 09:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.