• Drop It - simple addon for dropping and removing weapons
    2 replies, posted
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. :) 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. :) It's using Player class API to: [*] Removing active, or all weapons [*] Dropping active, or all weapons [*] Removing primary, or secondary ammo [*] And many variants of these functions. [b]Download: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=744815155[/url][/b] [b]Source code: [url]https://github.com/MCPlayG/drop-it[/url][/b] Commands for 1.1.3 version (copied from GitHub): [*] [b]DropAllWeapons[/b] - drops all your weapons (without ammo). [*] [b]DropAllWeaponsWithAmmo[/b] - drops all your weapons and strips your ammo. [*] [b]DropSelectedWeapon[/b] - drops active weapon without stripping ammo. [*] [b]DropSelectedWeaponWithAmmo[/b] - drops active weapon and strips it's ammo. [*] [b]RemoveSelectedWeapon[/b] - removes active weapon without removing ammo. [*] [b]RemoveSelectedWeaponWithAmmo[/b] - removes active weapon and removes ammo. [*] [b]RemoveAllWeapons[/b] - removes all your weapons without dropping them (doesn't remove your ammo). [*] [b]RemoveAllWeaponsWithAmmo[/b] - removes all your weapons and ammo without dropping them. [*] [b]RemoveSelectedAmmo[/b] - removes active weapon's ammo ( *BUG!* Command isn't removing ammo from weapon's magazine!) [*] [b]RemovePrimaryAmmo[/b] - removes active weapon's primary ammo ( *BUG!* Command isn't removing ammo from weapon's magazine!) [*] [b]RemoveSecondaryAmmo[/b] - removes active weapon's secondary ammo (e.g. in Pulse Rifle (AR2), secondary ammo is Combine Ball) [*] [b]RemoveAllAmmo[/b] - removes ammo from all your weapons ( *BUG!* Command isn't removing ammo from weapon's magazine!) [*] [b]PrintWeaponClass[/b] - prints weapon's class into console (you can use it in "give" command) I'm actually working on VGUI and classes. So... I hope, you'll enjoy it. :) ____________________________________________________ Warning! Grammar mistakes possible. English's not my native.
Pretty neat, but I don't really see this being useful.
[QUOTE=Jiwer;50903444]Pretty neat, but I don't really see this being useful.[/QUOTE] Well that's alright, maybe someone else will. There are more people.
Sorry, you need to Log In to post a reply to this thread.