Author Topic: How to display Ammo in real-time?  (Read 1109 times)

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
How to display Ammo in real-time?
« on: March 03, 2013, 09:19:58 pm »
Hello, here's my problem:
I made a custom HUD using weapon sprites, and the ammo display below (just like vanilla), but Ammo does not display correctly; you have to change to another weapon and return to the last one to see the ammo changes, and it does not change in real-time (I've tried using onClientRender, onClientKeyStateChange, lP.WeaponState, etc.), nothing works as expected, I need help.

Thanks and happy killing :)

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: How to display Ammo in real-time?
« Reply #1 on: March 04, 2013, 01:54:32 am »
Hello, here's my problem:
I made a custom HUD using weapon sprites, and the ammo display below (just like vanilla), but Ammo does not display correctly; you have to change to another weapon and return to the last one to see the ammo changes, and it does not change in real-time (I've tried using onClientRender, onClientKeyStateChange, lP.WeaponState, etc.), nothing works as expected, I need help.

Thanks and happy killing :)
That is a known issue we ran into with Argo's scripts, too, when trying to detect weapon hackers. It would be a nice fix if someone were able to update it to work correctly. :)

 

© Liberty Unleashed Team.