Not sure how possible this is. I know hackers can do it, though.
I want to hold "Raid" type events on my RP server. I'd like to adjust the hitpoints values of one of my Admins to play a "Raid Boss" so that it actually feels challenging.
Any thoughts?
Solved Increased player hitpoints
Discussion in 'Plugin Requests' started by Andrew D, Jun 10, 2015.
-
You could check during the 'OnEntityHealthChange' for the Admin's name and reduce damage to him by some %...
There is also player.getHealth() which returns a PlayerHealth object... havent tested it, but there are 3 HealthRegions on it (HeadHealth, TorsoHealth, LegHealth) - each has a CurrentHealth and MaxHealth accessor... that would probably do it... -
Yeah, the above seems like a good suggestion.
For a quick look at how to detect admins being hit etc - have a look at my PWN plugin, also has examples of damage scaling up/down -
I will someday learn to code. In the meantime, if anyone wants to take a crack at a plugin with this concept.
-
I'll give that a crack for you if I get a chance.
-
Scorpyon, you rock!