Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

Request Help For No Spread

  • Thread starter Thread starter ajzvy
  • Start date Start date

ajzvy

Rookie HvHer
User ID:
224495
Messages:
53
Reactions:
12
Badges:
7
REP:
−0/0+
Level:
62
Hi everyone, recently, about 1-2 weeks ago, my team of 3 and I started working on an internal cheat for CS2. These days, it includes features like skinchanger, chams, ESP, aimbot, trigger bot, no smoke, no flash, no scope, zoom, VAC protect, world modulation, auto wallhack – basically, an all-in-one package. But I want to add no spread. I've added it, but mine is client-side, meaning the visual no spread only shows the bullets going where I aim, but they're not actually going there. How can I fix this? Does anyone have the source code? Maybe I can share the DLL file someday.
 
Hi everyone, recently, about 1-2 weeks ago, my team of 3 and I started working on an internal cheat for CS2. These days, it includes features like skinchanger, chams, ESP, aimbot, trigger bot, no smoke, no flash, no scope, zoom, VAC protect, world modulation, auto wallhack – basically, an all-in-one package. But I want to add no spread. I've added it, but mine is client-side, meaning the visual no spread only shows the bullets going where I aim, but they're not actually going there. How can I fix this? Does anyone have the source code? Maybe I can share the DLL file someday.
there are multiple ways of making it but i wont share source code since pasters could get it but its basically something like seeded triggerbot thats all i can say
 
there are multiple ways of making it but i wont share source code since pasters could get it but its basically something like seeded triggerbot thats all i can say
can u add me discord pls ajzvy ı so need
 
okay u know no spread src in this forum?? ı fix this ı have all patern in the game
have you checked UC yet? And have you made a basic seeded trigger yet? reversing the games internals and looking how spread works is gonna be pretty eye opening :P
 
C++:
Expand Collapse Copy
inline std::atomic<int32_t> g_cmd_seed_capture{0};
inline std::atomic<float>   g_cur_inaccuracy{0.0f};
 
using ns_seed_fn   = void  (__fastcall*)(int32_t);
using ns_rfloat_fn = float (__fastcall*)(float, float);
inline ns_seed_fn   g_ns_set_seed = nullptr;
inline ns_rfloat_fn g_ns_rand_f   = nullptr;
inline std::atomic<bool> g_ns_resolved{false};
 
inline void ns_resolve() {
    if (g_ns_resolved.load(std::memory_order_acquire)) return;
    HMODULE t0 = GetModuleHandleA("tier0.dll");
    if (t0) {
        g_ns_set_seed = reinterpret_cast<ns_seed_fn>(
            GetProcAddress(t0, "RandomSeed"));
        g_ns_rand_f   = reinterpret_cast<ns_rfloat_fn>(
            GetProcAddress(t0, "RandomFloat"));
    }
    g_ns_resolved.store(true, std::memory_order_release);
}
 
