How to disable crosshair dot? (Where is the crosshair dot stored?)

Hi all,
tl;dr read title, although i assume the location is the same across games

SuperUI technically provides this functionality (Turn off HUD) but it has many problems like not being able to interact with doors & vehicles, which means you need to have HUD turned on to even get out of the Ultor building you spawn in.

What I wanted to do is disable the crosshair during flight and also it appearing when you land and immediately start moving (even with fists - but if you wait for landing animation it works fine), however looking at hud_reticules.lua it did not mention flight anywhere. I also tried changing dot = {true, true} to false, false for pistol but it did not seem to change anything, I assume either that's not how the file works or HVS did not use this .lua
I put the .lua in root of game folder with the rest of SuperUI .lua files (telling incase that's not where I'm supposed to put it).

So, I assume it is easier to simply find the texture used for the crosshair dot and replace it with a blank, transparent image. I have no idea which packfile it's in exactly though, so if someone has already found it in the past (and miraculously see this post) that would really speed up the process for an otherwise simplistic mod.

Thank you for your time!
 
Last edited:
[EDIT]
Made a mod here to hide reticle when not fine aiming, not shooting and not flying
ENJOY Hide Reticle Dot


I would like to know this aswell.
but I found something interesting in here

i think the whole dot and reticle part is in interface.vpp_pc
then unpack hud.str2_pc
open hud.lua

there there's everything you need

we could be able to deactivate it easily on command etc
 
Last edited:
i think the whole dot and reticle part is in interface.vpp_pc
then unpack hud.str2_pc
open hud.lua

there there's everything you need

we could be able to deactivate it easily on command etc
Thanks for your work!
However, I do not use the Expanded Arsenal mod and thus cannot use your work. What's the lua code that actually hides/shows the reticule and dot cursor so I can put it into SuperUI's .lua files? (I don't mind playing the game without any crosshair.)
 
Thanks for your work!
However, I do not use the Expanded Arsenal mod and thus cannot use your work. What's the lua code that actually hides/shows the reticule and dot cursor so I can put it into SuperUI's .lua files? (I don't mind playing the game without any crosshair.)
I'm basicaly editing stock code in hud_reticules.lua from hud.str2_pc
While it's possible to add code into superui.lua it is better to intervene at the root of the reticle creation and that's what i did try.

I can edit the stock file and repack the hud.str2_pc. So i can make a Vanilla version.
you will have to update vint_doc_containers.asm_pc or any asm_pc file that's present in interface.vpp_pc that you modded by yourself i think.

[DONE]
Tell if it is working
 

Attachments

Last edited:
Unfortunately SuperUI comes with its own hud.str2_pc and vint_doc_containers.asm_pc, and thus taking the files by themselves don't work.
I had to extract my hud.str2_pc and yours, put your hud_reticules.lua into my copy, build it again and update the ASM file.
Now it does work!! Thank you so much~ I don't have enough time to figure out things like this nowadays, life is very busy.
Appreciate your code comments as well.
 
I didn't understand what is superui and had is own hud.str2_pc. i didn't check the Mod in progress section. I'll do a clean version for this mod if necessary, thanks for reporting back
 
I think it's better to upload your hud_reticules.lua and post instructions how to use it, so people can intergrate it into their other mods easier.
Making a "clean version" might help some people as well though, so up to you
 
Back
Top