Add hitchance to triggerbot (spread simulation via GetInaccuracy/GetSpread)
This commit is contained in:
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user