Hi.
OS: Windows.
PHP Code:
void FireBullets3( void *pPrivate, Vector vecSrc, Vector vecDir, float flSpread, float flDist, int iPenetration, int bulletType, int iDamage, float rangeMod, entvars_s * pevAttacker, bool isPistol, int sharedRand )
{
printf("FireBullets3 Hook Pre! %d | %d | %f\n", ENTINDEX(pevAttacker->pContainingEntity), isPistol, flDist);
UnsetHook(&g_funcFireBullets3_DLL);
reinterpret_cast<FuncFireBullets3>(g_funcFireBullets3_DLL.address)( pPrivate, vecSrc, vecDir, flSpread, flDist, iPenetration, bulletType, iDamage, rangeMod, pevAttacker, isPistol, sharedRand );
SetHook(&g_funcFireBullets3_DLL);
}
After the call to the server crashes. Arguments in the message right.
But, with Vector* __fastcall , function doesn't called. (
https://forums.alliedmods.net/showpo...85&postcount=2 )
__________________