mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-02-05 10:10:30 +03:00
Refuse support for cstrike 1.8.2 hacks (use cstrike 1.8.3)
This commit is contained in:
parent
8e3b6f4166
commit
415f3caffe
@ -8293,31 +8293,7 @@ void CBasePlayer::ClientCommand(const char *cmd, const char *arg1, const char *a
|
|||||||
BotArgs[3] = arg3;
|
BotArgs[3] = arg3;
|
||||||
|
|
||||||
UseBotArgs = true;
|
UseBotArgs = true;
|
||||||
|
::ClientCommand_(ENT(pev));
|
||||||
auto pEntity = ENT(pev);
|
|
||||||
|
|
||||||
#ifdef NO_AMXX_HACKS // a1ba: not needed for non-x86 port
|
|
||||||
::ClientCommand_(pEntity);
|
|
||||||
#else // NO_AMXX_HACKS
|
|
||||||
// NOTE: force __cdecl to allow cstrike amxx module to hook ClientCommand
|
|
||||||
#if defined _MSC_VER || defined __INTEL_COMPILER
|
|
||||||
__asm
|
|
||||||
{
|
|
||||||
push pEntity
|
|
||||||
call ClientCommand_;
|
|
||||||
add esp, 4;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
asm volatile (
|
|
||||||
"pushl %0\n\t"
|
|
||||||
"call *%1\n\t"
|
|
||||||
"addl $4, %%esp\n\t"
|
|
||||||
: /* no outputs */
|
|
||||||
: "g" (pEntity), "g" (ClientCommand_)
|
|
||||||
);
|
|
||||||
#endif // _MSC_VER || defined __INTEL_COMPILER
|
|
||||||
#endif // NO_AMXX_HACKS
|
|
||||||
|
|
||||||
UseBotArgs = false;
|
UseBotArgs = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user