• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
CactusPie

[Plugin] Ammo unload

6 posts in this topic

This sourcemod plugin allows you to unload ammo from your guns. Thanks goes to ssba and sourcemod folks whose helpful tips allowed me to dump virtual offsets for ammo box!

Usage: type sm_unload in console (preferably bind that command to a key)

Download (source code included): http://cactuspie.eu/pliki/unloader.zip

Please note that the plugin wasn't thoroughly tested, so if you notice any bugs, please report them in this topic!

Also, for anyone who would like to modify the plugin, here are offsets for ammo box in current nmrih build, they might come in handy: http://pastebin.com/R15HzWdF

Edited by CactusPie

Share this post


Link to post
Share on other sites

I got this plugin for my server and it works amazingly!! Only problem is that the plugin doesn't seem to recognize the AK-47 using the 7.62 ammo. Also, there's problems with the SKS (also using 7.62 ammo) where it eats the magazine and it doesn't drop it on the floor.

Could you please update the plugin? :D

Share this post


Link to post
Share on other sites

Sweet. Thanks for the quick update. :D

I just went through the weapons list again to double check that they're all working and it seems that the "fa_1022" (the rifle that uses .22 ammo) isn't unloading. All other weapons are fine now though.

Share this post


Link to post
Share on other sites

Now it seems that the "fa_glock17" (using 9mm ammo) isn't unloading.

Also, could you add "tool_flare_gun" and "me_chainsaw" to the unload table too please?

Edited by Stings2pee

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now