Custom Health Tool V 1.2.0
This code is a tool that allows you to accurately set the health of heroes.
Details
・2 player variables (Replaced in player variables A and B)
・6 rules (Included: a debug rule, a rule without functions)
The tool is a simplified version of some of the rules of "Overwatch1 Emulator (KHTG0)".
How to Use
Player variable CustomHealth is managing custom health values.
Player variable SaveHero detects that player's hero has changed.
・Set each custom health value 0.035 seconds after detecting a hero as in [Debug Rule] Soldier76 - Health.
Index 0 sets the normal health value, index 1 sets the armor value, and index 2 sets the shield value.
Note
・Call subroutine SetCustomHealth while all values in the player variable CustomHealth array are set to 0 may cause bugs. (By default, If all values in the array are 0, subroutine is not called.)
・This code is a tool for creating workshop mode. Feel free to customize.
Credit:
We Welcome bug reports and comments.
Sources
This post utilizes other codes either in part or in full. This could be because they remixed them, used parts of them, were inspired by them, or other reasons.
Source code
Loading...
15 Comments
Hello!
With the recent update to overwatch. This has broken this code.
Not sure if this fixable. Just wanted to let you know!
this is now patched sadly, take a look over here https://workshop.codes/wiki/articles/health-pool-bug-an-alternative-to-set-max-health-patched
i dont think theres gonna be any alternatives to do this thing either which is a shame cause this is like the only good method of doing custom hp and fix barrier hp like rein if you want 2000 barrier hp and get like 500 hp you could but now you cant sadly.
What a shame :(
Thank you for letting me know this!
truly is, ruins a bunch of workshop codes that purely relys on that (including mine) there isnt any great alternatives to this either and this is like the only way to actually have a good and functional hp whilst keeping the barriers and stuff. I hope someday theres gonna be another bug like this. even though i dont do workshop anymore it really is a shame.
Yeah, I released a workshop mode a month ago that add the health adjustments that I needed to make the gamemode fair (Since tanks have all these passives and still in free for all)
But without the glitch, it just basically destroyed the mode.
Maybe, we might see a new glitch with Stadium coming to workshop/custom games in Season 17.
(sry the comment is so huge)
For anyone that needs to set different health for D.Va and Pilot D.Va, I changed the "Save Hero" rule and set D.Va's health for either form in another rule. Here are the rules i used:
I'm sorry for the late reply.
The code has already been updated.
Thank you very much for your contribution to the update!
Love this! This is a wonderful tool but i do have to say that i found, with this mode specifically, Mauga's passive of generating temp health with crits, doesn't actually work! You're probably aware of this already, but it never hurts to say again
Really helpful and cool that you can now change the of the heroes and barriers in different ways. Is the code actually a workshop bug or how does it work? If so, it may be that it will be fixed? That would be a shame
This uses bug. This may be fixed in the future. However, this bug is not a problem in live games. (Probably) This will be fixed when Workshop is updated.
Reference: https://workshop.codes/wiki/articles/health-pool-bug-an-alternative-to-set-max-health
The latest custom hp handler in ow1emulator doesn't teleport player anymore. You can see this thread https://discord.com/channels/570672959799164958/1095384108504465488 for explanation.
Update is ready! Thank you for telling me that.
Ok, I will update as soon as possible.
If I remember correctly. The "always critical state bug" doesn't happen when setting the max health in general/individual hero settings (instead of with the workshop).
Though it does means if they import the rules without the settings it wouldn't work (I personally edit with both settings and workshop, most of the time.)
I agree. You may need to change it depending on your needs.