Workshop.codes
Create

This code is over 6 months old. The code may have expired and might no longer function.

Inspired by the Workshop.Codes Discord server, I've tried to create an accurate way of predicting which of Zen's enemies will be targeted by Orb of Discord. It involves filtering out impossible targets using Players In Radius, Is In View Angle, and OverPy's lineIntersectsSphere(), then using math to sort possible targets by angle distance and vector distance so that nearby targets take precedence over further ones unless you're looking much more directly at the far targets.

I didn't quite get the balance right, so it can still guess wrong between two possible targets:

However, it still behaves well enough for others to use as a code snippet if they'd like. You can test out how accurate it is with these custom game settings. The enemy with the green outline is who I predict will receive Orb of Discord, which is a rule you can disable ("debug show target"). You'll also notice that this outline disappears the moment that Orb of Discord ends, which reflects the variable discordTarget becoming null.

Players | 1 - 12
Categories: Solo, Tools, Miscellaneous
Heroes: Zenyatta
Created at:
Last updated:
Current version: 1.1.2

Snippet

Loading...

Users Also Like

Similar Codes

Workshop.codes
Join the Workshop.codes Discord