Tempmarrow
Average beatdown enjoyer
For example
Shield Abilities:
addHook("ThinkFrame", do
for player in players.iterate
if (player.mo and player.mo.skin == "sonic")
if not (player.mo.custom2down)
player.mo.custom2down = 0
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_NONE
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_ELEMENTAL
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_ELEMENTAL
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_BUBBLEWRAP
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_BUBBLEWRAP
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_WHIRLWIND
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_WHIRLWIND
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_ATTRACT
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_ATTRACT
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_THUNDERCOIN
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_THUNDERCOIN
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_ARMAGEDDON
end
if player.cmd.buttons & BT_CUSTOM2
and player.powers[pw_shield] == SH_ARMAGEDDON
and player.mo.custom2down == 0
player.mo.custom2down = 1
player.powers[pw_shield] = SH_NONE
end
if not (player.cmd.buttons & BT_CUSTOM2)
player.mo.custom2down = 0
end
end
end
end)