You are viewing a potentially older version of this package. View all versions.
SillySquad-CustomDeathPenalty-1.9.5 icon

CustomDeathPenalty

Adds a config for fines, quota increase on player death, and contains settings for dynamic scrap value and interior size.

Date uploaded 2 months ago
Version 1.9.5
Download link SillySquad-CustomDeathPenalty-1.9.5.zip
Downloads 8324
Dependency string SillySquad-CustomDeathPenalty-1.9.5

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
Sigurd-CSync-4.1.0 icon
Sigurd-CSync

Configuration file syncing library for BepInEx.

Preferred version: 4.1.0

README

CustomDeathPenalty is a simple little mod that adds some config values to control the fines for dead coworkers and a new mechanic for increasing the current quota based on player deaths.

There are 4 config values for fines:

  • Fine % on any moon (other than the company)
  • Fine reduction for any moon (other than the company)
  • Fine % on the company moon
  • Fine reduction on the company moon

The config values for non-company moons is the vanilla value at default.

The config values for the company is no penalty by default.

The mod also adds a new mechanic where each unrecovered player at the end of the round increases the quota.

The % added per body is configurable.

The default config is 10% extra quota per unrecovered body and this mechanic does not occur on the company moon.

You could instead increase the quota by a set amount (100% by default) when all players are dead. If some survive it will be that percent times the unrecovered players over the total players.

The mod includes an experimental feature that makes the scrap value on the moon scale based on the quota and enemy power of the moon

Having this enabled may make the game overall more difficult but it allows you to reach previously unobtainable quotas (If you reach 2,147,483,647 then you win :3 !!)

The feature is disabled by default, if you choose to enable it then make sure to adjust the Offset value below it accordingly.

There are several config values to tweak the feature to your liking

The easiest I can explain the math behind the calculation is ScrapValue = (QME)+O Where: Q = current Quota M = config for overall min and max multiplier" E = current moon enemy power level divided by the threshold config times another config plus one O = offset in config

Another experimental feature calculates the multiplier for the interior size based on the quota and enemy power on the moon

This featured changes the interior size multiplier that is typically locked per moon, 1x on Experimentation and 2.35x on Titan for example.

This new value gets the ScrapValue on the moon and for every x scrap it will increase the the multiplier by 0.01.

There are four configurable values attached to the feature that allow you to edit it to your liking.

Keep in mind that interior mods use their own min/max multiplier so you must change them in their config in order for the min/max clamp you set in this config to work.

IN v50, THIS VALUE IS ALSO THEN MULTIPLIED BY THE INTERIOR SPECIFIC MULTIPLIER. (Factory applies a 1.5x multiplier to it.)

The mod also makes the end round screen display a more accurate total scrap in level count (merged from another mod of mine)

Here is my patreon for anyone who would like to support me Any tip is very appreciated :3 https://www.patreon.com/ImpulsiveLassLCModding

CHANGELOG

1.9.5

  • The Size Increase Threshold is now a float value, which allows it to be 0.01 to \u221E (0.01 being every 1 scrap value increases the size multiplier by 0.01)
  • The default Size Increase Threshold is now 5 (every 500 scrap value adds 0.01 to the multiplier)
  • According Adjusted the config desc + READme
  • Keep in mind that now the mulitplier from this is just the moon specific one, now the specific interior applies their own value (IE. The factory size will be this value * 1.5)

1.9.0

  • Ported to Csync 1.9.0
  • Should work for v50, lmk

1.8.1

  • Edited ReadMe

1.8.0

  • Added a new config value that controls how much the enemy factor multiplier for the scrap value calculation (default X0.25 + 1) (where X is the amount of time it is applied. Previously it was locked at X + 1)
  • To adjust, the default threshold value was changed to 5 from 8.

1.7.7

  • Migrated to Sigurd's Csync

1.7.6

  • The total players now correctly accounts for the host

1.7.5

  • Added a new method to calculate the quota increase. If the bool config is true then the quota increase will be the value below times the ratio of unrecovered player bodies over the total players

1.7.0

  • Updated to Csync 2.0.0

  • Removed EasySync dep

1.6.1

  • Fixed issue where the SizeOffset config was always 0

1.6.0

  • Added an experimental method in the config that alters the moon multiplier based on the scrap value on the moon

  • Reorganized the config again so it is super neat

1.5.0

  • Csync works now!

1.4.1

  • Fixed ReadMe

1.4.0

  • Added three more config options for the dynamic scrap
  • The minscrap/maxscrap fraction is now dependent on the threshold the minTotalScrapValue exceeds (Scrap diversity increases as quota increases up until a maximum range at 999 or higher)
  • Added Csync as a dependency
  • Added a check to not execute the dynamic scrap on the company moon just in case
  • Tweaked some values to be nicer

1.3.0

  • Added an experimental method to calculate scrap values dynamically based on your current quota and the enemy power level of the moon. The # of scrap is based on the scrap value You must enable it in the config, make sure to read the Offset setting below it and adjust that accordingly

  • Rearranged the config so that it is cleaner

1.2.0

  • Fixed an issue that caused clients quotas to decrease leading to desyncs

1.1.5

  • Change in quota is not shown in fines if the quota % increase is set to 0 in the config

1.1.0

1.0.0

  • Added a new configurable mechanic to increase the quota per every unrecovered dead player

0.6.0

  • Added seperate settings for the company moon

0.5.0

  • Intial Release