Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Help with an ammo meter

Author
Message
Mini0013xx
14
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 5th Oct 2012 05:37
I have an ammunition meter I am trying to make to go along with a game. The game itself has a demo to be released on the 16th.

If somebody would be so kind as to show me a way to create an ammunition bar.

Here's the script. I am using Rolfy's health bar script.



I would be rather great full if somebody were able to come up with a solution to my problem. I looked through a list of commands and couldn't find one. :/

Thank you for your time.
Mini0013xx
14
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 5th Oct 2012 16:13
Does nobody know the answer to this?
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 5th Oct 2012 18:27 Edited at: 5th Oct 2012 19:15
You want an ammo bar , right ?
Use this script instead , it's originally made by Plystire for health , But you can easily edit it to fit anything . Here's the script (not tested for ammo) :


Just a few notes :
- $CA is ammo in gun , If you want it to be total ammo just replace it with $A
- The bar hud should be horizontal , if you want it vertical , change scalehudx to scalehudy
- This script has a bad flaw :
If you have a weapon with ammo in gun capacity = 15 , it will appear with 15% of it's original size if you have maximum ammo . If you switch to a gun with clip capacity = 20 , It will appear with 20% of it's size if you have maximum ammo .

this is the closest I could do actually , If you want a circular meter or something not bar-like then tell me and I may figure something out .

EDIT : Fixed some mistakes in the script , sorry

EDIT #2 : Okay , After some research this cannot be done the way I posted , There's a flaw in the $CA and $RCA that will be fixed on the next BETA of v120 . you can do it however using $RA . Only that will display you total ammo that exists in gun .

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest

Login to post a reply

Server time is: 2024-11-23 19:40:15
Your offset time is: 2024-11-23 19:40:15