You are viewing a potentially older version of this package. View all versions.
VirusTLNR-LethalIntelligenceExperimental-0.1.3 icon

LethalIntelligenceExperimental

[V50][V55][EXPERIMENTAL]Improved AI in Lethal Company (WIP)

Date uploaded 3 days ago
Version 0.1.3
Download link VirusTLNR-LethalIntelligenceExperimental-0.1.3.zip
Downloads 987
Dependency string VirusTLNR-LethalIntelligenceExperimental-0.1.3

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
xilophor-LethalNetworkAPI-2.2.0 icon
xilophor-LethalNetworkAPI

A library/API to allow developers to easily add networking to their mods.

Preferred version: 2.2.0

README

LethalIntelligence

Information

A mod aiming to tweak all AI in the game to have improved flavour and perhaps be more intelligent

This mod is built upon Piggy's "MaskedAiRevamp v0.2.1" (https://thunderstore.io/c/lethal-company/p/Piggy/MaskedAIRevamp/).

As piggy wrote in the readme for v0.2.1 - this mod maybe very buggy, i hope to make it more stable over time!

All clients must have this mod installed for it to work!

There is compatibility with RugbugRedfern's SkinWalkers mod.

The current version is a very very early version, no optimization work has been done, so you may experience significant frame drops even with high PC specs!!!

Also... There may be tons of bugs. (please do report them to me, either via github or the Lethal Company Modding Community on discord!)

Note re:DebugMode

There is now a setting in config for debug mode, for normal play, please leave this turned off.

if you turn this on.. OR Imperium is installed.. debug mode will be turned on, this will provide more logs (potentially more spammy), if debug mode is on, regular "status" reports will be logged for every masked. If you are having issues, feel free to turn this mode on, replicate the issue, then send me the log.

Mod Features

Masked Behaviour (spoiler?):
  • Aggressive

    • If you have a dropped shotgun, pick it up and shoot people.
    • If there is a player with a shotgun, attack with a shovel type item.
    • will almost always target a detected player. (also has a player focus where they 100% focus on chasing you til you are dead)
  • Stealthy

    • Will mimic players
    • will hide from players
    • very unlikely to target players
  • Cunning

    • Stealing items in the area around the ship and hiding them in bushes (max 5 items)
    • Call a fake dropship using the terminal
    • Tampers with the breaker box to turn off the lights, will keep turning the lights off while they are alive and the lights are turned on.
  • Deceiving

    • Uses terminal codes to make you think someone is in the ship and help/hinder you.
    • will tend to ignore you in favour of making you beleive they are a player.
  • Insane

    • Uses signal translator to make you think someone is in the ship and help/hinder you.
    • can "sabotage" the apparatus (after 2pm only)
    • will make the ship take off after it has completed sabotaging the apparatus.. fair warning will occur as long as you own a signal translator.
    • will tend to target players more than most other personalities

Known Issues

  • Personality selection sometimes bugs out in 0.1.2, potentially fixed in 0.1.3

Mods

Recommended to install with this mod:

  • 'MaskedEnemyOverhaulFork' mod by Coppertiel (the original by HomelessGinger is bugged at time of writing this).
  • 'Skinwalkers' by RedbugRedfern. OR 'Mirage' by qwbarch OR 'Wendigos_Voice_Cloning' by Tim_Shaw (no integration for mirage as of yet, but it is planned when mirage v2 is out)

Thanks to...

  • Piggy for the original Masked AI Revamp to which this mod is built on and inspired me to do more, and for the permission to use your code as a base point.
  • TestAccount666 for the signal translator code from AutomaticSignals.
  • MattyMatty for the LobbyCompatibility softdependency class.
  • Kite (on discord) for the Masked joining/leaving terminal fixes.
  • WhiteSpike (on discord) for help and suggestions regarding the breaker box.
  • Tim_Shaw for help on trying to make their mod compatible.
  • XuXiaolan for help/advice/tips with spawning items as well as many other things (soon to be too many things to mention).

CHANGELOG

Changelog

