This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/hooks/protections/task_ambient_clips.cpp
maybegreat48 5eead0436f
Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00

15 lines
311 B
C++

#include "hooking.hpp"
namespace big
{
int hooks::task_ambient_clips(uint64_t _this, int a2, int a3)
{
// enter crash func
// TODO: this doesn't block the crash completely
if (*(uint64_t*)(_this + 0x100))
return g_hooking->get_original<hooks::task_ambient_clips>()(_this, a2, a3);
return 0;
}
}