C++ Certified Professional Programmer
-
Автор темы
- #1
So basically I see alot of posts here and on unkowncheats, "How do you know if player is desyncing or not", "How do you know if its a bot" Im gonna spoonfeed cus this deserves to be public, I havent seen any posts on how to do it properly so yeah.
The logic behind fakeplayer is obvious, but the chokedpackets logic sanity check, Desync requires the enemys to choke atleast 1 tick, with that being said the enemys simtime is not being updated when choking. Ofcourse you need alot more logic 1more logic that you can use.
Код:
playerinfo_t * r {};
float simtime = player-> m_flSimulationTime ();
float oldsimtime = player-> m_flOldSimulationTime ();
float simdiff = simtime- oldsimtime;
auto chokedpackets = TIME_TO_TICKS (max (0, simdiff)); // you could also include latency
if (r-> fakeplayer) // player is a bot
return
if (chokedpackets <1) // player not desyncing
return
The logic behind fakeplayer is obvious, but the chokedpackets logic sanity check, Desync requires the enemys to choke atleast 1 tick, with that being said the enemys simtime is not being updated when choking. Ofcourse you need alot more logic 1more logic that you can use.
Код:
psuedocode ==
if (legs are visible then head may be around)
Последнее редактирование: