From 02de957660015fbd3133f55e94c325e01cf422e5 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sun, 29 Oct 2017 01:07:59 +0200 Subject: [PATCH] FixAngles: ignore func_rot_button's --- FixAngles/scripting/FixAngles.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FixAngles/scripting/FixAngles.sp b/FixAngles/scripting/FixAngles.sp index 91e36d62..bb8f9d09 100644 --- a/FixAngles/scripting/FixAngles.sp +++ b/FixAngles/scripting/FixAngles.sp @@ -26,6 +26,12 @@ public Action CheckAngles(Handle timer) if(!HasEntProp(entity, Prop_Send, "m_angRotation")) continue; + static char sClass[128]; + GetEntityClassname(entity, sClass, sizeof(sClass)); + + if(StrEqual(sClass, "func_rot_button")) + continue; + static float aAngles[3]; GetEntPropVector(entity, Prop_Send, "m_angRotation", aAngles);