Product Chat / Replacing Ammo and Life HUD?

Author
Message
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 4th Nov 2018 16:19
I understand that the ammo and life HUDs are found in:
common\Game Guru\Files\languagebank\neutral\gamecore\huds\

I know that they are controlled via the gunspec file in the game core for each weapon.

I know that the settings are as follows:
;// GUN HUD (0-colt,1-magnum,2-uzi,3-shotgun,4-rifle,5-rpg)

Here is my question.
Is there no other way to use any HUDs for this than the default HUDS the ones that come with GG?
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 5th Nov 2018 02:16 Edited at: 5th Nov 2018 02:17
I did this awhile back.

The same sort of thing could be applied to ammo and guns I imagine. You could probably alter the defaults to look different as well.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 5th Nov 2018 05:00
About the pictures in the hud just under the numbers for the ammo.
I am not looking to turn them off and on or build a new health hud.
I am looking to add another picture for the weapons hud, add it to the existing selection.
If I am using a custom weapon how do I get my own picture for it to show as well as the ;// GUN HUD (0-colt,1-magnum,2-uzi,3-shotgun,4-rifle,5-rpg).
I have created my own hud but cannot find the way to get it to show just below the ammo display.
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 5th Nov 2018 13:28 Edited at: 6th Nov 2018 08:09
@Incenseman2003, Hi to create your own icon all you need to do is create a png and call it icon.png make sure it as a transparent background and the actual weapon image is pure white, then in the gunspec.txt add or change this line 'statuspanelcode = 100'

Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Various Tutorials by me

Attachments

Login to view attachments
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 5th Nov 2018 21:24
This seems far too simple.
I tried it and it did not work.
There must be something more to it.
PM
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 5th Nov 2018 21:32
Also the new weapon fires and if the cross hairs are below the horizon I can hear the firing sound, However if the cross hairs are above the horizon I cannot hear the firing sound.
I have tried a number of things and have not found a fix.
What would you suggest?
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 6th Nov 2018 08:16
Quote: "This seems far too simple.
I tried it and it did not work.
There must be something more to it."


If it didn't work then there must be something you have done wrong because that is how it works, and it does work.

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.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Tomik18
GameGuru TGC Backer
14
Years of Service
User Offline
Joined: 8th May 2009
Location: Slovakia
Posted: 6th Nov 2018 08:37 Edited at: 6th Nov 2018 08:38
gunspec.txt you can find in where you download GG from steam and go to "...Files/gamecore/guns" and open folder where is the gun you need change HUD. open gunspec.txt find "statuspanelcode" and change to 100, and the HUD icon copy into folder where you change gunspec.txt
My PC specs: AMD FX 4300 3,80 Ghz
R9 280 3GB
8 GB RAM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 6th Nov 2018 08:48
Making custom weapons is not easy, changing the HUD is probably the easiest part of it, and yes it is that simple

Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Various Tutorials by me
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 6th Nov 2018 10:05 Edited at: 6th Nov 2018 10:09
I appreciate your help.
I truly do.
I followed what you said to the letter.
The script change that you outlined I have done exactly what you suggested. No other changes were made to the script.
The PNG icon that I created. It has a transparent background and the weapon image is white.
The result was not as expected.

Attachments

Login to view attachments
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 6th Nov 2018 10:27 Edited at: 6th Nov 2018 10:28
its no problem, you icon was a little too big, I have done one for you the icon.png needs to go into \files\gamecore\guns\'your gun folder' it needs to be in the same place as your gunspec.txt file

Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Various Tutorials by me

Attachments

Login to view attachments
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 6th Nov 2018 21:33 Edited at: 6th Nov 2018 21:33
Dude! That is awesome. It did not occur to me that the size would be a factor.
Works like a charm.
Thanks a ton.
PM
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 6th Nov 2018 21:52 Edited at: 6th Nov 2018 23:12
PM
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 6th Nov 2018 22:22 Edited at: 6th Nov 2018 23:13
PM
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 15th Nov 2018 15:49
great to see when things work out for people
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960

Login to post a reply

Server time is: 2024-04-23 23:45:00
Your offset time is: 2024-04-23 23:45:00