Add hitchance to triggerbot (spread simulation via GetInaccuracy/GetSpread)

This commit is contained in:
2026-08-05 17:04:43 +02:00
parent 9b9659e152
commit 67ab4b2c3c
4 changed files with 74 additions and 0 deletions
@@ -5,9 +5,13 @@
#include <chrono>
#include <atomic>
#include <CS2/SDK/Math/QAngle.hpp>
#include <CS2/SDK/Math/Vector3.hpp>
class CCSGOInput;
class CUserCmd;
class IGameEvent;
class C_CSPlayerPawn;
class IMisc
{
@@ -30,6 +34,7 @@ public:
private:
auto RunTriggerbot( CCSGOInput* pInput , CUserCmd* pUserCmd ) -> void;
auto CalculateHitchance( CCSGOInput* pInput , C_CSPlayerPawn* pTarget , const QAngle& ViewAngles , const int Samples ) -> float;
private:
std::chrono::steady_clock::time_point m_HitTime{};