Drop It - simple addon for dropping and removing weapons

Hi! I’m very new to this forum and I’ve created my first Garry’s Mod addon. It’s still in development, but usable. :slight_smile:

This addon is (how the topic name suggests) simple drop/remove “feature”. I’ve created it to play with my friend, but I’ve uploaded it to Steam GMod workshop. And that’s the story. :slight_smile:

It’s using Player class API to:
[li] Removing active, or all weapons
[/li]
[li] Dropping active, or all weapons
[/li]
[li] Removing primary, or secondary ammo
[/li]
[li] And many variants of these functions.
[/li]
Download: http://steamcommunity.com/sharedfiles/filedetails/?id=744815155
Source code: https://github.com/MCPlayG/drop-it

Commands for 1.1.3 version (copied from GitHub):

[li] DropAllWeapons - drops all your weapons (without ammo).
[/li]
[li] DropAllWeaponsWithAmmo - drops all your weapons and strips your ammo.
[/li]
[li] DropSelectedWeapon - drops active weapon without stripping ammo.
[/li]
[li] DropSelectedWeaponWithAmmo - drops active weapon and strips it’s ammo.
[/li]
[li] RemoveSelectedWeapon - removes active weapon without removing ammo.
[/li]
[li] RemoveSelectedWeaponWithAmmo - removes active weapon and removes ammo.
[/li]
[li] RemoveAllWeapons - removes all your weapons without dropping them (doesn’t remove your ammo).
[/li]
[li] RemoveAllWeaponsWithAmmo - removes all your weapons and ammo without dropping them.
[/li]
[li] RemoveSelectedAmmo - removes active weapon’s ammo ( BUG! Command isn’t removing ammo from weapon’s magazine!)
[/li]
[li] RemovePrimaryAmmo - removes active weapon’s primary ammo ( BUG! Command isn’t removing ammo from weapon’s magazine!)
[/li]
[li] RemoveSecondaryAmmo - removes active weapon’s secondary ammo (e.g. in Pulse Rifle (AR2), secondary ammo is Combine Ball)
[/li]
[li] RemoveAllAmmo - removes ammo from all your weapons ( BUG! Command isn’t removing ammo from weapon’s magazine!)
[/li]
[li] PrintWeaponClass - prints weapon’s class into console (you can use it in “give” command)
[/li]
I’m actually working on VGUI and classes.

So… I hope, you’ll enjoy it. :slight_smile:


Warning! Grammar mistakes possible. English’s not my native.

Pretty neat, but I don’t really see this being useful.

Well that’s alright, maybe someone else will. There are more people.