Page 1 of 1

Remove Player HUD Icon

Posted: Sat Nov 05, 2016 2:19 am
by AnthonyBF2
I want to remove the big white arrow that represents the player's icon and the the view cone thing because it is becoming an eyesore. I have tried loading new hud_white.tga with total transparency which gives me what I want (not seeing big white arrow) but at the same time modding this texture bugged out the weapon reticle causing it to be all black, with no hit flash.

I also don't what to actually look for in the HUD file related to this. Any help would be cool.

Re: Remove Player HUD Icon

Posted: Sat Nov 05, 2016 6:26 am
by Anakin
From the hud file:
Hidden/Spoiler:
[code]
Map("player1map")
{
PositionSmall(0.917484, 0.110884, 0.004111, "Viewport")
PositionLarge(0.308639, 0.556811, -38.133076, "Viewport")
PositionSpawn(0.767984, 0.477156, 0.000000, "Viewport")
EventToggleMapMode("player1.map.modeToggle")
EventChangeMapMode("player1.map.mode")
EventPostHide("player1.map.hideCPs")
EventRefreshTarget("player1.map.refreshTarget")
EventRefreshPost("player1.map.refreshPost")
EventRefreshMarker("player1.map.refreshMarker")
EventPlayerIndex("player1.index")
PropagateAlpha(1)
Position(0.917484, 0.110884, 0.004111, "Viewport")
Scale(0.820000, 0.820000, 0.820000)
ZOrder(127)
Alpha(0.850000)
EventEnable("player1.map.enable")
EventDisable("player1.map.disable")

BackdropSmall("BackdropSmall")
{
Mask("map_mask")
TexCoords(0.248419, 0.564873, 0.470641, 0.787095)
ZOrder(255)
Alpha(0.500000)
}

PlayerFOVSmall("PlayerFOVSmall")
{
Mesh("hud_map_fov")
ZOrder(123)
}

PlayerDirectionSmall("PlayerDirectionSmall")
{
Mesh("hud_map_fov")
ZOrder(124)
Alpha(0.200000)
Color(255, 255, 0)
}

TargetSmall("TargetSmall")
{
BitmapStyle("Shadow")
ZOrder(126)
Color(0, 0, 0)
}

PostSmall("PostSmall")
{
BitmapStyle("Shadow")
}

PostTextSmall("PostTextSmall")
{
TextBreak("Word")
TextFont("gamefont_small_rc")
TextAlignment("Center", "Bottom")
ZOrder(127)
}

PostSelectSmall("PostSelectSmall")
{
Bitmap("hud_icon_flash")
BitmapStyle("Shadow")
}

MarkerSmall("MarkerSmall")
{
BitmapStyle("Shadow")
ZOrder(0)
}

NorthSmall("NorthSmall")
{
Bitmap("hud_map_northpointer")
BitmapStyle("Shadow")
Position(0.000000, -0.110000, 0.000000, "Viewport")
Scale(2.000000, 2.000000, 2.000000)
ZOrder(127)
}

BackdropLarge("BackdropLarge")
{
Mask("map_mask")
ZOrder(255)
Alpha(0.500000)
}

PlayerFOVLarge("PlayerFOVLarge")
{
Mesh("hud_large_map_fov")
ZOrder(0)
Alpha(0.500000)
}

PlayerDirectionLarge("PlayerDirectionLarge")
{
Mesh("hud_map_fov")
ZOrder(124)
Alpha(0.200000)
Color(255, 255, 0)
}

TargetLarge("TargetLarge")
{
BitmapStyle("Shadow")
ZOrder(254)
Color(0, 0, 0)
}

PostLarge("PostLarge")
{
BitmapStyle("Shadow")
ZOrder(0)
}

PostTextLarge("PostTextLarge")
{
TextBreak("Word")
TextFont("gamefont_small_rc")
TextAlignment("Center", "Bottom")
ZOrder(127)
}

PostSelectLarge("PostSelectLarge")
{
Bitmap("hud_icon_flash")
BitmapStyle("Shadow")
}

MarkerLarge("MarkerLarge")
{
BitmapStyle("Shadow")
ZOrder(0)
}

NorthLarge("NorthLarge")
{
Bitmap("hud_map_northpointer")
BitmapStyle("Shadow")
Position(0.000000, -0.375000, 0.000000, "Viewport")
Scale(5.000000, 5.000000, 5.000000)
ZOrder(127)
}

BackdropSpawn("BackdropSpawn")
{
Mask("map_mask")
ZOrder(255)
Alpha(0.500000)
}

PlayerFOVSpawn("PlayerFOVSpawn")
{
ZOrder(123)
}

PlayerDirectionSpawn("PlayerDirectionSpawn")
{
ZOrder(124)
}

TargetSpawn("TargetSpawn")
{
BitmapStyle("Shadow")
ZOrder(126)
Color(0, 0, 0)
}

PostSpawn("PostSpawn")
{
BitmapStyle("Shadow")
}

PostTextSpawn("PostTextSpawn")
{
TextBreak("Word")
TextAlignment("Center", "Bottom")
ZOrder(127)
}

PostSelectSpawn("PostSelectSpawn")
{
Bitmap("hud_icon_flash")
BitmapStyle("Shadow")
}

MarkerSpawn("MarkerSpawn")
{
BitmapStyle("Shadow")
ZOrder(0)
}

NorthSpawn("NorthSpawn")
{
Bitmap("hud_map_northpointer")
BitmapStyle("Shadow")
Position(0.000000, -0.325000, 0.000000, "Viewport")
Scale(5.000000, 5.000000, 5.000000)
ZOrder(127)
}

}
[/code]
find the element you want to remove. I think it's maybe hud_map_fov.msh you can find it under data/common/mesh. Follow my HUD tutorial to remove the mesh.
Removing the texture doesn't work because if there is a texture missing the mesh is painted black. furthermore the white.tga is used by many meshs. So best way is to remove the mesh instead of it's texture

Re: Remove Player HUD Icon

Posted: Sat Nov 05, 2016 1:03 pm
by AnthonyBF2
I followed your HUD guide and the player icon still remains. I attempted to make a new file with hud_large_map_fov.msh and hud_map_fov.msh scaled to 0.0 but it didn't do anything.

Re: Remove Player HUD Icon

Posted: Sun Nov 06, 2016 6:16 am
by Anakin
did you load the new mesh at the right position??