From 271b1053ed141fb202893092696c63a40a0368b2 Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 6 Aug 2018 01:46:45 +0700 Subject: [PATCH] Do not try to push breakables without PUSHSTEP with gravgun --- dlls/func_break.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/func_break.h b/dlls/func_break.h index 2ab114b7..eb027a0a 100644 --- a/dlls/func_break.h +++ b/dlls/func_break.h @@ -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