Product Chat / HUD Layers - (NOT For Weapons)

Author
Message
ALieNz
4
Years of Service
User Offline
Joined: 8th Apr 2020
Location:
Posted: 15th Apr 2020 18:01 Edited at: 15th Apr 2020 19:16
I can't seem to find any tutorials on this....or any custom creations...but I have created a new hud layer that I want to appear when I pick up an object.... just like the Jetpack... It isn't a weapon..so I am not referring to the hudlayer arms that appear when holding a weapon...

How do I go about setting this up scripting wise? The jetpack looked pretty complicated and it has files spread throughout all of gameguru's game folders..Not sure where to begin.

If I can just figure out how to set it up in the folders, and a maybe a line of script to call/exit it, that would help me loads. Again just to be clear, I am not talking about UI images such as health or anything like that. Im talking about an object that follows the player, the jetpack being a good example/

Thank you.
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Apr 2020 21:21 Edited at: 15th Apr 2020 21:23
Theres not really a "HUD layer" as such in gameguru, we use sprites pasted on top of the screen to create huds, not at my pc at the moment, but if I get a free minute tomorrow I'll put something basic together to show you how it's done.

Scrub that I missed the last paragraph and thought you meant like health ammo inventory etc. That other stuff in the last paragraph I know nothing about lol

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.
ALieNz
4
Years of Service
User Offline
Joined: 8th Apr 2020
Location:
Posted: 15th Apr 2020 22:07
Dang it lol

I've been studying the jetpack....seems to have the hudlayer mentioned in the jetpack's .FPE...I've tried assigning my own similarly, but haven't had results.

no mention of HUDLayers in the jetpack.lua...at least that I was able to see.

it doesn't seem too difficult once I can figure it out
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Apr 2020 22:18 Edited at: 15th Apr 2020 22:22
yeah when i said there are no real hud layers, i meant for health huds etc. i didn't realise you were talking about attachments.

I'm not really sure how the jetpack works, never really played with it, but i do know it works like a weapon the arms etc are in gamecore/hudlayers. How gameguru uses the jetpack on the character i have no idea, i think it's either hardcoded, or defined in the gameplayer.lua

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.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Apr 2020 22:25
Ah yes, the controls for it are defined in the gameplayercontrol.lua , no idea how it accesses the HUDlayer etc. might be hard coded.

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.
ALieNz
4
Years of Service
User Offline
Joined: 8th Apr 2020
Location:
Posted: 15th Apr 2020 23:13 Edited at: 16th Apr 2020 00:52
***
Edit: I think the HUD layer is prompted in the .FPE for the jetpack. the command is "ishudlayer = 1"
***
Hm...

any idea how to find another solution to accomplish my goal?

My game is set to play in third person.

Some features I want to be switched in first person.

When that happens, i'd like to have a 3d hudlayer (kind of lik the jetpack, but no animation needed)

In this situation I want to use the grapple hook script, which only works best in first person. Setting it as a weapon won't allow me to to put it away/swap it out/pick up other stuff...so in a sense im like..faking my own weapon's system..

The way that it the grapple script works is there is a floating entity (whatever you assigned the script to) until it is fired, where it will launch and then pull you. I have the actual Hook of the grapple gun assigned to this... it looks good..but instead of having a floating hook, I want a static arm reaching out holding the grapple gun. I have already positioned the hook and the grapplegun/arm where I would need them to be if they were both in use...

Just not sure how to display the arm/grapplehook as a "show piece"
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Apr 2020 10:26
The jetpack is treated like a weapon, it has a HUD.X model and an fpe file to give it the correct setup - don't remember the exact folder but there is another (i.e. not the entitybank files) that will help
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Apr 2020 10:44
You has jetpack in gamecore folder, even the hudlayers and attachments.

Quote: "HUD LAYERS are the 2D and 3D assets that can be layered over the top or integrated
into the First Person Camera View such as Jet Packs, Helmets, Status Displays, Etc"
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-11-23 17:24:31
Your offset time is: 2024-11-23 17:24:31