You are viewing a potentially older version of this package. View all versions.
Pauluteli-PlayerMimics-0.1.1 icon

PlayerMimics

Masked become impostor crewmates: player looks, voice cloning and an LLM brain. W.I.P

Date uploaded a month ago
Version 0.1.1
Download link Pauluteli-PlayerMimics-0.1.1.zip
Downloads 147
Dependency string Pauluteli-PlayerMimics-0.1.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305

README

PlayerMimics

Masked become impostor crewmates. A Masked copies a player's suit, MoreCompany cosmetics, name tag, animations, footsteps and (with consent) voice, and a local LLM decides what it does: blend in, follow, stare, wander, lure someone away, emote, talk, carry loot, go through doors, flee, or attack when the moment is right.

Replaces Mirage, MirageRevive, LethalMimics and MaskFixes. Don't install it together with them.

  • Who needs it: everyone in the lobby.
  • Optional: BetterEmotes by KlutzyBubbles (more emotes, including the sign), MoreCompany (cosmetics) and Coroner (the end-of-round report names who the killer was pretending to be, for example "Was killed by a Masked disguised as ImTK.").
  • Host only: the local AI server (~/.local/share/LethalMimicsAI, start it with start.sh). Without it, Masked still disguise themselves and use simple scripted behaviour, but they don't talk.

What a Masked does

  • Looks like the player it copies: no mask and no glowing eyes, not even when it attacks, player animations, a name tag, no radar spin, can't be scanned.
  • Moves like a player: walks at player speed (WalkSpeed), sprints on player stamina and runs out of breath, crouches to sneak, and turns and looks around like someone with a mouse: it glances at whoever talks, at loud noises and at things nearby. It hangs around the group and checks spots instead of trailing one person in a line.
  • Carries things like a player: four slots and a utility belt for one tool, one item in its hand and the rest out of sight in its pockets. It knows what it carries and what it can see lying around. Asked to, it picks things up, switches to an item before dropping it, hands things over by dropping them at someone's feet, and takes loot back to the ship, where the scrap counts for the quota (credited to the player it copies). Two-handed items fill both hands, weight slows it down and drains its stamina, and it drops everything when it dies.
  • Uses the main entrance and fire exits like a player, whichever way is shorter. Told to go in or out first, it goes and waits by the door for the others.
  • Blends in for a while. It only attacks after MinSecondsBeforeAttack near the crew, when its cover is about to blow (suspicion), or when it's attacked. If nobody sees the kill, its cover holds.
  • Watches for giveaways: being seen next to the real player, people asking "are you real?", someone keeping their distance, a BetterEmotes sign held up at it. Hit it with a stop or yield sign and it runs.
  • Reacts to monsters like a player: runs from thumpers, giants, nutcrackers and the like, backs away from coil-heads and brackens, sneaks past eyeless dogs, and calls them out. With MonstersNoticeMimics, roaming spiders, thumpers, slimes and giants go for a Masked that's near a player, so they don't suspiciously ignore it.
  • Talks like a player on voice chat, in the copied player's style (swearing included): it answers when talked to, says something unprompted about every SmallTalkSeconds, and doesn't repeat itself.
  • Players who die with nobody watching get back up as a Masked copying them (Revive > ChancePercent, 100% by default). If others are close but didn't see the death, it tells them it's fine. With Revive > OnlyWhenUnobserved off, deaths someone saw come back too, and the Masked knows who saw it.

Every Masked starts with an empty memory. The AI server keeps each player's voice, speaking style and nicknames while it runs, so clones get better over the session. When a round starts or ends it drops what Masked said and the chat from before, so nothing from last round ends up in new lines.

Voice and consent

The first time a player joins a PlayerMimics lobby, a popup asks whether their voice may be used. It says their voice chat goes to the host and is used for an AI copy of their voice in this game, and nothing about Masked, so the surprise stays. Only if they allow it is their voice chat sent to the host, transcribed, and used for a cloned voice. Nothing is saved to disk unless the host turns on Debug > SaveAudioToDisk, and then the popup says so (and asks again). Change the answer in the config (Voice > VoiceCloningConsent) or with Voice > ResetConsentKey.

Testing alone

Set these in BepInEx/config/com.pauluteli.PlayerMimics.cfg:

  • When you're the only player, a Masked copying you treats you as its crewmate on its own. SoloMode = true forces that even with others around.
  • SpawnMaskedKey = F8: spawns a Masked in front of you (SpawnCopies picks who it copies).
  • MimicName = Bob: new Masked go by that name instead (name tag, the name they answer to, what the AI calls itself), so a copy of you plays a second player. It still looks and sounds like the player it copies.
  • ShowBrainOverlay = true, LogPrompts = true: see what each Masked thinks (including what it carries) and what the LLM was asked.
  • ForceBehaviour, NoAttack, RevealMasked: test one behaviour, stay alive, see where they are.

