Preface
Hello there ! I share with you the code I wrote to reproduce the passive of Zarya.
I recreated the Passive and Barrier ability of the russian tank hero.
You can change the variable and try to do you own things with her.
The bubbles are clunky and cheap.
How it works ?
The damage hit point
When they are activated it adds a temporary health bar to the target. The damage absorption reacts like Zarya’s bubbles.
Hitboxes
The barriers hitboxes aren’t like the hitboxes of Zarya’s bubbles. They are the hitboxes of the protected hero because I didn’t find an other to recreate it.
The Crow Control Effect
A target under the effect of the bubble isn’t immune to the status effect but when Burn, Stun, Asleep, Freeze or Knockdown it cleanses it instantly.
*Issue : * It cleanses the sleep and the knockdown already affecting the target. Not like the real barrier.
3 Comments
you know you could check the "Code Snippet" mark instead of putting the github link?
Thank you, I didn't see the option. I updated it to show it.
bruh. there is an instruction below "Code Snippet". You don't need this github link. you just copy all your rules from the gamemode and paste in it.