Sapheros
Member
This part of lua is lying, as its description doesn't prove what is supposed to happen:
What this script was originally supposed to do for the Nuke Shield was that by the end of the 10 seconds the shield was activated, it was supposed to execute the explosion, the flash, and the sound of the blast (although I didn't test the blast to hurt enemies/players yet)
No proof? Pffft: https://gfycat.com/HalfCarefulDowitcher
Think i did something wrong in the script? I don't think so:void P_BlackOw(player_t player)
This is used by the Armageddon Shield to blow up enemies, flash the palettes of all players within the explosion radius (1536*FRACUNITs) and destroy the shield currently being held by player. Also plays the Armageddon explosion sound.
Code:
addHook("ThinkFrame", do
for player in players.iterate
if not (player.shieldtimer)
player.shieldtimer = 0
end
if player.powers[pw_shield] == SH_ATTRACT
and player.shieldtimer == 0
player.shieldtimer = 10*TICRATE
end
if player.shieldtimer > 0
player.shieldtimer = $1 - 1
end
if player.shieldtimer == 1
player.powers[pw_shield] = SH_NONE
end
if player.powers[pw_shield] == SH_BOMB
and player.shieldtimer == 0
player.shieldtimer = 10*TICRATE
end
if player.shieldtimer == 1
and player.powers[pw_shield] == SH_BOMB
P_NukeEnemies(player.mo, player.mo, 2048*FRACUNIT)
P_BlackOw(player)
end
end
end)
No proof? Pffft: https://gfycat.com/HalfCarefulDowitcher