Storm/Spawn_Grenade.hpp
2024-10-06 22:45:39 +03:00

30 lines
531 B
C++
Executable File

void* Original_Spawn_Grenade_Caller;
void __thiscall Redirected_Spawn_Grenade(void* Entity)
{
*(__int32*)((unsigned __int32)Entity + 228) = 3;
using Set_Size_Type = void(__thiscall*)(void* Entity, float* Minimum, float* Maximum);
float Minimum[3] =
{
-16,
-16,
-16
};
float Maximum[3] =
{
16,
16,
16
};
Set_Size_Type((unsigned __int32)Client_Module + 281664)(Entity, Minimum, Maximum);
(decltype(&Redirected_Spawn_Grenade)(Original_Spawn_Grenade_Caller))(Entity);
}