winstxnhdw / lc-hax

A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
77 stars 25 forks source link

[Bug]: Crosshair Mod #398

Closed D1GQ closed 4 months ago

D1GQ commented 4 months ago

What happened?

I don't know if this is exclusively for me but I've noticed once the Crosshair gets rendered in game and you exit to the menu you still have it, the current method used does have a condition to render but if the condition isn't met it just returns it doesn't unrender the Crosshair, here's a simple fix I did.

Crosshair Mod:

Code:

void OnGUI() {
    if (this.InGame)
    this.RenderCrosshair();
    else
        this.UnRenderCrosshair();

}

    void UnRenderCrosshair() {
}

Current Commit Hash

none

Injector

If you selected "Others" above, please specify the injector you are using.

No response

Log output

No response

Acknowledgement

winstxnhdw commented 4 months ago

There’s no need to unrender the crosshair because not rendering it is the same as unrendering it.

D1GQ commented 4 months ago

There’s no need to unrender the crosshair because not rendering it is the same as unrendering it.

I guess the issue is exclusive to me then, because with the original code the Crosshair would just stay.

winstxnhdw commented 4 months ago

Yeah, it’s more likely that your InGame flag is not becoming false.

D1GQ commented 4 months ago

It's probably because of some type of modification I did, I do a lot of modifications of the code to suit me, it's just this wasn't happening until I updated I had to transfer all of my modifications, so I thought it was just a bug. Sorry.