Product Chat / [SOLVED] HUD ammo display questions

Author
Message
JC LEON
13
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 18th Dec 2019 22:39 Edited at: 19th Dec 2019 07:37
EHI GUYS
i have aquestion for you

I'm using this lines of code to add my custom ammo counter


how can I add my weapon custom hud and how can I make ammo cound doesnt appear when player uses a melee weapon?



or simplier how can i transfer the standard "ammo and weapon hud" set on the left by default to the right of the screen? which is the script in GG taht hold these panels functions?

i know that for icon i need to create a new icon.png and pace it to the gun folder i want to change icon with my custom one , and set the statuspanelcode= 100 in the gunspec.txt in the same folder but how can i place the ammo and weapon status panel on the right of the screen?
PC 2 Specs:
AMD RYZEN 2600 SIX CORE @3,70, 64GB RAM DDR4 2400, M/B GIGABYTE AX370
SVGA NVDIA 1660GTX 6GB , SSD M.2 TRANSCEND S110 1TB, 1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB


PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB

The author of this post has marked a post as an answer.

Go to answer
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 19th Dec 2019 10:02
This post has been marked by the post author as the answer.
i have just had this working perfectly.....



When you don't have any weapon nothing is shown.
When you have a melee weapon nothing is shown.
When you have a ranged weapon the numbers are shown.
If you switch between them the numbers show and hide as they should per weapon.

You don't need any other stuff, you don't need to detect what weapon you have, it goes simply by the numbers, if it's below zero and above 1000 then it won't show the numbers.

Don't forget this is for custom huds, so you need to put HideHuds() in your _init function to hide the default ones.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
JC LEON
13
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Dec 2019 21:01
many thanks Roy... tried and worked fine... thanks mate
PC 2 Specs:
AMD RYZEN 2600 SIX CORE @3,70, 64GB RAM DDR4 2400, M/B GIGABYTE AX370
SVGA NVDIA 1660GTX 6GB , SSD M.2 TRANSCEND S110 1TB, 1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB


PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-03-28 22:22:01
Your offset time is: 2024-03-28 22:22:01