For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

overlaying Hud Material with an inventory item?

The section related to UnrealScript and modding. This board is for coders to discuss and exchange experiences or ask questions.
User avatar
Krull0r
Global Moderator
Posts: 543
Joined: Sun Jul 01, 2007 4:07 pm

overlaying Hud Material with an inventory item?

Post by Krull0r »

Hello!

I have again a question which exceeds my uscript knowledge which are nonexistence by far!


Is it possible to tell an inventory item to overlay a modulated texture over the whole HUD while the item is active without creating a new HUD class and gametype?


Image
User avatar
Masterkent
OldUnreal Member
Posts: 1469
Joined: Fri Apr 05, 2013 12:41 pm

Re: overlaying Hud Material with an inventory item?

Post by Masterkent »

As far as I remember, RenderOverlays is called for weapons only. I don't see any other function in Inventory/Pickup that might work for a non-weapon inventory.

In 227, additional HUD items can be drawn by a HUDOverlay (the number of overlays is not limited).
User avatar
Krull0r
Global Moderator
Posts: 543
Joined: Sun Jul 01, 2007 4:07 pm

Re: overlaying Hud Material with an inventory item?

Post by Krull0r »

Awesome! Thank you very much! I was able to realize the idea I had and added my overlay in the weapons :)
Image
User avatar
Rinkards
Posts: 1
Joined: Sat Dec 01, 2018 8:49 am

Re: overlaying Hud Material with an inventory item?

Post by Rinkards »

How did you do it, Krull0r? Did you do what Masterkent suggested? Seems like a neat idea so I'm thinking I'll try it as well.
User avatar
Krull0r
Global Moderator
Posts: 543
Joined: Sun Jul 01, 2007 4:07 pm

Re: overlaying Hud Material with an inventory item?

Post by Krull0r »

Yes I put the code into the function RenderOverlays into my parent weapon class :)

Since the player always carrys one of those weapons it was the best solution for my uses.
Image

Return to “UScript Board”