Fix not being able to block CS_OnCSWeaponDrop and clarify include file.
This commit is contained in:
parent
4b8a581c9a
commit
35e4374e2e
@ -177,7 +177,7 @@ DETOUR_DECL_MEMBER3(DetourCSWeaponDrop, void, CBaseEntity *, weapon, bool, bDrop
|
|||||||
g_pCSWeaponDropForward->Execute(&result);
|
g_pCSWeaponDropForward->Execute(&result);
|
||||||
|
|
||||||
|
|
||||||
if (result >= Pl_Continue)
|
if (result == Pl_Continue)
|
||||||
{
|
{
|
||||||
#if SOURCE_ENGINE == SE_CSGO
|
#if SOURCE_ENGINE == SE_CSGO
|
||||||
DETOUR_MEMBER_CALL(DetourCSWeaponDrop)(weapon, vec, unknown);
|
DETOUR_MEMBER_CALL(DetourCSWeaponDrop)(weapon, vec, unknown);
|
||||||
|
@ -144,7 +144,7 @@ forward Action:CS_OnBuyCommand(client, const String:weapon[]);
|
|||||||
/**
|
/**
|
||||||
* Called when CSWeaponDrop is called
|
* Called when CSWeaponDrop is called
|
||||||
* Return Plugin_Continue to allow the call or return a
|
* Return Plugin_Continue to allow the call or return a
|
||||||
* higher action to deny.
|
* higher action to block.
|
||||||
*
|
*
|
||||||
* @param client Client index
|
* @param client Client index
|
||||||
* @param weaponIndex Weapon index
|
* @param weaponIndex Weapon index
|
||||||
|
Loading…
Reference in New Issue
Block a user