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))
|
|
|
|
{
|
2016-03-19 23:54:18 +00:00
|
|
|
if (fabs (Vel.Z) < 0.5)
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
|
|
|
Destroy ();
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-11-24 20:36:02 +00:00
|
|
|
IMPLEMENT_CLASS(AGlassShard, false, false)
|
2016-03-01 15:47:10 +00:00
|
|
|
|