A_BombShield is an action that gives the target player an Armageddon Shield (red) and spawns the shield around them, playing the actor's
SeeSound. Any other shield the player might wear is removed to be replaced by the Armageddon Shield.
Code – A_BombShield
// Function: A_BombShield
// Description: Awards the player a bomb shield.
// var1 = unused
// var2 = unused
void A_BombShield(mobj_t *actor)
if (LUA_CallAction("A_BombShield", actor))
if (!actor->target || !actor->target->player)
CONS_Debug(DBG_GAMELOGIC, "Powerup has no target.\n");
player = actor->target->player;
if ((player->powers[pw_shield] & SH_NOSTACK) != SH_BOMB)
player->powers[pw_shield] = SH_BOMB|(player->powers[pw_shield] & SH_STACK);