A_BarrelDestroy
Jump to navigation
Jump to search
void A_BarrelDestroy()
Usage
Removes the calling actor unless the game is in a multiplayer mode and the sv_barrelrespawn CVAR is set. This function is used by Doom's barrel to selectively respawn in multiplayer games.
ZScript definition
Note: The ZScript definition below is for reference and may be different in the current version of GZDoom.The most up-to-date version of this code can be found on GZDoom GitHub. |
void A_BarrelDestroy()
{
if (sv_barrelrespawn)
{
Height = Default.Height;
bInvisible = true;
bSolid = false;
}
else
{
Destroy();
}
}