Add func_frame implementation.

This commit is contained in:
Night Owl 2018-09-02 15:56:11 +05:00
parent 6e7b5bf9e8
commit aa474421df
1 changed files with 23 additions and 0 deletions

View File

@ -676,6 +676,29 @@ void CFuncRotating::Blocked( CBaseEntity *pOther )
{
pOther->TakeDamage( pev, pev, pev->dmg, DMG_CRUSH );
}
class CFuncFrame : public CFuncWall
{
public:
void Spawn();
};
LINK_ENTITY_TO_CLASS( func_frame, CFuncFrame )
void CFuncFrame::Spawn()
{
pev->angles = g_vecZero;
pev->movetype = MOVETYPE_PUSH; // so it doesn't get pushed by anything
pev->solid = SOLID_NOT;
SET_MODEL( ENT( pev ), STRING( pev->model ) );
// If it can't move/go away, it's really part of the world
pev->flags |= FL_WORLDBRUSH;
pev->effects |= EF_NODRAW; // ???
SET_MODEL( ENT( pev ), STRING( pev->model ) ); // ???
pev->nextthink = 0.1; // ???
}
//#endif
class CPendulum : public CBaseEntity
{