official-notfishvr / Fish-Lethal-Company-Menu

This Is Lethal Company Mod Menu
38 stars 5 forks source link

Delete #7 #7

Closed armorfid closed 9 months ago

armorfid commented 10 months ago

Seems like it's still broken, however the GameMaster mod has a working god mode, maybe you can use it: https://thunderstore.io/c/lethal-company/p/GameMasterDevs/GameMaster/source/

public class TestMod : BaseUnityPlugin
{
    ...
    private readonly Harmony harmony = new Harmony("Posiedon.GameMaster");
    ...
    private void Awake()
    {
        ...
        harmony.PatchAll(typeof(TestMod));
        ...
    }
    ...
    [HarmonyPatch(typeof(PlayerControllerB), "AllowPlayerDeath")]
    [HarmonyPrefix]
    private static bool OverrideDeath()
    {
        if (isHost)
        {
            return !enableGod;
        }
        return true;
    }

thx for the menu btw, it's damn fun