Note: For some reason this system has a bug and is the object that pulling the gun is fired so to fix this problem replaces the code above with this

voidCHL2MP_Player::PickupObject(CBaseEntity*pObject,boolbLimitMassAndSize){// can't pick up what you're standing onif(GetGroundEntity()==pObject)return;BaseClass::PickupObject(pObject,bLimitMassAndSize);// Can't be picked up if NPCs are on meif(pObject->HasNPCsOnIt())return;HideViewModels();ClearActiveWeapon();Weapon_Switch(Weapon_OwnsThisType("nameofyourweaponentitygotohere"));PlayerPickupObject(this,pObject);}