DevLaunch can run a host and a client copy on one PC (--lan --host --tile 1/2 and --lan --join 127.0.0.1 --tile 2/2).

AI server

Endpoints used: /health, /ingest (voice in), /decide (the brain), /speak_stream + /speak_poll (cloned line, streamed), /speak_line (cloned line in one piece, with Voice > StreamLines = false), /forget (consent withdrawn), /round (a round started or ended).

A streamed line starts playing once /speak_poll says start_ok: StreamLeadSeconds of audio are ready, plus enough extra that slower-than-real-time generation still won't run out before the line ends. The server learns how fast each voice talks to guess how long a line will be.

The LLM runs on a local Ollama. The default is Orion 26B-A4B v1.1 (hf.co/bartowski/TheDrummer_Orion-26B-A4B-v1.1-GGUF:Q4_K_M), an uncensored Gemma 4 finetune that swears the way friends on voice chat do. To use another one: ./start.sh --llm-model <name>, with an Ollama model name (gemma4:26b-a4b for plain Gemma) or a Hugging Face GGUF as hf.co/<user>/<repo>:<quant>. A model that isn't there yet is downloaded on the first start.

CHANGELOG

Changelog

1.1.2

  • Masked are animated the way the game animates other players on your screen, instead of with your own first-person body animations: no more "ninja run" arms, and items are held like players hold them
  • Masked come out of a kill still walking and holding what they had

1.1.1

  • Masked play back real things their player said on voice chat, and the AI picks when ("I'm real!", "over here"). Without the AI server they play random clips now and then, like Mirage (RandomClipsWithoutServer, RandomClipSeconds). Clips about dying, the mimics or the mod are never kept, and dead players are never recorded
  • TooManyEmotes support: Masked use the emotes their player has unlocked
  • Masked notice more: sarcasm ("sure, you're totally real") and being sent the other way give them away too
  • Hitting a Masked turns it on you (a stop sign still makes it run), and killed Masked fall over instead of standing
  • Masked shut out of the ship wait at the door and ask to be let in, begging once the ship takes off
  • More natural talk: no more "lmao" unless their player says it (abbreviations are spelled out for the voice), no "I'm good, that was close" from every Masked, and Masked don't repeat each other
  • Faster answers with several Masked around: they skip thinking when nothing changed and let the one being talked to answer first
  • Hosts can collect training data for a future AI for the mod (CollectTrainingData, off by default): decisions are saved as text on the host's PC, never audio, and the popup asks players again while it's on
  • The voice popup looks like the game's pause menu, and you no longer turn while it's open
  • More Coroner death messages
  • Fixed: the right arm held up when holding nothing
  • New icon

1.0.0

  • Masked copy their player's habits: how they look around, crouch-spam, jump and sprint in different situations (CopyHabits). Masked can jump now, and keep the same distance from others as their player does
  • Masked are more dangerous: someone alone with one, with nobody else around, can get ambushed even if they don't suspect it (Aggression, AloneAttackSeconds). Attacks on someone who doesn't see it coming start as a casual walk-over and only turn into a lunge up close
  • Masked know when they've been found out (called a mimic, then someone runs or says "stay away") and attack right away instead of playing along; running away counts as suspicious, and suspicion fades slower
  • Masked pick up scrap they walk right past while they're with players (GrabScrapNearPlayers), Masked that spawn on their own start out holding a piece of scrap (SpawnWithScrap), and they can take the apparatus out of its machine when asked
  • Masked walk around landmines and spider webs they notice, and set off the ones they miss (HazardMistakes)
  • Masked react to monsters after a human moment instead of instantly
  • Faster answers: the voice starts as soon as the line is written, talking to a Masked interrupts what it was thinking about, and fewer answers get dropped as repeats or cut off
  • Fixed: a new Masked could laugh right after spawning; doors said "Near activity detected" because of a disguised Masked; Masked ran from a Masked that was still being set up
  • The AI server is now in the repo (server/), with setup and start scripts for Windows and Linux
  • A shorter description, a new icon

0.1.1

  • fixed uncomitted files

0.1.0

  • Give mimics a player inventory, door use and multi-mimic coordination
  • Give the brain location and round context (ship/outside/inside, moon, time, quota)
  • Add Coroner integration: name the disguise in the cause of death
  • First PlayerMimics version: disguise, LLM brain, voice, consent, revive, debug tools
  • Start PlayerMimics
  • Initial commit