Quote:
Originally Posted by cssBOT
I believe you are testing eye angles to determine whether a person is AFK? This doesn't work for people in spectate. If they have the autodirector set to either first person or chase cam the timer gets reset when the player they are observing dies and the autodirector switches their view to another player. Which of course in a dm server happens typically every 10secs. I tested this before and again just now and that is exactly what is happening and I think is the source of the problem in my case.
|
When a player dies, I check their spectate target and set that so that the AFK Timer should continue.
If the player changes target (spectate player for example) I perform a check on whether the previous target is no longer valid/alive and if so then the player is still AFK.
If the previous target is still alive then maybe they switched target manually and are therefore not AFK.
The only time I check eye angles as a spectator is if the player enters free-look mode.
Do you know if "autodirector" has a spectate mode or if there is a way to test if they are in autodirector which changes their target every x seconds? I could not find that mode in CS:GO and I am almost 100% sure that autodirector is the problem and what I have been trying to find.