entWatch4: Drop Ammo aswell, when force drops happen.

This commit is contained in:
zaCade
2019-04-25 17:44:51 +02:00
parent 249fb0460e
commit b09777159a
3 changed files with 27 additions and 3 deletions
+2 -2
View File
@@ -420,7 +420,7 @@ public void OnClientDisconnect(int client)
{
if (item.bWeapon && !(item.dConfig.iSlot == SLOT_NONE || item.dConfig.iSlot == SLOT_KNIFE))
{
SDKHooks_DropWeapon(item.iClient, item.iWeapon, NULL_VECTOR, NULL_VECTOR);
Client_DropWeapon(item.iClient, item.iWeapon);
}
item.iClient = INVALID_ENT_REFERENCE;
@@ -451,7 +451,7 @@ public void OnClientDeath(Event hEvent, const char[] sEvent, bool bDontBroadcast
{
if (item.bWeapon && !(item.dConfig.iSlot == SLOT_NONE || item.dConfig.iSlot == SLOT_KNIFE))
{
SDKHooks_DropWeapon(item.iClient, item.iWeapon, NULL_VECTOR, NULL_VECTOR);
Client_DropWeapon(item.iClient, item.iWeapon);
}
item.iClient = INVALID_ENT_REFERENCE;