You are viewing a potentially older version of this package. View all versions.
Zehs-ToilHead-1.4.2 icon

ToilHead

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

Date uploaded 6 months ago
Version 1.4.2
Download link Zehs-ToilHead-1.4.2.zip
Downloads 10648
Dependency string Zehs-ToilHead-1.4.2

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 does not add a new enemy. It gives Coil-Heads a chance to spawn with a turret on their head.
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
EnableConfiguration Boolean false Enable if you want to use custom set config setting values. If disabled, the default config setting values will be used.
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,523 Ooblterra:3:80, 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.
Manti-Toil Settings Setting type Default value Description
MantiToilMaxSpawnCount Int32 5 Manti-Toil max spawn count.
MantiToilSpawnChance Int32 50 The percent chance a Manticoil turns into a Manti-Toil.
Plushie Settings Setting type Default value Description
PlushieSpawnWeight Int32 10 Toil-Head plushie spawn chance weight.
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, Adamance, Rend, Dine, Titan, Artifice, Embrion The list of moons the Toil-Head plushie will spawn on.
PlushieCarryWeight Int32 6 Toil-Head plushie carry weight in pounds.
PlushieMinValue Int32 80 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

// This is for all enemy turret pairs.
public static Dictionary<NetworkObject, NetworkObject> enemyTurretPairs { get; }

// Toil-Head spawn count.
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) { }

// Manti-Toil spawn count.
public static int mantiToilSpawnCount { get; }

// If enabled, will force any spawned Manticoils to become Manti-Toils.
// This will get reset automatically when the day ends.
public static bool forceMantiToilSpawns { get; set; }

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

