mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
Changed weapon removal method.
This commit is contained in:
parent
8c25086471
commit
e357131299
@ -1081,7 +1081,7 @@ void RemoveWeapon(any data)
|
|||||||
{
|
{
|
||||||
if(IsValidEntity(data))
|
if(IsValidEntity(data))
|
||||||
{
|
{
|
||||||
RemoveEntity(data);
|
AcceptEntityInput(data, "Kill");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1164,7 +1164,7 @@ public void OnWeaponDrop(int client, int entity)
|
|||||||
{
|
{
|
||||||
if(gB_NoWeaponDrops && IsValidEntity(entity))
|
if(gB_NoWeaponDrops && IsValidEntity(entity))
|
||||||
{
|
{
|
||||||
RemoveEntity(entity);
|
AcceptEntityInput(entity, "Kill");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user