entWatch4: Remove drop code, will look for alternative.
This commit is contained in:
		
							parent
							
								
									84d107ea99
								
							
						
					
					
						commit
						5d75c7adf7
					
				@ -417,17 +417,6 @@ public void OnClientDisconnect(int client)
 | 
			
		||||
 | 
			
		||||
			if (item.bClient && item.iClient == client)
 | 
			
		||||
			{
 | 
			
		||||
				if (item.bWeapon)
 | 
			
		||||
				{
 | 
			
		||||
					char sWeaponClass[32];
 | 
			
		||||
					GetEntityClassname(item.iWeapon, sWeaponClass, sizeof(sWeaponClass))
 | 
			
		||||
 | 
			
		||||
					if (!StrEqual(sWeaponClass, "weapon_bayonet") && strncmp(sWeaponClass, "weapon_knife", 12) != 0)
 | 
			
		||||
					{
 | 
			
		||||
						SDKHooks_DropWeapon(item.iClient, item.iWeapon, NULL_VECTOR, NULL_VECTOR);
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				item.iClient = INVALID_ENT_REFERENCE;
 | 
			
		||||
 | 
			
		||||
				Call_StartForward(g_hFwd_OnClientItemDisconnect);
 | 
			
		||||
@ -454,17 +443,6 @@ public void OnClientDeath(Event hEvent, const char[] sEvent, bool bDontBroadcast
 | 
			
		||||
 | 
			
		||||
			if (item.bClient && item.iClient == client)
 | 
			
		||||
			{
 | 
			
		||||
				if (item.bWeapon)
 | 
			
		||||
				{
 | 
			
		||||
					char sWeaponClass[32];
 | 
			
		||||
					GetEntityClassname(item.iWeapon, sWeaponClass, sizeof(sWeaponClass))
 | 
			
		||||
 | 
			
		||||
					if (!StrEqual(sWeaponClass, "weapon_bayonet") && strncmp(sWeaponClass, "weapon_knife", 12) != 0)
 | 
			
		||||
					{
 | 
			
		||||
						SDKHooks_DropWeapon(item.iClient, item.iWeapon, NULL_VECTOR, NULL_VECTOR);
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				item.iClient = INVALID_ENT_REFERENCE;
 | 
			
		||||
 | 
			
		||||
				Call_StartForward(g_hFwd_OnClientItemDeath);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user