From a6974869bf01fe14e30e25e749be58120875d35f Mon Sep 17 00:00:00 2001 From: zaCade Date: Mon, 30 Oct 2017 13:33:47 +0100 Subject: [PATCH] FixAngles: Revert exclude, touch only func_rotating --- FixAngles/scripting/FixAngles.sp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/FixAngles/scripting/FixAngles.sp b/FixAngles/scripting/FixAngles.sp index bb8f9d0..b75b065 100644 --- a/FixAngles/scripting/FixAngles.sp +++ b/FixAngles/scripting/FixAngles.sp @@ -21,17 +21,11 @@ public void OnMapStart() public Action CheckAngles(Handle timer) { int entity = INVALID_ENT_REFERENCE; - while((entity = FindEntityByClassname(entity, "*")) != INVALID_ENT_REFERENCE) + while((entity = FindEntityByClassname(entity, "func_rotating")) != INVALID_ENT_REFERENCE) { 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);