FixAngles: Revert exclude, touch only func_rotating
This commit is contained in:
parent
02de957660
commit
a6974869bf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user