Login
Create
Alomare

Moira's Flamethrower

Add some AI and have fun.
Damage per second can be changed in settings.

If you only want the isolated rules, copy them here:

rule("Global")
{
    event
    {
        Ongoing - Global;
    }

    actions
    {
        Global.Z = Workshop Setting Integer(Custom String("GENERAL"), Custom String("DAMAGE PER SECOND"), 180, 0, 1000);
    }
}

rule("Flame")
{
    event
    {
        Ongoing - Each Player;
        All;
        All;
    }

    conditions
    {
        Is Firing Primary(Event Player) == True;
        Hero Of(Event Player) == Hero(Moira);
    }

    actions
    {
        Wait(0.100, Ignore Condition);
        Set Status(Filtered Array(Remove From Array(Players Within Radius(Eye Position(Event Player), 13, All Teams,
            Surfaces And Enemy Barriers), Event Player), Is In View Angle(Event Player, Current Array Element, 14)), Event Player, Burning,
            0.110);
        Damage(Filtered Array(Remove From Array(Players Within Radius(Eye Position(Event Player), 13, All Teams,
            Surfaces And Enemy Barriers), Event Player), Is In View Angle(Event Player, Current Array Element, 14)), Event Player,
            Global.Z / 10);
        Loop If Condition Is True;
    }
}
Players | 1 - 1
Heroes: All
Maps: King's Row
Created At:
Updated At:
Version: 1.0

Similar Codes

Elo Hell Logo_H-M-Dark
Join the Elo Hell Workshops Discord
Workshop.codes - Background image