Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winstxnhdw/lc-hax
A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
https://github.com/winstxnhdw/lc-hax
dotnet-core harmony lethal-company lethal-company-cheat lethal-company-hack lethal-company-mod unity-cheats unity-mono
Last synced: 15 days ago
JSON representation
A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
- Host: GitHub
- URL: https://github.com/winstxnhdw/lc-hax
- Owner: winstxnhdw
- Created: 2023-12-02T10:46:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T18:04:29.000Z (22 days ago)
- Last Synced: 2024-10-29T14:46:29.415Z (17 days ago)
- Topics: dotnet-core, harmony, lethal-company, lethal-company-cheat, lethal-company-hack, lethal-company-mod, unity-cheats, unity-mono
- Language: C#
- Homepage:
- Size: 9.26 MB
- Stars: 88
- Watchers: 6
- Forks: 26
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lc-hax
![NuGet Version](https://img.shields.io/nuget/v/LethalCompany.GameLibs.Steam?style=flat&label=lc-hax&color=red)
[![main.yml](https://github.com/winstxnhdw/lc-hax/actions/workflows/main.yml/badge.svg)](https://github.com/winstxnhdw/lc-hax/actions/workflows/main.yml)
[![formatter.yml](https://github.com/winstxnhdw/lc-hax/actions/workflows/formatter.yml/badge.svg)](https://github.com/winstxnhdw/lc-hax/actions/workflows/formatter.yml)
[![CodeQL](https://github.com/winstxnhdw/lc-hax/actions/workflows/codeql.yml/badge.svg)](https://github.com/winstxnhdw/lc-hax/actions/workflows/codeql.yml)A powerful, feature-rich and highly performant portable Windows CLI-only internal cheat for [Lethal Company](https://en.wikipedia.org/wiki/Lethal_Company). This mod is compatible with [MoreCompany](https://github.com/notnotnotswipez/MoreCompany).
> [!IMPORTANT]\
> To aid in its speed of development, `lc-hax` has no concept of versioning aside from the Git commit history. We make no guarantees for any kind of backward compatiblity. Any feature can be removed or heavily modified to maximise user experience and overwrite poor early decisions.
## Requirements
- Windows 10 or later
- [Microsoft .NET 8.0 SDK](https://dotnet.microsoft.com/download)
- [Git](https://git-scm.com/download/win)## Installation
> [!TIP]\
> If you are uncomfortable with the command line, you can watch the installation [video](https://github.com/winstxnhdw/lc-hax/discussions/389) or follow the opinionated [guide](https://github.com/winstxnhdw/lc-hax/discussions/294).Clone the repository.
```bash
git clone --recursive --depth 50 https://github.com/winstxnhdw/lc-hax.git
```You can now build and install the dependencies by executing `requirements.bat`.
```bash
.\requirements.bat
```## Usage
Execute `launch.bat` when you have launched the game to inject the assembly into the game process. Avoid doing this more than once per instance.
```bash
.\launch.bat
```## Features
`lc-hax` has an extensive list of features. Features are split into two distinct categories: **mods** and **commands**. Mods are features that are always active, while commands are features that are only active for a limited period of time when invoked.
The complete feature set includes the following.
- Anti-kick
- Anti-flash
- Auto-reconnect
- Always sane
- Always lightweight
- Always show HUD
- Always keep items on teleport
- Build anywhere
- Connection spoofing
- Clear vision
- Crosshair
- ESP
- Enemy possession with abilities
- Grab through walls
- Instant interact
- Infinite stamina
- Infinite scan range
- Infinite ammo
- Infinite charge
- Infinite grab distance
- Infinite item usage
- Infinite item deposit
- No/fake reload
- No item usage cooldown
- No lobby refresh delay
- No build constraints
- No character limit
- No pan limits
- Notify teammate's death
- Pocket any item
- Stable Zap gun
- [Commands](#commands)
- [Binds](#binds)### Commands
> [!NOTE]\
> **No one** can see the commands you send.| Action | Command |
| ----------------------------- | ------------------------------------------------ |
| Teleport outside entrance | `/exit` |
| Teleport inside entrance | `/enter` |
| Teleport to a player | `/tp ` |
| Teleport player to player | `/tp ` |
| Teleport to a location | `/tp ` |
| Teleport player to a location | `/tp ` |
| Teleports the player to hell | `/void ` |
| Teleport back to ship | `/home ` |
| Teleport enemies to player | `/mob ` |
| Inverse teleport a player | `/random ` |
| Play noise on player | `/noise ` |
| Bomb player | `/bomb ` |
| Bombard player | `/bombard ` |
| Lure enemies to player | `/hate ` |
| Spawn masked enemy on player | `/mask ` |
| Heal or revive the player | `/heal ` |
| Kill player | `/kill ` |
| Kill all players | `/kill --all` |
| Kill all enemies | `/kill --enemy` |
| Kill player with animation | `/fatality ` |
| Poison a player | `/poison ` |
| Poison all players | `/poison --all ` |
| Spoof a server message | `/say ` |
| Send a translated message | `/translate ` |
| Transmit a signal | `/signal ` |
| Modify shovel damage | `/shovel ` |
| Add or remove experience | `/xp ` |
| Buy an item | `/buy ` |
| Deposit valuable item(s) | `/sell ` |
| Grab scrap(s) | `/grab ` |
| Destroy held item | `/destroy` |
| Destroy all items | `/destroy --all` |
| Block any radar targets | `/block radar` |
| Become untargetable | `/block enemy` |
| Place an unlockable | `/build ` |
| Wear a suit | `/suit ` |
| Change moons | `/visit ` |
| Spin all placeable objects | `/spin ` |
| Stun enemies | `/stun ` |
| Pull the ship's horn | `/horn ` |
| Toggle stun on click | `/stunclick` |
| Toggle kill enemy on click | `/killclick` |
| End the game | `/end ` |
| Start the game | `/start` |
| List all players | `/players` |
| Toggle the Beta badge | `/beta` |
| Get coordinates | `/xyz` |
| Toggle God mode | `/god` |
| Toggle NoClip | `/noclip` |
| Toggle unlimited jump | `/jump` |
| Toggle rapid item usage | `/rapid` |
| Set all objects upright | `/upright` |
| Eavesdrop on all players | `/hear` |
| Fake player death | `/fakedeath` |
| Unlock all doors | `/unlock` |
| Lock all gates | `/lock` |
| Open ship door | `/open` |
| Close ship door | `/close` |
| Trigger the garage doors | `/garage` |
| Explode all jetpacks | `/explode` |
| Explode all landmines | `/explode mine` |
| Upset all turrets | `/berserk` |
| Turn invisible to players | `/invis` |
| Clear the chat for everyone | `/clear` |
| Toggle ship lights | `/light` |
| Copy lobby ID to clipboard | `/lobby` |## Privileged Commands
These commands are only available when the user is host.
| Action | Command |
| ----------------------------- | ------------------------------------------------ |
| Set the timescale | `/timescale ` |
| Set the quota | `/quota ` |
| Spawn enem(ies) on player | `/spawn ` |
| Give or take credit(s) | `/credit ` |
| Eject all players | `/eject` |
| Revive all players | `/revive` |
| Toggle God mode for all | `/gods` |## Special Commands
| Action | Command |
| ------------------------------- | ---------------------------------------------- |
| Set the prefix for all commands | `!prefix ` |### Binds
> [!TIP]\
> You can connect to a specific lobby with Shift + F5 if your clipboard contains a valid Steam ID!| Action | Input |
| ----------------------------- | ------------------------------------ |
| Trigger various objects | M3 |
| Follow player | M3 + F |
| Interact at a distance | M3 + E |
| Toggle ESP | Pause |
| Toggle Phantom | = |
| Teleport to Phantom | + |
| Change spectator index | ⇽ |
| Change spectator index | ⇾ |
| Increase mouse sensitivity | ] |
| Decrease mouse sensitivity | [ |
| Decrease light intensity | F4 |
| Increase light intensity | F5 |
| Toggle Anti-Kick | \ |
| Disconnect from server | Shift + F4 |
| Connect to last joined server | Shift + F5 |### PossessionMod
`PossessionMod` has its own set of keybinds.
| Action | Input |
| ----------------------------- | ------------------------------------ |
| Use primary ability | M1 |
| Use secondary ability | M2 |
| Toggle AI control | F9 |
| Toggle possession NoClip | N |
| Unpossess enemy | Z |
| Despawn and unpossess enemy | Del |### TriggerMod
`TriggerMod` is a quality-of-life mod that allows you to trigger various objects in the game. It is activated by pointing at objects with `M3`. Currently, it can do the following.
- Explode landmines
- Explode unequipped jetpacks
- Trigger turrets
- Toggle gates
- Unlock doors
- Trigger Jeb's attack
- Lure enemies to player
- Follow a player's movements
- Interact with objects from far
- Possess enemies (only in `Phantom`)### Fatality
The `fatality` command allows you to kill a player with a custom animation. The list of supported enemies are:
- Forest Giant
- Jester
- Masked
- Baboon Hawk
- Circuit Bee
- Eyeless Dog
- Bracken
- Nutcracker### Build
The arguments for the `build` command can be executed with either the unlockable index or name. The list of unlockables can be found in the following.
> [!NOTE]\
> Unintuitively, not all unlockables are buildable. Thus, the `build` command also doubles as a pseudo unlock function for unlockables.- Orange Suit
- Green Suit
- Hazard Suit
- Pajama Suit
- Cozy Lights
- Teleporter
- Television
- Cupboard
- File Cabinet
- Toilet
- Shower
- Light Switch
- Record Player
- Table
- Romantic Table
- Bunkbeds
- Terminal
- Signal Transmitter
- Loud Horn
- Inverse Teleporter
- Jack O' Lantern
- Welcome Mat
- Goldfish
- Plushie Pajama Man
- Purple Suit### Disabling Mods
You may permanently disable mods by removing the corresponding `Mod` class under the `LoadHaxModules` function from the following [file](lc-hax/Scripts/Loader.cs). In the following example, we disable `StaminaMod` and you will return to the game's default stamina mechanic in your next injection.
```cs
static void LoadHaxModules() {
DontDestroyOnLoad(Loader.HaxModules);Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
// Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
Loader.AddHaxModules();
}
```### Disabling Patches
There is usually little reason for you to disable patches as they are carefully chosen and come with sane defaults. However, if for whatever reason you wish to disable a patch, you may freely delete any of the corresponding files based on their names [here](lc-hax/Scripts/Patches).
## Uninstalling
Unlike other cheats, `lc-hax` is portable and will never litter your computer with garbage. Deleting the `lc-hax` folder would be the equivalent to uninstalling.
## Whitelisting SharpMonoInjectorCore
Despite being compiled from source locally, SharpMonoInjector is occasionally falsely identified as a virus by Windows Defender. If you believe you know what you are doing, you can run the following command in PowerShell with administrator privileges to whitelist the injector.
> [!IMPORTANT]\
> Do ensure that you are currently in the `lc-hax` directory before executing the command.```ps1
Add-MpPreference -ExclusionPath $pwd, "$env:TEMP\.net\SharpMonoInjector"
```## Alternatives
If `lc-hax` is not your fancy, here are excellent alternatives that may suit your needs!
### Project Apparatus
[Project Apparatus](https://github.com/KaylinOwO/Project-Apparatus) is a popular GUI-first internal cheat based on Infinite Company.
### Lethal Menu
[Lethal Menu](https://github.com/IcyRelic/LethalMenu) is a powerful GUI-first internal cheat based on `Project Apparatus` and `lc-hax`. It supports chams, super speed, fast climbing and more.
## Credits
A big thanks to every contributor of this project and to [Quesoteric](https://github.com/Quesoteric) for the title GIF.