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/util/explosion_anti_cheat_bypass.hpp

23 lines
575 B
C++
Raw Normal View History

#pragma once
#include "memory/byte_patch.hpp"
namespace big
{
struct explosion_anti_cheat_bypass
{
inline static memory::byte_patch* m_can_blame_others;
inline static memory::byte_patch* m_can_use_blocked_explosions;
inline static void apply()
{
explosion_anti_cheat_bypass::m_can_blame_others->apply();
explosion_anti_cheat_bypass::m_can_use_blocked_explosions->apply();
}
inline static void restore()
{
explosion_anti_cheat_bypass::m_can_use_blocked_explosions->restore();
explosion_anti_cheat_bypass::m_can_blame_others->restore();
}
};
}