Tweaks

版本 v3.0.2·更新於 2025-08-01

Some customizable tweaks for Content Warning. Features: don't consume oxygen when dead; give oxygen upon revival; refill oxygen; change amount of initial oxygen and more. Adds custom commands and cons

模組介紹 作者原文

Content Warning Tweaks

A mod with some quality-of-life changes for oxygen management and some good tools for developers.

And more tweaks to come!

Features

  • Oxygen on Revival: Give the revived player set amount of oxygen
  • No Oxygen Loss When Dead: Change oxygen consumption on dead players
  • Diving Bell Refill: Refill oxygen when in diving bell
  • Configurable Oxygen: Adjust how much oxygen you have
  • Return Items: Returns any items that fall off the surface
  • Console Improvements: Enhancements for the in-game console

Commands

Console

-.Disable: Disables console for the specified player

-.Enable: Enables console for the specified player

Player

-.Heal [Percent (Boolean = false)]: Heals the specified player specified value

-.SetGravity: Sets the gravity for the specified player

-.SetHealth [Percent (Boolean = false)]: Sets the health for the specified player

-.SetMaxOxygen [Percent (Boolean = false)]: Sets the max oxygen for the specified player

-.SetRemainingOxygen [Percent (Boolean = false)]: Sets the remaining oxygen for the specified player

-.SetThrowStrengthMultiplier: Sets the throw strength multiplier for the specified player

Players

-.Heal [Percent (Boolean = false)]: Heals all of the players the specified amount

-.SetGravity: Sets the gravity for all players

-.SetHealth [Percent (Boolean = false)]: Sets the health for all players

-.SetMaxOxygen [Percent (Boolean = false)]: Sets the max oxygen for all of the players

-.SetRemainingOxygen [Percent (Boolean = false)]: Sets the remaining oxygen for all of the players

-.SetThrowStrengthMultiplier: Sets the throw strength multiplier for the specified player

-.SetMaxHealth: Sets max health for all players to the specified value

For developers

Better Console

If you're making mods and want a better console experience, you can reference this mod's assembly. This lets you use the Tweaks.Features.BetterConsole.ConsoleCommandAttribute

This attribute is a better alternative to Zorro.Core.CLI.ConsoleCommandAttribute because it handles:

  • Automatic help command generation
  • Optional arguments
  • Command overloading

Usage example:

using Tweaks.Features.BetterConsole; // for all of the classes

using UnityEngine; // for Debug.Log

namespace PluginNamespace; // your plugin namespace

public class ExampleCommandsClass: ICommandsClass // the class can be named however you like. However, it will appear exactly like you name it in the console

// the inheriting of CommandsClass is optional, but it lets for the commands in the class to be enabled or disabled

{

public static bool Enabled => true; // sets if the commands in this class are enabled.

[ConsoleCommand("The description of what this function does", "The description of the first argument", "The description of the second argument")] // all the information about the function. If an arument description is set to "" (empty), then when the user is writing the argument, its name will not be changed

public static void PrintEnteredText(string Text, int Times) // an example function

{

for (int i = 0; i < Times; i++)

{

Debug.Log(Text);

}

}

}

Testing Note

I've tested this mod with two game instances (just me), but it should work fine with more players

Credits

me.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPackRugbugRedfern-MyceliumNetworkingHungryMuttis-CWAPI

檔案與校驗

檔案名稱
Tweaks-3.0.2.zip
檔案大小
70.7 KiB