Storm/Spawn_Grenade.hpp

30 lines
531 B
C++
Raw Normal View History

2024-04-04 03:17:09 +08:00
void* Original_Spawn_Grenade_Caller;
void __thiscall Redirected_Spawn_Grenade(void* Entity)
{
2024-10-07 03:45:39 +08:00
*(__int32*)((unsigned __int32)Entity + 228) = 3;
2024-04-04 03:17:09 +08:00
using Set_Size_Type = void(__thiscall*)(void* Entity, float* Minimum, float* Maximum);
float Minimum[3] =
{
2024-10-07 03:45:39 +08:00
-16,
2024-04-04 03:17:09 +08:00
2024-10-07 03:45:39 +08:00
-16,
2024-04-04 03:17:09 +08:00
2024-10-07 03:45:39 +08:00
-16
2024-04-04 03:17:09 +08:00
};
float Maximum[3] =
{
2024-10-07 03:45:39 +08:00
16,
2024-04-04 03:17:09 +08:00
2024-10-07 03:45:39 +08:00
16,
2024-04-04 03:17:09 +08:00
2024-10-07 03:45:39 +08:00
16
2024-04-04 03:17:09 +08:00
};
Set_Size_Type((unsigned __int32)Client_Module + 281664)(Entity, Minimum, Maximum);
(decltype(&Redirected_Spawn_Grenade)(Original_Spawn_Grenade_Caller))(Entity);
}