mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2024-12-22 06:40:04 +08:00
e462dff4f5
i've got problem with imagination regarding reliable method of relative correction on networking errors so old approach is preferable for moment currently focusing on gmod-x64 fork of segregation so probably won't update l4d2 for period of time [^\S\r\n]+(?=\r?$)
28 lines
485 B
C++
Executable File
28 lines
485 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);
|
|
|
|
float Minimum[3] =
|
|
{
|
|
-16.f,
|
|
|
|
-16.f,
|
|
|
|
-16.f
|
|
};
|
|
|
|
float Maximum[3] =
|
|
{
|
|
16.f,
|
|
|
|
16.f,
|
|
|
|
16.f
|
|
};
|
|
|
|
Set_Size_Type((unsigned __int32)Client_Module + 281664)(Entity, Minimum, Maximum);
|
|
|
|
(decltype(&Redirected_Spawn_Grenade)(Original_Spawn_Grenade_Caller))(Entity);
|
|
} |