Jump to content
Sign in to follow this  
alleycat

HUD over other units

Recommended Posts

I would like to know if the ingame HUD display on other units is accessible for modding or wether it is hardcoded. If it is moddable (by cloning bis functions?) can someone point me to where I can find it?

By HUD I mean the data that is displayed in 3d over friendly units showing distance and type of unit.

Share this post


Link to post
Share on other sites

Hey. Use the config viewer function. It will give you info on anything you need. UI elements included.

[] Call Bis_Fnc_ConfigViewer

Share this post


Link to post
Share on other sites

Thanks, but how is that relating to the ingame HUD on other people? (am I using it wrong?)

Share this post


Link to post
Share on other sites

Are you talking about the green squares you have over units in your group? As far as I know they're hard coded.

Share this post


Link to post
Share on other sites

Not the squares, the unit name and distance. Shows without selecting units in command menu when aiming at someone.

Share this post


Link to post
Share on other sites

Hmm. I gues I'm not understanding. I thought you were wanting to know how to reproduce said HUD elements. Hence, why I referred you to the config viewer, as it would tell you everything you needed to know about any ui/hud elements. Then you could "recreate" them for personal hud or something.

Share this post


Link to post
Share on other sites

It's me probably not getting what to do with the config viewer. I used it ingame and I had no clue what to do with it.

Share this post


Link to post
Share on other sites

Yeah haha, finding what you're looking for, wouldn't be too far from looking for a needle in a hay stack. In any case, all of the UI elements/properties etc are in there.

Share this post


Link to post
Share on other sites

Still thanks for helping out.

In any case I think cutRSC might be useful for slapping stuff on the screen. Investigating that.

Anyone else HATE coding gui stuff?

Share this post


Link to post
Share on other sites

I actually prefer it. I've a knack for making guis. I picked it up very quickly, unlike scripting in general. Unless any element would involve some very complex scripting, it's very easy to me.

Share this post


Link to post
Share on other sites

		if ( cursorTarget isKindOf "Man") then
	{
		_ctrl ctrlSetText 	format["%1", _ent getvariable "kills"];

This actually worked.

I have some questions

1. If I wanted to make a variable publically accessible like this (one player's local HUD script reporting a variable from another player), how would I do that?

Would this work (init.sqf)

player setvariable ["kills", "some value", TRUE];

Would this work on MP? I cant verify this locally on AI players.

2. Is it possible to detect wether a player is scoped/using binocs? Or at least hack it by detecting the FOV?

Share this post


Link to post
Share on other sites

I'm just curious. At first I thought you just wanted to force the game to show the player's name and distance all the time, without having to aim at the player, but you said you wanted to mod that stuff. What did you want to change about it?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×