mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2026-10-10 04:53:06 +08:00
8531fedee8
credits: god (for providing the algorithm in a dream), noop (for having NASA computer, spending ~4.5 hours on the algorithm)
10 lines
407 B
C++
Executable File
10 lines
407 B
C++
Executable File
void* Original_Spawn_Grenade_Caller;
|
|
|
|
void __thiscall Redirected_Spawn_Grenade(void* Entity)
|
|
{
|
|
using Set_Size_Type = void(__thiscall*)(void* Entity, float* Minimum, float* Maximum);
|
|
|
|
Set_Size_Type((unsigned __int32)Client_Module + 281664)(Entity, (float[3]){ -16.f, -16.f, -16.f }, (float[3]){ 16.f, 16.f, 16.f });
|
|
|
|
(decltype(&Redirected_Spawn_Grenade)(Original_Spawn_Grenade_Caller))(Entity);
|
|
} |