Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I disable certain features? #6

Closed
MythicalTrashcan opened this issue Dec 13, 2023 · 5 comments
Closed

How do I disable certain features? #6

MythicalTrashcan opened this issue Dec 13, 2023 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MythicalTrashcan
Copy link

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
Copy link
Owner

winstxnhdw commented Dec 13, 2023

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>();
}

@winstxnhdw winstxnhdw added the good first issue Good for newcomers label Dec 13, 2023
@winstxnhdw winstxnhdw pinned this issue Dec 13, 2023
@LTYGUY

This comment was marked as spam.

@winstxnhdw winstxnhdw changed the title Not enough cuatomization How do I disable certain features? Dec 13, 2023
@winstxnhdw winstxnhdw added enhancement New feature or request wontfix This will not be worked on labels Dec 13, 2023
@MythicalTrashcan
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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.

@winstxnhdw winstxnhdw added help wanted Extra attention is needed and removed wontfix This will not be worked on labels Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants