Raised This Month: $51 Target: $400
 12% 

[INS] AmmoStatus


Post New Thread Reply   
 
Thread Tools Display Modes
Author
wribit
Member
Join Date: Jan 2015
Plugin ID:
4558
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays the magazine status of the weapon in use, in percentages.
    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 - 1607 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
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 03-31-2015 , 21:19   Re: [INS] AmmoStatus
    Reply With Quote #2

    Can you add a setting for the client to disable?
    __________________
    ltgenkd is offline
    wribit
    Member
    Join Date: Jan 2015
    Old 04-01-2015 , 11:20   Re: [INS] AmmoStatus
    Reply With Quote #3

    Quote:
    Originally Posted by ltgenkd View Post
    Can you add a setting for the client to disable?
    I will look into this, but as it stands it would require a re-write of the plugin. So it might take a little while before that functionality is put in.
    __________________
    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
    wribit is offline
    InsurgencyANZ
    Junior Member
    Join Date: Apr 2015
    Location: Melbourne, Australia
    Old 04-16-2015 , 16:56   Re: [INS] AmmoStatus
    Reply With Quote #4

    Hey mate, installed on one of my servers for testing. Thanks! Keep up the good work.
    Just wondering if you made any progress on a client feature for enabling/disabling?
    __________________
    [AUR] Ace
    Insurgency ANZ Founder | Aussie Rebels Co-Founder
    www.InsurgencyANZ.com | www.AussieRebels.org
    InsurgencyANZ is offline
    Send a message via Skype™ to InsurgencyANZ
    wribit
    Member
    Join Date: Jan 2015
    Old 04-17-2015 , 08:40   Re: [INS] AmmoStatus
    Reply With Quote #5

    Quote:
    Originally Posted by InsurgencyANZ View Post
    Hey mate, installed on one of my servers for testing. Thanks! Keep up the good work.
    Just wondering if you made any progress on a client feature for enabling/disabling?

    I've been quite busy these days, so I haven't been able to get to this yet. This will require a re-write of most the plugin - and I've got the logic down already on paper. I have to work on theater files today for a pvp server I'm setting up - but when I'm done with that I'll be putting some time towards the plugins.
    __________________
    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
    wribit is offline
    InsurgencyANZ
    Junior Member
    Join Date: Apr 2015
    Location: Melbourne, Australia
    Old 04-19-2015 , 01:58   Re: [INS] AmmoStatus
    Reply With Quote #6

    No worries, mate. Thanks for the update
    I have done quite a bit of work on theaters as well if you need any ideas.
    http://tools.insurgencyanz.com
    __________________
    [AUR] Ace
    Insurgency ANZ Founder | Aussie Rebels Co-Founder
    www.InsurgencyANZ.com | www.AussieRebels.org
    InsurgencyANZ is offline
    Send a message via Skype™ to InsurgencyANZ
    Jejowaty
    Junior Member
    Join Date: Feb 2014
    Old 09-29-2015 , 15:15   Re: [INS] AmmoStatus
    Reply With Quote #7

    Hello,
    I have strange issue with this plugin - btw, work fine, but the problem is that when I off this plugin I still see amount of ammo (always show 0). I disable plugin and cfg of course but not work. Any idea why?
    Jejowaty is offline
    ijam_j
    Member
    Join Date: Mar 2007
    Old 10-21-2015 , 23:14   Re: [INS] AmmoStatus
    Reply With Quote #8

    could you make it that it will show the magazine status ONLY when reloading?

    you would know whether your magazine is empty or not by weighing. fits insurgency lore.

    constantly displaying ammo NOT in the bottom right doesnt feels right.
    ijam_j is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:33.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode