Scripts / Help with HUD relocations

Author
Message
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 30th Jul 2016 00:34 Edited at: 19th Aug 2016 11:50
HI all, I hope you can help me move the huds in my first game. Can this be achieved with lua sctipting?
Image attached.

Thanks for any help
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2, Air cooled

Laptop - M17xR3

Attachments

Login to view attachments
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 30th Jul 2016 18:01
hi gd,
I believe that the basic hud is hard coded, however you can use HideHuds() in a script and then create your own using sprites.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 31st Jul 2016 13:08
yes you can



There's a script somewhere on this forum by smallg that makes does it for you.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
brco900033
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 22nd Jul 2014
Location: Belgium
Posted: 31st Jul 2016 15:17
It is actually very easy to create your own HUD, using sprites and the text commands.
All the variables you need for showing ammo count, lives etc...are available. Just check the global.lua file to find them all (located at the top of the file).
PM
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 1st Aug 2016 09:38 Edited at: 19th Aug 2016 11:51
Hi guys, thanks for your help will search the forum again to check this and the global.lua file too

I will post my results for any new guys like me to see.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2, Air cooled

Laptop - M17xR3
PM
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 29th Aug 2016 19:11 Edited at: 30th Aug 2016 12:46
HI guys, after looking at a few scripts on this forum I found that lee's and CR4CK3T script helped the most. Lee's script was from a twitch he made and posted on you-tube.

I have just updated the script to work with sprites like in the images below. I have enlarged all the graphics for this demo.

I started with CR4CK3T script which is here:-
[GER] [ENG] Modern Hud

Then found Lee's GG twitch posted on you-tube
Broadcast #36 : Player And Entity Health Types

Lee's files were add to the core files in the script bank located here:-

\Program Files (x86)\Steam\SteamApps\common\Game Guru\Files\scriptbank\stories\HealthTypes\

Any newbie like me should take a look, as they are easy to update and make it work for you.

As you can see in the four images attached the shield is set at 200, health at 100 and the bars go down by 12-25% each time.
In the second image you will see the shield is at 60 shield points left and the bar image looks less. This is correct as the shield is set to 200 points not 100 points like the health bar, so the shield image bar is updating correctly.

I have found that they don't really need to decrease by less then 12.5% for health and 25% for shields based on 100 for health and 200 for shields. This is due to the amount of damage taken and that the shields are set double the amount of the health based on Lee's script for this demo. You could add more images if you want to show smaller amounts of damage like in CR4CK3T demo.

This works for me in a medieval game style I'm making.

Keep in mind that at this point in time you can only set the sprites (000.png, 001.png - 017.png etc.) to show one at a time on screen when loading in to an array from your image directory (but you can load images individually as many as you want).
A workaround for this, is to load other image(s) like I have for the 100% health bar in to the holding area on screen for that location of the health bar. This is just until the shields reach 0%, then I move the 100% health bar off screen. You will need this once you loss a life to reappear showing your shields and health again (do not delete the sprite or it will not appear again). Easy to do with an [ if, and, else] statement.

Example:-


-------------------------------------------------------------
Any question please post here or PM me.

gd Ed.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2, Air cooled

Laptop - M17xR3

Attachments

Login to view attachments
PM
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 17th Sep 2016 20:43
Just wanted to let anybody who comes across this post that I have had some luck and made a new post here:-


New skull health hud with lua

Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Air cooled

Laptop - M17xR3
PM
gd
8
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 20th Sep 2016 15:04
Just so you can see the above shield and health HUD in GG I have added a link to the you tube video. Take a look below.

My first health HUD... Processing 95%
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Air cooled

Laptop - M17xR3
PM

Login to post a reply

Server time is: 2024-12-22 22:51:05
Your offset time is: 2024-12-22 22:51:05