- 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 :
Requirements :
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.
CVARs :
cstrike/cfg/sourcemod/pickup_weapon.cfg
Credits :
- 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.
- 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
- 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.
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.
CVARs :
cstrike/cfg/sourcemod/pickup_weapon.cfg
Code:
// 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"
- @TheNomUser for Floating Weapons Fix