Workshop.codes
Login
Create

15 Comments

Log in or Sign up to leave a comment.
CAM#12335 about 1 year ago

Hello!
With the recent update to overwatch. This has broken this code.
Not sure if this fixable. Just wanted to let you know!

viper#18545 about 1 year ago

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.

CAM#12335 12 months ago

What a shame :(
Thank you for letting me know this!

viper#18545 12 months ago

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.

CAM#12335 12 months ago *

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.

-oracles over 1 year ago *

(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:

rule("[settings] Save Hero")
{
    event
    {
        Ongoing - Each Player;
        All;
        All;
    }

    conditions
    {
        disabled Hero Of(Event Player) != Event Player.SavedHero;
        (Hero Of(Event Player) != Event Player.SavedHero || (Hero Of(Event Player) == Hero(D.Va) && Is Using Ultimate(Event Player)
            && Is In Alternate Form(Event Player))) == True;
    }

    actions
    {
        If(Hero Of(Event Player) == Hero(D.Va) && Is Using Ultimate(Event Player) && Is In Alternate Form(Event Player));
            Wait Until(!Is In Alternate Form(Event Player), 99999);
        End;
        Event Player.CustomHealth[0] = 0;
        Event Player.CustomHealth[1] = 0;
        Event Player.CustomHealth[2] = 0;
        Wait(0.020, Restart When True);
        Call Subroutine(RemoveCustomHealth);
        Wait(0.020, Restart When True);
        Event Player.SavedHero = Hero Of(Event Player);
        If(Event Player.CustomHealth[0] >= 1 || Event Player.CustomHealth[1] >= 1 || Event Player.CustomHealth[2] >= 1);
            Call Subroutine(SetCustomHealth);
        End;
    }
}

rule("[health] D.Va")
{
    event
    {
        Ongoing - Each Player;
        All;
        D.Va;
    }

    actions
    {
        Wait Until(Has Spawned(Event Player) && !Is In Alternate Form(Event Player), 99999);
        Wait(0.035, Abort When False);
        "Health"
        Event Player.CustomHealth[0] = 300;
        "Armor"
        Event Player.CustomHealth[1] = 250;
        "Shield"
        Event Player.CustomHealth[2] = 0;
        Wait Until(!Is Alive(Event Player) || Is In Alternate Form(Event Player), 99999);
        If(Is In Alternate Form(Event Player));
            Wait(0.035, Abort When False);
            Call Subroutine(RemoveCustomHealth);
            Wait(0.035, Abort When False);
            Event Player.CustomHealth[0] = 175;
            Event Player.CustomHealth[1] = 0;
            Event Player.CustomHealth[2] = 0;
        Else;
        End;
        Loop;
    }
}
RE7R9E1MA0Y#3191 creator over 1 year ago

I'm sorry for the late reply.
The code has already been updated.
Thank you very much for your contribution to the update!

cutelittlesnail about 2 years ago

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

Mathemann69#2205 about 2 years ago *

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

RE7R9E1MA0Y#3191 creator about 2 years ago *

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

ecksdee4643 about 2 years ago

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.

RE7R9E1MA0Y#3191 creator about 2 years ago *

Update is ready! Thank you for telling me that.

RE7R9E1MA0Y#3191 creator about 2 years ago

Ok, I will update as soon as possible.

Spiderman31807 about 2 years ago *

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.)

RE7R9E1MA0Y#3191 creator about 2 years ago

I agree. You may need to change it depending on your needs.

Workshop.codes