Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM+BRenBot Plugin] AFK Detector v2.0
Re: [SSGM+BRenBot Plugin] AFK Detector [message #450233 is a reply to message #450222] Thu, 28 July 2011 11:19 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3814
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
Check facing as well as position, also keep in mind if you alt tab you can keep moving without actually being in game. So maybe you should use a combination of seeing if they are moving and turning (comparisons between old facing and new, if they matched it'd return true); if position and facing remain constant with each other those remain constant (true && true || false && false || false && true || true && false) for an extended period of time they are afk. (By combining facing and moving you can figure out if they alt tabbed out pushing 'W' and 'A' or something while in a vehicle).

Also score and ammo count are probably bad ideas to decide AFK on beings they could alt tab while repairing a PT or something... But then, they could be in game repairing a PT and get counted for AFK...

Damn it, shame renegade keeps sending the key press held message when you alt tab, otherwise AFK would be as simple as checking for key presses.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Search Hud Yet another D6 Hud
Next Topic: Helios' Scripts.dll 2.9.2/3.4.4 installer
Goto Forum:
  


Current Time: Mon Feb 17 19:14:58 MST 2025

Total time taken to generate the page: 0.00913 seconds