FixAngles: Revert exclude, touch only func_rotating

This commit is contained in:
zaCade 2017-10-30 13:33:47 +01:00
parent 02de957660
commit a6974869bf

View File

@ -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);