Pickup Weapon (Using E Key)

Pickup Weapon (Using E Key) v1.5

No permission to download
Supported Games
CS: Source (v34), CS: Source (Steam/Orange Box)
This plugin allows players to pickup weapon using USE or E key. It has 2 modes :
  1. Aim Mode : This mode is very accurate. If this mode is activated, players can aim at the weapon and press E to pick it up. By aiming I mean, crosshair must be on the weapon. This is the default mode. Distance and other settings can be controlled using cvars.
  2. Radius Mode : If this mode is activated, players need to stand within the specified radius from the weapon in order to pick it up. This mode also has beacon feature (Disabled by default, once enabled a red beacon will appear around the dropped weapon, which denotes the radius.). If player is standing within the radius or range of multiple weapons, then any random weapon will be equipped. (This is the drawback of this mode. I may plan to fix in future or implement it differently.). Radius and other settings can be controlled using cvars.
This plugin is compatible with Weapon Restrict plugin if the server is running it. It doesn't allow players to pick up restricted weapons.
This plugin cause server crash on Windows Server with Sourcemod v1.9 or later. On Sourcemod v1.8 or below it works fine. This problem is not observed on Linux Servers. At the moment, I do not know the cause of the crash. If any one can help identify then appreciated.

Requirements :
  • Sourcemod v1.8 or Higher
Installation :
  • Download the Pickup_Weapon.zip file attached to this post.
  • Extract the contents of zip file and put it into your server's cstrike folder.
  • [Optional] Configure the weapons list to filter in filtered_weapons.cfg file.
  • Restart the server or change the map or load the plugin.
Configuration :

As of version 1.1, you can configure certain weapons in file cstrike/addons/sourcemod/configs/filtered_weapons.cfg, which can not be picked up by pressing E. For example : grenades, c4 etc. This will only work if cvar sm_pw_filter_weapon is set to 1.



// Pickup Weapon Equip Mode.
// 1 - Aim Mode (Players must aim their crosshair on the weapon in order to pick it up.)
// 2 - Radius Mode (Player must stand within the required radius around weapon in order to pick it up.)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "2.000000"
sm_pw_equipmode "1"

// Enable/Disable weapon filter. (0 - Disabled, 1 - Enabled)
// If enabled, players will not be able to pick up the filtered weapon configured in config file.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_pw_filter_weapon "1"

// Minimum distance required between player and the weapon in order to pickup the weapon. (For Aim Mode, sm_pw_equipmode = 1)
// -
// Default: "128"
// Minimum: "0.000000"
// Maximum: "1000.000000"
sm_pw_pickup_distance "128"

// Pickup Radius. (For Radius Mode, sm_pw_equipmode = 2)
// -
// Default: "128"
// Minimum: "0.000000"
// Maximum: "1000.000000"
sm_pw_pickup_radius "128"

// Enable/Disable beacon around dropped weapons for Radius Mode. (0 - Disabled, 1 - Enabled)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_pw_weapon_beacon "0"
Credits :
First release
Last update
4.50 star(s) 2 ratings

More resources from Vertigo

Share this resource

Latest updates

  1. Bug Fixes & Improvements

    Update Notes: Fixed errors spam. Added ability to filter restricted/prohibited weapon if the...
  2. Fixed a Bug related to Floating Weapons

    Bug Details : Bug : Read Here. Reported By : @TheNomUser Update Notes : Fix provided Here...
  3. Fixed a Bug related to Reserved Ammo

    Bug Details : Bug : After weapon pickup, the reserved ammo was getting set to 0 for the newly...

Latest reviews

The plugin is great, but there is a bug, if you correct it, I will fix the rating :D
Perfect plugin, works like cs go and pretty much no bugs so far, thanks
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock