Quantcast
Channel: Project Reality Forums - PR:BF2 Community Modding
Viewing all articles
Browse latest Browse all 924

[Help] HUD variables

$
0
0
Yo yo!

Started editing some PR HUDs and now I have a question. We (HUD editors) all know this part of HUD code.

Code:

hudBuilder.setNodeShowVariable
So when we want to make one node to do something specific E.G. we made a plain text and we want to add function so it prints on screen every time you aim at enemy for example, we copy the code from stock files.

I want to know it a little bit deeper. Where are those Variables located?

I figured there are two types of how to add variable, either add it normally, or add it so it is EQUAL to some other:

Code:

hudBuilder.setNodeLogicShowVariable        EQUAL GuiIndex 29
or
Code:

hudBuilder.setNodeShowVariable                        HavocTVTargetLabel0Show
So my question is, where are those variables inside of game files available for editing? For example:

This is a part of HUD code that allows text on screen to blink every few seconds...

Code:

hudBuilder.setNodeShowVariable                        TVBlink
How I'd make so it blinks every 10 seconds? So, I'd like to know, where are all of these variables located and ready for editing? Is it Python maybe?

I want to do this, because I'm trying to recreate real-life system for missile launch detection for PR, so every time someone fires a missile in you while your are in aircraft, you get red text printed in right part of screen saying: SAM WARNING

Ty, apache!

Viewing all articles
Browse latest Browse all 924