// RabidToaster is SO frickin cool // What the hell is this doing clientside? if ( CLIENT ) then return end local function PlayerCanPickupWeapon( ply, weap ) if ( CurTime() <= ( ply.UseWeaponSpawn or 0 ) ) then return end if ( !ply:KeyDown( IN_USE ) ) then return false end local trace = util.QuickTrace( ply:GetShootPos(), ply:GetAimVector() * 8192, ply ) if ( !trace.Entity || !trace.Entity:IsValid() || trace.Entity != weap ) then return false end end hook.Add( "PlayerCanPickupWeapon", "UseWeapon", PlayerCanPickupWeapon ) local function PlayerSpawn( ply ) ply.UseWeaponSpawn = CurTime() end hook.Add( "PlayerSpawn", "UseWeapon", PlayerSpawn )