mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-16 15:41:39 +00:00
29 lines
596 B
C++
29 lines
596 B
C++
|
#include "actor.h"
|
||
|
#include "info.h"
|
||
|
#include "p_enemy.h"
|
||
|
#include "p_local.h"
|
||
|
#include "a_doomglobal.h"
|
||
|
#include "a_sharedglobal.h"
|
||
|
#include "m_random.h"
|
||
|
#include "gi.h"
|
||
|
#include "doomstat.h"
|
||
|
#include "gstrings.h"
|
||
|
|
||
|
// The barrel of green goop ------------------------------------------------
|
||
|
|
||
|
void A_BarrelDestroy (AActor *actor)
|
||
|
{
|
||
|
if ((dmflags2 & DF2_BARRELS_RESPAWN) &&
|
||
|
(deathmatch || alwaysapplydmflags))
|
||
|
{
|
||
|
actor->height = actor->GetDefault()->height;
|
||
|
actor->renderflags |= RF_INVISIBLE;
|
||
|
actor->flags &= ~MF_SOLID;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
actor->Destroy ();
|
||
|
}
|
||
|
}
|
||
|
|