qzdoom-gpl/src/g_shared/a_debris.cpp

28 lines
475 B
C++
Raw Normal View History

2016-03-01 15:47:10 +00:00
#include "actor.h"
#include "info.h"
#include "m_random.h"
#include "m_fixed.h"
// Stained glass ------------------------------------------------------------
class AGlassShard : public AActor
{
DECLARE_CLASS (AGlassShard, AActor)
public:
bool FloorBounceMissile (secplane_t &plane)
{
if (!Super::FloorBounceMissile (plane))
{
if (fabs (Vel.Z) < 0.5)
2016-03-01 15:47:10 +00:00
{
Destroy ();
}
return false;
}
return true;
}
};
IMPLEMENT_CLASS(AGlassShard, false, false)
2016-03-01 15:47:10 +00:00