void capture_cmd_seed(uintptr_t cmd) {
    if (cmd < 0x10000ULL || cmd >= 0x00007FFFFFFFFFFFULL) return;
    __try {
        const auto pbcmd =
            *reinterpret_cast<const uintptr_t*>(cmd + 0x40);
        if (pbcmd >= 0x10000ULL && pbcmd < 0x00007FFFFFFFFFFFULL) {
            const auto seed =
                *reinterpret_cast<const int32_t*>(pbcmd + 0x64);
            g_cmd_seed_capture.store(seed);
        }
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
void no_spread_tick(uintptr_t local_pawn) {
    if (!local_pawn) return;
    __try {
        *reinterpret_cast<int32_t*>(local_pawn + 0x1C64) = 0;
 
        const auto svcs =
            *reinterpret_cast<const uintptr_t*>(local_pawn + 0x1490);
        if (!svcs) return;
        const auto h =
            *reinterpret_cast<const uint32_t*>(svcs + 0x60);
        const int wid = h & 0x7FFF;
        if (!wid) return;
        const auto w = entity_by_index(wid);
        if (!w) return;
 
        const auto pre_pen =
            *reinterpret_cast<const float*>(w + 0x17D0);
        g_cur_inaccuracy.store(pre_pen);
        *reinterpret_cast<float*>(w + 0x17D0) = 0.0f;
        *reinterpret_cast<float*>(w + 0x17D8) = 0.0f;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
struct Vec2 { float pitch, yaw; };
 
void apply_spread_predict(Vec2& t) {
    __try {
        ns_resolve();
        if (!g_ns_set_seed || !g_ns_rand_f) return;
        const auto seed = g_cmd_seed_capture.load();
        const float inacc = g_cur_inaccuracy.load();
        if (seed == 0 || !std::isfinite(inacc)) return;
 
        g_ns_set_seed(seed);
        const float angle  = g_ns_rand_f(0.0f, 6.2831853f);
        const float radius = g_ns_rand_f(0.0f, 1.0f);
        const float sx = std::sin(angle) * radius * inacc;
        const float sy = std::cos(angle) * radius * inacc;
 
        constexpr float kSpreadToDeg = 28.647889f;
        t.yaw   -= sx * kSpreadToDeg;
        t.pitch -= sy * kSpreadToDeg;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
C++:
Expand Collapse Copy
inline std::atomic<int32_t> g_cmd_seed_capture{0};
inline std::atomic<float>   g_cur_inaccuracy{0.0f};
 
using ns_seed_fn   = void  (__fastcall*)(int32_t);
using ns_rfloat_fn = float (__fastcall*)(float, float);
inline ns_seed_fn   g_ns_set_seed = nullptr;
inline ns_rfloat_fn g_ns_rand_f   = nullptr;
inline std::atomic<bool> g_ns_resolved{false};
 
inline void ns_resolve() {
    if (g_ns_resolved.load(std::memory_order_acquire)) return;
    HMODULE t0 = GetModuleHandleA("tier0.dll");
    if (t0) {
        g_ns_set_seed = reinterpret_cast<ns_seed_fn>(
            GetProcAddress(t0, "RandomSeed"));
        g_ns_rand_f   = reinterpret_cast<ns_rfloat_fn>(
            GetProcAddress(t0, "RandomFloat"));
    }
    g_ns_resolved.store(true, std::memory_order_release);
}
 
void capture_cmd_seed(uintptr_t cmd) {
    if (cmd < 0x10000ULL || cmd >= 0x00007FFFFFFFFFFFULL) return;
    __try {
        const auto pbcmd =
            *reinterpret_cast<const uintptr_t*>(cmd + 0x40);
        if (pbcmd >= 0x10000ULL && pbcmd < 0x00007FFFFFFFFFFFULL) {
            const auto seed =
                *reinterpret_cast<const int32_t*>(pbcmd + 0x64);
            g_cmd_seed_capture.store(seed);
        }
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
void no_spread_tick(uintptr_t local_pawn) {
    if (!local_pawn) return;
    __try {
        *reinterpret_cast<int32_t*>(local_pawn + 0x1C64) = 0;
 
        const auto svcs =
            *reinterpret_cast<const uintptr_t*>(local_pawn + 0x1490);
        if (!svcs) return;
        const auto h =
            *reinterpret_cast<const uint32_t*>(svcs + 0x60);
        const int wid = h & 0x7FFF;
        if (!wid) return;
        const auto w = entity_by_index(wid);
        if (!w) return;
 
        const auto pre_pen =
            *reinterpret_cast<const float*>(w + 0x17D0);
        g_cur_inaccuracy.store(pre_pen);
        *reinterpret_cast<float*>(w + 0x17D0) = 0.0f;
        *reinterpret_cast<float*>(w + 0x17D8) = 0.0f;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
struct Vec2 { float pitch, yaw; };
 
void apply_spread_predict(Vec2& t) {
    __try {
        ns_resolve();
        if (!g_ns_set_seed || !g_ns_rand_f) return;
        const auto seed = g_cmd_seed_capture.load();
        const float inacc = g_cur_inaccuracy.load();
        if (seed == 0 || !std::isfinite(inacc)) return;
 
        g_ns_set_seed(seed);
        const float angle  = g_ns_rand_f(0.0f, 6.2831853f);
        const float radius = g_ns_rand_f(0.0f, 1.0f);
        const float sx = std::sin(angle) * radius * inacc;
        const float sy = std::cos(angle) * radius * inacc;
 
        constexpr float kSpreadToDeg = 28.647889f;
        t.yaw   -= sx * kSpreadToDeg;
        t.pitch -= sy * kSpreadToDeg;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
added to my sup paste
 
C++:
Expand Collapse Copy
inline std::atomic<int32_t> g_cmd_seed_capture{0};
inline std::atomic<float>   g_cur_inaccuracy{0.0f};
 
using ns_seed_fn   = void  (__fastcall*)(int32_t);
using ns_rfloat_fn = float (__fastcall*)(float, float);
inline ns_seed_fn   g_ns_set_seed = nullptr;
inline ns_rfloat_fn g_ns_rand_f   = nullptr;
inline std::atomic<bool> g_ns_resolved{false};
 
inline void ns_resolve() {
    if (g_ns_resolved.load(std::memory_order_acquire)) return;
    HMODULE t0 = GetModuleHandleA("tier0.dll");
    if (t0) {
        g_ns_set_seed = reinterpret_cast<ns_seed_fn>(
            GetProcAddress(t0, "RandomSeed"));
        g_ns_rand_f   = reinterpret_cast<ns_rfloat_fn>(
            GetProcAddress(t0, "RandomFloat"));
    }
    g_ns_resolved.store(true, std::memory_order_release);
}
 
void capture_cmd_seed(uintptr_t cmd) {
    if (cmd < 0x10000ULL || cmd >= 0x00007FFFFFFFFFFFULL) return;
    __try {
        const auto pbcmd =
            *reinterpret_cast<const uintptr_t*>(cmd + 0x40);
        if (pbcmd >= 0x10000ULL && pbcmd < 0x00007FFFFFFFFFFFULL) {
            const auto seed =
                *reinterpret_cast<const int32_t*>(pbcmd + 0x64);
            g_cmd_seed_capture.store(seed);
        }
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
void no_spread_tick(uintptr_t local_pawn) {
    if (!local_pawn) return;
    __try {
        *reinterpret_cast<int32_t*>(local_pawn + 0x1C64) = 0;
 
        const auto svcs =
            *reinterpret_cast<const uintptr_t*>(local_pawn + 0x1490);
        if (!svcs) return;
        const auto h =
            *reinterpret_cast<const uint32_t*>(svcs + 0x60);
        const int wid = h & 0x7FFF;
        if (!wid) return;
        const auto w = entity_by_index(wid);
        if (!w) return;
 
        const auto pre_pen =
            *reinterpret_cast<const float*>(w + 0x17D0);
        g_cur_inaccuracy.store(pre_pen);
        *reinterpret_cast<float*>(w + 0x17D0) = 0.0f;
        *reinterpret_cast<float*>(w + 0x17D8) = 0.0f;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
 
struct Vec2 { float pitch, yaw; };
 
void apply_spread_predict(Vec2& t) {
    __try {
        ns_resolve();
        if (!g_ns_set_seed || !g_ns_rand_f) return;
        const auto seed = g_cmd_seed_capture.load();
        const float inacc = g_cur_inaccuracy.load();
        if (seed == 0 || !std::isfinite(inacc)) return;
 
        g_ns_set_seed(seed);
        const float angle  = g_ns_rand_f(0.0f, 6.2831853f);
        const float radius = g_ns_rand_f(0.0f, 1.0f);
        const float sx = std::sin(angle) * radius * inacc;
        const float sy = std::cos(angle) * radius * inacc;
 
        constexpr float kSpreadToDeg = 28.647889f;
        t.yaw   -= sx * kSpreadToDeg;
        t.pitch -= sy * kSpreadToDeg;
    } __except (EXCEPTION_EXECUTE_HANDLER) {}
}
can u add me discord and help me pls this is a basic base add me and send me pls? discord ajzvy
 

Who has read this thread (Total: 0) in last 1 hours View details