0.1.3 - the Masked "Insane" Escape Patch

  • added MIT License (same as MaskedAIRevamp used)
  • added the breakerbox powerboxdoor is now opened before it is used by a masked.
  • added "sabotaging the apparatus" to Insane's focuses which then leads to another Focus (Escape), Apparatus focus can only happen after 2pm ingame time as it is the start of a "day ending" event.
  • added "escape" focus to insane's focuses, this can only occur if the masked has completed the "Apparatus" focus.
  • added variables to Imperium (v0.2.0) visualisers for the masked
  • changed ai "update" timing from invoke (heavy reqs, 1 update per 0.1s) to "FixedUpdate" (light, but 1 update per 0.02s) in a bid to reduce fps losses even more.

0.1.2

  • switched from FPS based timing to a fixed update timing of 0.1s and fixed all relevent timing issues related to this change.
  • fixed some variables not updating since v0.1.1 leading to masked being unable to perform some tasks.
  • fixed masked "sight" parameters to correct the sight they have so they are not seeing through the back of their skulls (well almost..)
  • fixed a bug where a masked dying on the terminal prevented all other masked from using the terminal for the rest of the round

0.1.1

  • attempted to improve the pathing to the breaker box
  • prevented "Stealthy" from focusing on items as they have no logic for items.
  • potentially fixed an issue with fps drops due to heavy calculations, hopefully this fix doesnt cause other issues :)

0.1.0

  • fixed null reference exception regarding to MaskedAggressive Focus.Player when player escapes the masked.

0.0.9

  • Added some basic background coding to help debug issues quicker while using Imperium. (for my benefit really).
  • Potentially fixed an issue with item log spam due to errors with the list when a masked spawns (usually due to items being "removed" from the game completely i think))
  • Made it so personalities can be turned on/off, if you turn off all personalities, the whole "Masked AI" functionality will automatically be disabled.

0.0.8 - Masked AI Revamp Coding Re-Write patch

  • Rewritten a big chunk of the Masked AI Revamp original code, we have gone from "Personalities" only, to include "Focuses" and when there is no focus.. "Activities"
  • Potentially added integration with Wendigos_Voice_Cloning by Tim_Shaw (please do test and let me know how it goes :))
  • Removed some code branches which I could not fit into the new code logic branches of Personality/Focus/Activity.
  • Fixed masked loving to linger at the main entrance, they should now "reposition" themselves between the MainEntrance, The ShipLocker and the BreakerBox.. I plan to add the "Apparatus" and the "FireExits" as other options in the future.
  • Potentially fixed a bug where more than 1 masked will use the terminal.
  • Masked now have a random chance to change focus to a nearby detected player (depends on the personality what the chance is, from something like 20% to near 100%)
  • Fixed an issue where the mod would flag up as a virus on some Anti-Virus scanners due to having the word "Virus" in the AssemblyName.

0.0.7 - the Masked "Cunning" major fix patch

  • Masked "Cunning" will now successfully steal 1 item from the ship and will no longer bring items to the ship, the stolen item will be hidden in a 'bush' on moons that have 'bushes'. may steal more items as well.
  • Masked "Cunning" will tamper with the breaker box (turn it off), they may be able to turn it on if its already off.. then turn it off later.. but this doesnt 100% work yet.
  • added a check to fix an issue with Masked<->Player collision that caused incompatibility with DramaMask
  • Fixed the list of items which "Cunning" can use to take items from the ship
  • Modified some animation selection logic to hopefully stop the masked using incorrect animations.

0.0.6

  • Potentially fixed masked "aimbot" by stopping them look at you if they visually cant see you
  • potentially fixed an issue causing masked to run slowly

0.0.5

  • Fixing masked terminal interactions (hopefully) (joining/leaving mostly)
  • Prevented a null exception related to masked picking up items

0.0.4

  • Added more words to the selection of words for the insane to use.

0.0.3

  • Fixed "SoftDependency" with BMX.LobbyCompatibility

0.0.2

  • Added a new masked Personality (Insane) - may rename this later, but for now this is what it is called, the Insane will enter randomised signal translator messages to confuse/help/kill you. More functionality will come soon.
  • Fixed the "Deceiving" Personality where in it seemed like it didnt actually do anything at the terminal, it will now enter terminal codes at the terminal for a period of time (a set amount of codes), there is a randomised time delay between codes.

0.0.1