2024-04-04 03:17:09 +08:00
|
|
|
void* Original_Spawn_Grenade_Caller;
|
|
|
|
|
|
|
|
void __thiscall Redirected_Spawn_Grenade(void* Entity)
|
|
|
|
{
|
|
|
|
using Set_Size_Type = void(__thiscall*)(void* Entity, float* Minimum, float* Maximum);
|
|
|
|
|
|
|
|
float Minimum[3] =
|
|
|
|
{
|
2024-10-18 06:46:40 +08:00
|
|
|
-16.f,
|
2024-11-05 23:11:13 +08:00
|
|
|
|
2024-10-18 06:46:40 +08:00
|
|
|
-16.f,
|
2024-11-05 23:11:13 +08:00
|
|
|
|
2024-10-18 06:46:40 +08:00
|
|
|
-16.f
|
2024-04-04 03:17:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
float Maximum[3] =
|
2024-11-05 23:11:13 +08:00
|
|
|
{
|
2024-10-18 06:46:40 +08:00
|
|
|
16.f,
|
2024-04-04 03:17:09 +08:00
|
|
|
|
2024-10-18 06:46:40 +08:00
|
|
|
16.f,
|
2024-04-04 03:17:09 +08:00
|
|
|
|
2024-10-18 06:46:40 +08:00
|
|
|
16.f
|
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);
|
|
|
|
}
|