View Single Post
Author Message
wribit
Member
Join Date: Jan 2015
Old 03-22-2015 , 14:42   [INS] AmmoStatus
Reply With Quote #1

AmmoStatus
This plugin will display the magazine status of the weapon in use in percentages, if applicable. (i.e. will not display status if holding a knife)

Example: Mag is at 100%, Mag is at 45%, Mag is Empty!, etc...

It updates the print out in two different ways depending on how you set it up; See CVars.
** Credits **
This plugin was inspired by JBallou's AmmoCheck plugin which can be found here:
https://github.com/jaredballou/insur...g/ammocheck.sp
CVars:
sm_ammo_status_enabled (1 to enable, 0 to disable)
sm_ammo_status_share (1 to share the screen with another plugin, 0 to hog the hint text screen position.)
Explanation: If sm_ammo_status_share is set to 1, the status of the magazine will only show when the weapon is in use (equipped, reloaded, fired, etc). If it's set to 0, the status will always show.

*note: If you have another plugin installed (like showhealth) that prints to hint text, and you set sm_ammo_status_share to 0 - the two plugins will compete for time on the screen, resulting often in a flashing effect between the two plugins' outputs.
Install:
Place the AmmoStatus.smx file in your sourcemod\plugins folder. Restart the server.
A file named plugin.AmmoStatus.cfg is created in the insurgency\cfg\sourcemod in which you set your CVars.



Attached Files
File Type: sp Get Plugin or Get Source (AmmoStatus.sp - 1634 views - 4.8 KB)
__________________
If you wish to show your appreciation for the time and effort I put in these plugins, please click the button below to make a donation.

[IMG]http://s1.************/hxzfirnu3/donate.gif[/IMG]

Thank you in advance for your generosity!
wribit

Last edited by wribit; 03-27-2015 at 11:18. Reason: Updated Status
wribit is offline