Page 2 of 2

Re: Custom HUD - Multiple Reticules

Posted: Mon Apr 30, 2012 10:44 am
by THEWULFMAN
Fiodis wrote:If you play AQT's/Duck's/Ande's Republic Commando maps, the first-person commando helmet overlay is a HUD element, I think. (Or it's just modelled into the first-person mesh, I can't remember which.)

It's modeled into the first person mesh. If it was part of the HUD, then the droids would get the same Commando Visor mesh as well. :P D.U.C.K. told me many months ago, back when I toyed with the idea of adding a clone visor in TCW.

Re: Custom HUD - Multiple Reticules

Posted: Sat May 05, 2012 10:59 am
by lucasfart
Hidden/Spoiler:
[quote="lucasfart"]
Also, if you're reading this Zerted, whenever I try and use the example finder application, I get this error message in a "Java Virtual Machine Loader" popup:
[quote]Could not find the main class: Files. Program will exit.[/quote]

I have the correct version of java installed. Am running windows 7 ultimate 64 bit - I've tried as admin and in compatibility mode for XP SP3 with no changes.

EDIT: I'm trying TheWulfMan's technique of two icons, but I'm not sure how to manipulate the second one. In my extraweapons.hud, I've changed the reference from
[code]NameMesh("halogun", "com_inv_mesh")[/code]
to
[code] NameMesh("halogun", "pistol_reticule")[/code]

I then added the positioning info for "pistol_reticule" like so:
[code]
MeshInfo("pistol_reticule")
{
Position(-500.00000, -500.00000, -500.00000, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.260000, 0.260000, 0.260000)
}[/code]
, but it's still not working properly. The mesh shows up, but it's not in position, and the scaling doesn't make a difference.

Also, is there any way to specify a weapon in the eventenable line?
ie. Change [code]EventEnable("player1.weapon1.mesh")[/code]
to [code]EventEnable("player1.weapon1.halogun")[/code],
where "halogun" is the mesh name.[/quote]
Sorry for having so many questions. :P I'm now trying to add a custom icon to my hud - a little health "+" icon - but I'm having difficulty getting it to show. Here's the section of my HUD (it's a part of the group player1healthbar):

Code: Select all

	Bitmap("player1healthicon")
    {
        Bitmap("healthicon_centre")
		Scale(10.8000, 10.8000, 0.8000)
        Rect(1000, 1.1404, "Center", "Center", "Viewport")
        Viewport(1)
		Position(0.0, -0.0, 0.000000, "Viewport")
        ZOrder(3)
        Alpha(0.750000)
        Color(0, 123, 255)
    }
So really, my question is this - can i use a bitmap/image as a hud icon, or must it be a mesh?