Do not try to push breakables without PUSHSTEP with gravgun

This commit is contained in:
mittorn 2018-08-06 01:46:45 +07:00
parent a8aadeee75
commit 271b1053ed

View File

@ -89,8 +89,12 @@ public:
string_t m_iszSpawnObject;
virtual float TouchGravGun( CBaseEntity *attacker, int stage )
{
pev->framerate = 1;
return 200;
if( pev->movetype == MOVETYPE_PUSHSTEP )
{
pev->framerate = 1;
return 200;
}
return 0;
}
};
#endif // FUNC_BREAK_H