Changed from RemoveEdict to using the Kill input for TF2_RemoveWeapon (r=voided).
authorNicholas Hastings <skamonkey@gmail.com>
Thu Aug 22 21:45:40 2013 -0400 (2013-08-22)
changeset 4036646b27d3d64a
parent 4035 24784617e0dd
child 4037 4af1c2ab3816
Changed from RemoveEdict to using the Kill input for TF2_RemoveWeapon (r=voided).
plugins/include/tf2_stocks.inc
     1.1 --- a/plugins/include/tf2_stocks.inc	Thu Aug 22 21:45:19 2013 -0400
     1.2 +++ b/plugins/include/tf2_stocks.inc	Thu Aug 22 21:45:40 2013 -0400
     1.3 @@ -427,7 +427,7 @@
     1.4  	while ((weaponIndex = GetPlayerWeaponSlot(client, slot)) != -1)
     1.5  	{
     1.6  		RemovePlayerItem(client, weaponIndex);
     1.7 -		RemoveEdict(weaponIndex);
     1.8 +		AcceptEntityInput(weaponIndex, "Kill");
     1.9  	}
    1.10  }
    1.11