Zehs-ToilHead icon

ToilHead

CoilHeads can sometimes spawn with a turret on their head. Highly Configurable.

Last updated 15 hours ago
Total downloads 115485
Total rating 17 
Categories Mods Items Monsters
Dependency string Zehs-ToilHead-1.3.7
Dependants 75 other packages depend on this package

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

README

ToilHead

Coil-Heads can sometimes spawn with a turret on their head. Highly Configurable.

  • This mod is for all clients.

Mod Compatibility

This mod is compatible with:

Config Settings

Expand
  • Toil-Head Settings are host only.
  • All Turret Settings are synced with the host.
General Settings Setting type Default value Description
ExtendedLogging Boolean false Enable extended logging.
Toil-Head Settings Setting type Default value Description
SpawnToilHeadPlayerRagdolls Boolean true If enabled, will spawn a Toil-Head player ragdoll when a player dies to a Toil-Head in any way.
RealToilHeadPlayerRagdolls Boolean true If enabled, will spawn a real turret on the Toil-Head player ragdoll.
Toil-Head Settings Setting type Default value Description
PlanetName:MaxSpawnCount:SpawnChance,
CustomSpawnSettings String 57 Asteroid-13:2:30, Toil-Head spawn settings for modded moons.
Toil-Head Settings Setting type Default value Description
MaxSpawnCount,SpawnChance
OtherSpawnSettings String 1,30 Toil-Head default spawn settings for modded moons.
LiquidationSpawnSettings String 1,30 Toil-Head spawn settings for 44-Liquidation.
EmbrionSpawnSettings String 1,20 Toil-Head spawn settings for 5-Embrion.
ArtificeSpawnSettings String 2,70 Toil-Head spawn settings for 68-Artifice.
TitanSpawnSettings String 2,50 Toil-Head spawn settings for 8-Titan.
DineSpawnSettings String 1,45 Toil-Head spawn settings for 7-Dine.
RendSpawnSettings String 1,40 Toil-Head spawn settings for 85-Rend.
AdamanceSpawnSettings String 1,30 Toil-Head spawn settings for 20-Adamance.
MarchSpawnSettings String 1,20 Toil-Head spawn settings for 61-March.
OffenseSpawnSettings String 1,20 Toil-Head spawn settings for 21-Offense.
VowSpawnSettings String 1,20 Toil-Head spawn settings for 56-Vow.
AssuranceSpawnSettings String 1,20 Toil-Head spawn settings for 220-Assurance.
ExperimentationSpawnSettings String 1,10 Toil-Head spawn settings for 41-Experimentation.
Plushie Settings Setting type Default value Description
PlushieSpawnWeight Int32 10 Toil-Head plushie spawn chance weight. (Higher = more common)
PlushieSpawnAllMoons Boolean true If true, the Toil-Head plushie will spawn on all moons. If false, the Toil-Head plushie will only spawn on moons set in the moons list.
PlushieMoonSpawnList String Experimentation, Assurance, Vow, Offense, March, Rend, Dine, Titan The list of moons the Toil-Head plushie will spawn on.
PlushieCarryWeight Int32 4 Toil-Head plushie carry weight in pounds.
PlushieMinValue Int32 150 Toil-Head plushie min scrap value.
PlushieMaxValue Int32 250 Toil-Head plushie max scrap value.
Turret Settings Setting type Default value Description
TurretLostLOSDuration Single 0.75 The duration until the turret loses the target player when not in line of sight.
TurretRotationRange Single 75 The rotation range of the turret in degrees.
TurretCodeAccessCooldownDuration Single 7 The duration of the turret being disabled from the terminal in seconds.
Turret Detection Settings Setting type Default value Description
TurretDetectionRotation Boolean false If enabled, the turret will rotate when searching for players.
TurretDetectionRotationSpeed Single 28 The rotation speed of the turret when in detection state.
Turret Charging Settings Setting type Default value Description
TurretChargingDuration Single 2 The duration of the turret charging state.
TurretChargingRotationSpeed Single 95 The rotation speed of the turret when in charging state.
Turret Firing Settings Setting type Default value Description
TurretFiringRotationSpeed Single 95 The rotation speed of the turret when in firing state.
Turret Berserk Settings Setting type Default value Description
TurretBerserkDuration Single 9 The duration of the turret berserk state.
TurretBerserkRotationSpeed Single 77 The rotation speed of the turret when in berserk state.

API

Expand

https://github.com/ZehsTeam/Lethal-Company-ToilHead/blob/master/ToilHead/Api.cs

public static int MaxSpawnCount { get; }
public static int SpawnChance { get; }

public static Dictionary<NetworkObject, NetworkObject> enemyTurretPairs { get; }
public static int spawnCount { get; }

// If enabled, will force any spawned Coil-Heads to become Toil-Heads.
// This will get reset automatically when the day ends.
public static bool forceSpawns { get; set; }

// If set to any value above -1, will temporarily override the Toil-Head max spawn count.
// This will get reset automatically when the day ends.
public static int forceMaxSpawnCount { get; set; }

// This must only be called on the Host/Server.
// Only accepts an EnemyAI instance where the EnemyType.enemyName is "Spring".
// Returns true if successful.
public static bool SetToilHeadOnServer(EnemyAI enemyAI) { }

Bug Reports, Help, or Suggestions

https://github.com/ZehsTeam/Lethal-Company-ToilHead/issues

Discord server Forum Post
Lethal Company modding Discord #mod-releases ToilHead
Unofficial Lethal Company Community #mod-releases ToilHead

Screenshots