// This must only be called on the Host/Server.
// Only accepts an EnemyAI instance where the EnemyType.enemyName is "Manticoil".
// Returns true if successful.
public static bool SetMantiToilOnServer(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

CHANGELOG

v1.7.2

  • Turret-Head players can no longer spawn at the Company building or when playing alone.

v1.7.1

  • Fixed an issue in v55

v1.7.0

v1.6.3

  • Fixed some Turret-Head turrets sometimes not properly despawning.
  • Small changes.

v1.6.2

  • Changed some config settings default values.

v1.6.1

  • Reduced Turret and Minigun damage.
  • Added Manti-Slayer
  • Added Toil-Player
  • Added Slayer-Player
  • Added more properties to the API.

v1.6.0

  • Reworked all the configs and added some new ones.
  • Made some changes to the API.
Older Versions

v1.5.1

  • Moved the moon Toilation to a separate mod.
  • Fixed Manti-Toil turrets not despawning after the Manticoil despawns.
  • Fixed Manti-Toil config settings not working properly.
  • Added ToilSlayerMaxSpawnCount config setting.
    • Description: Toil-Slayer max spawn count.
  • Added ToilSlayerSpawnChance config setting.
    • Description: The percent chance a Coil-Head turns into a Toil-Slayer.
  • Added Toil-Slayer properties to the API.

v1.5.0

v1.4.3

  • Added Toil-Slayer.

v1.4.2

  • Added EnableConfiguration config setting.
    • Description: Enable if you want to use custom set config setting values. If disabled, the default config setting values will be used.
  • Changed PlushieCarryWeight config setting default value from 4 to 6
  • Changed PlushieMinValue config setting default value from 150 to 80

v1.4.1

  • Changed Manti-Toil line of sight.
    • Decreased view distance from 50 to 30 meters.
    • Decreased horizontal view range from 40 to 30 degrees.
    • Increased vertical view range.
  • Added more LevelTypes to the PlushieMoonSpawnList config setting.

v1.4.0

  • Added Manti-Toils
    • Description: Manticoils can sometimes spawn with a turret on their head.
  • Added MantiToilMaxSpawnCount config setting.
    • Description: Manti-Toil max spawn count.
  • Added MantiToilSpawnChance config setting.
    • Description: The percent chance a Manticoil turns into a Manti-Toil.

v1.3.7

  • Added PlushieSpawnAllMoons config setting.
    • Description: 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.
  • Added PlushieMoonSpawnList config setting.
    • Description: The list of moons the Toil-Head plushie will spawn on. (Experimentation, Assurance, Vow, Offense, March, Adamance, Rend, Dine, Titan, Artifice, Embrion) Only works if PlushieSpawnAllMoons is false.
  • Added PlushieCarryWeight config setting.
    • Description: Toil-Head plushie carry weight in pounds.
  • Added PlushieMinValue config setting.
    • Description: Toil-Head plushie min scrap value.
  • Added PlushieMaxValue config setting.
    • Description: Toil-Head plushie max scrap value.

v1.3.6

  • Added PlushieSpawnWeight config setting.
    • Description: Toil-Head plushie spawn chance weight. (Higher = more common)
  • Updated Asteroid13 secrets.

v1.3.5

  • Updated CustomSpawnSettings config setting default value and formatting.

v1.3.4

v1.3.3

  • Added RealToilHeadPlayerRagdolls config setting.
    • Description: If enabled, will spawn a real turret on the Toil-Head player ragdoll.
  • Added CustomSpawnSettings config setting.
    • Description: Toil-Head spawn settings for modded moons. You can now specify any modded moon's Toil-Head MaxSpawnCount and SpawnChance.
  • Added ExperimentationSpawnSettings config setting.
    • Description: Toil-Head spawn settings for 41-Experimentation
  • Added AssuranceSpawnSettings config setting.
    • Description: Toil-Head spawn settings for 220-Assurance
  • Decreased TurretCodeAccessCooldownDuration from 10 to 7
  • Increased AdamanceSpawnSettings SpawnChance from 25 to 30
  • Increased TitanSpawnSettings MaxSpawnCount from 1 to 2
  • Increased ArtificeSpawnSettings MaxSpawnCount from 1 to 2
  • Added XML file for API documentation.

v1.3.2

  • Added forceMaxSpawnCount int property to the API.
    • Description: If set to any value above -1, will temporarily override the Toil-Head max spawn count for the day. This will get reset automatically when the day ends.
  • Changed forceToilHeadSpawns bool property in the API to forceSpawns.

v1.3.1

  • Added SpawnToilHeadPlayerRagdolls config setting.
    • Description: If enabled, will spawn a Toil-Head player ragdoll when a player dies to a Toil-Head in any way.
  • Increased DineSpawnSettings SpawnChance from 30 to 45.
  • Added forceToilHeadSpawns boolean property to the API.
    • Description: If enabled, will force any spawned Coil-Heads to become Toil-Heads. This will get reset automatically when the day ends.

v1.3.0

  • Replaced all Toil-Head config settings with new per moon config settings.
  • Updated all turret config settings keys.
  • Added ExtendedLogging config setting.
  • Improved random percent calculations.

v1.2.3

  • Changed spawnChance config setting default value to 40
  • Added useAdditionalSpawnChance config setting.
    • Description: The dynamic additional spawn chance for the Toil-Head based on certain circumstances.

v1.2.2

v1.2.1

  • Improved line of sight logic.
  • Renamed turretRotationWhenSearching config setting to turretDetectionRotation.
  • Added turretLostLOSDuration config setting.
    • Description: The duration until the turret loses the target player when not in line of sight.
  • Added turretChargingDuration config setting.
    • Description: The duration of the turret charging state.
  • Added turretFiringRotationSpeed config setting.
    • Description: The rotation speed of the turret when in firing state.
  • Added turretBerserkDuration config setting.
    • Description: The duration of the turret berserk state.
  • Added turretBerserkRotationSpeed config setting.
    • Description: The rotation speed of the turret when in berserk state.
  • Balanced config settings to be more fair.
  • Other changes.

v1.2.0

  • Removed hideTurretBody config setting.
  • Removed spawnTurretFacingForwardWeight config setting.
  • Removed spawnTurretFacingBackwardWeight config setting.
  • Added turretRotationWhenSearching config setting.
    • Description: If enabled, the turret will rotate when searching for players.
  • Added turretDetectionRotationSpeed config setting.
    • Description: The rotation speed of the turret when searching for players.
  • Added turretChargingRotationSpeed config setting.
    • Description: The rotation speed of the turret when charging at the target player.
  • Added turretRotationRange config setting.
    • Description: The rotation range of the turret in degrees.
  • Added turretCodeAccessCooldownDuration config setting.
    • Description: The duration of the turret being disabled from the terminal in seconds.
  • Fixed the radar map graphics for the turret.
  • Fixed the turret code radar map graphic to follow the Toil-Head.
  • Hitting the Toil-Head will now trigger the turret berserk state.
  • Disabled Asteroid13 secrets until the moon supports version 50.
  • Other changes.

v1.1.0

  • Tested and working in version 50 and version 49.
  • Renamed maxSpawns config setting to maxSpawnCount.
  • Added hideTurretBody config setting.
  • Moved all config settings to new categories.
  • Changed spawnChance and maxSpawnCount config setting default values.
  • Fixed Toil-Head turrets not despawning when the Toil-Head despawns.

v1.0.8

  • Hopefully fixed an issue where Toil-Head turrets aren't despawning properly when you leave the moon.

v1.0.7

v1.0.6

v1.0.5

  • Small config changes.
  • Updated secrets.

v1.0.4

v1.0.3

  • Fixed Toil-Head spawning from incorrect seed.
  • Fixed max Toil-Head spawns.

v1.0.2

  • Turrets can now spawn facing forward or backward depending on the spawn chance weight.
  • Added spawnTurretFacingForwardWeight and spawnTurretFacingBackwardWeight config settings.

v1.0.1

  • Changed config settings default values.
  • Updated README.

v1.0.0

  • Initial release.