winstxnhdw / lc-hax

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

How do I disable certain features? #6

Closed MythicalTrashcan closed 9 months ago

MythicalTrashcan commented 9 months ago

This works great, but I can't choose what I do and don't want. For example, I may not want infinite sprint, but may want clear vision. Is there some config file I haven't noticed?

winstxnhdw commented 9 months ago

Hey, you are right in that there is currently no way to toggle certain features during runtime, and I am not sure if this is something I want to implement yet unless I see more desire for it.

For now, however, you can disable certain features by commenting out their modules in this file.

For example, if you want to disable the StaminaMod just do the following.

static void LoadHaxModules() {
        DontDestroyOnLoad(Loader.HaxModules);

        Loader.AddHaxModules<SaneMod>();
        Loader.AddHaxModules<ChatMod>();
        // Loader.AddHaxModules<StaminaMod>();
        Loader.AddHaxModules<ShovelMod>();
        Loader.AddHaxModules<WeightMod>();
        Loader.AddHaxModules<PhantomMod>();
        Loader.AddHaxModules<ClearVisionMod>();
        Loader.AddHaxModules<RemoteExplosiveMod>();
}
LTYGUY commented 9 months ago

going ghost guys

MythicalTrashcan commented 9 months ago

Could you not just make all of these be mixed in with the commands? That's what I tried before I realized I couldn't disable in-game.

winstxnhdw commented 9 months ago

Yeah, I could but I am trying to balance user experience and customisability. I reckon that there aren’t many people who’d want to disable infinite stamina. Let’s say I do make every command toggle-able, now the user has to remember 𝑥 number more commands. I believe some opinionation is necessary.

If the reason for disabling infinite stamina is to emulate finite stamina, can’t you just stop running after a while? Spectators can’t see your stamina bar and most players can’t tell if you are running for a prolonged period because of the first-person spectator mode.

MythicalTrashcan commented 9 months ago

Good point. But for me, that quick customization you can pick from anytime like a GUI or so would be great. Not sure what others would think. If you ever plan to add this customization, I would use a config file to store keybinds or something.