Overwatch but with friendly fire
This code is over 6 months old. The code may have expired and might no longer function.
This is overwatch 3v3 but with friendly fire.
Yes, for real.
That's basically all that there is, but if you want to know how I made this, it's actually pretty simple --
Essentially, a bot is created on the opposite team. This bot is at your position, facing the exact direction as you, is the exact hero as you, is invisible, has disabled collision, and takes 0.001% damage. Basically I gave you an enemy hitbox.
When someone is hit, there are three things checked;
- Are they a dummy bot
- Is the person that hit then not the person the bot is attached to
- Is the person that damaged them a real person (detecting if nobody damaged you or not)
If all of these things are true, it will damage the person attached to it the event damage multiplied by 100,000%. The reason why I do this is because if I don't the player won't really take any damage because the bot takes 0.001% damage.
I also made a rule that will detect if a bot will have the status of --
- Hacked (useless)
- Knocked Down
And it will give the effect back to the player attached to.
Things to note --
These next things are things that don't properly work with the mod.
Moira is disabled because she cannot damage invisible people.
Sombra cannot hacked invisible people, so that's why her hacked rule is useless
I couldn't figure out how to make the hitboxes not collide with your bullets, so it's harder to earn kills because of this.
Bastion in recon cannot shoot people unless they are up close because the hitbox is in the way
You can trap yourself as junkrat
You can accidently put yourself to sleep