Workshop.codes
Create
Alyure

Hacked Healthpack/Sombra Healing Detector

Detect when allies (or self) pick up those juicy hacked health packs.


How does the code work?

Well, to understand the code you need to understand how the hacked health pack healing works;

No, you can't replicate this by using Player Dealt Healing simply because Sombra is not the one that deals the healing and since Health Packs are not players you can't track the healing by using Player Dealt Healing.

Then, in order to accomplish this result, you need to use Player Received Healing instead, because this one means ALL sorts of healings, including self healing AND health pack healing.

Basically, Sombra owns the Healing, but she's not the one that deals it, it's the Health Pack.

Once that's done, you need to filter it to get only the Health Pack Healing, so insert the Event Was Health Pack condition in order to do so.

And then you want to check whether that healing event belongs to Sombra or if doesn't (in case you also want to track non-hacked healing, like I did).

DON'T FORGET to set a Wait 0.016 action to prevent the server from overloading, healthpacks do healing in very weird way, apparently they apply the healing hundreds of times in a single tick causing the server to overload and then to shutdown.

So, once that's done you use some actions to apply the effects you want. ^^
In my case, the message "Yummers!" shows up whenever you get the hacked health pack and "Not Yummers." when you get a simple health pack.

I also want to remember that this code filters out Global Passive Healing AND Healing from External Sourcers. Meaning that if you have Sombra dealing healing with the Heal action, it won't trigger the effects from the Hacked Health Pack healing.

Players | 1 - 1
Categories: Tools, Miscellaneous
Heroes: Sombra
Created at:
Last updated:
Current version: 1.0.0

Snippet

Loading...

Users Also Like

Similar Codes

Workshop.codes
Join the Workshop.codes Discord