ColourfulFlashlights
Customise the colour (color) of your flashlights! Syncs with other players!
模組介紹 作者原文
Colourful Flashlights
Change the colour (color) of your flashlight via the terminal in the company ship! Multiplayer compatible, syncs with other players!
Select from some built-in colours or effects, use any hexadecimal colour code or define presets in a configuration file!
Terminal options
| Command | Colour/Function | Example |
| ------------------- |:-------------------------------------------------------------: |:---------------: |
| cf white | White (Game default) |
| cf blue | Blue |
| cf red | Red |
| cf green | Green |
| cf yellow | Yellow |
| cf pink | Pink |
| cf orange | Orange |
| cf purple | Purple |
| cf \ | Use a hex colour code | cf #FF22BB |
| cf rainbow \ | A smooth rainbow effect. Speed is an integer 1-20 | cf rainbow 10 |
| cf disco \ | Flicks between some colours. Speed is an integer 1-20 | cf disco 8 |
| cf random | Toggling your flashlight off/on picks a random colour each time |
| cf health | White when 100% health and transitions to red as health lowers |
| cf preset \ | Load a preset you defined in UserPresets.json | cf preset example |
| cf speed \ | Adjust the speed of an effect, providing an integer 1-20 | cf speed 5 |
| cf save \ | Save your current flashlight state as a preset | cf save frog |
| cf state | View details on your current flashlight state |
| cf help | View the help page |
| cf | View the mod page |
Presets
You can create presets in BepInEx/config/ColourfulFlashlights/UserPresets.json
_Note: You do not need to restart the game for your changes to be loaded._
The format is an array of objects defining a name, mode, speed and an array of hexadecimal colours.
name is a string that must be unique from other preset names, case-insensitive, max 15 characters long.
mode is an integer (see table below for options).
speed is an integer 1-20, with 1 being the slowest and 20 the fastest. Can be omitted for modes that don't require it.
colours is an array of strings, which must be hexadecimal colour codes, e.g. ["#FF00BB", "#CC5500"]
To load a preset in game, use cf preset in the terminal.
You can save the current state of your flashlight with the cf save command. If you provide a name of an existing preset, that preset will be overwritten. Preset names are case-insensitive and limited to 15 characters in length.
Modes
| Mode Integer | Mode Name | Details |
| ------------ |:----------: |:----------------------------------------------------------------: |
| 0 | Fixed | A fixed colour |
| 1 | Cycle | Cycles (flicks) through colours |
| 2 | Smooth Cycle | Smoothly cycles (transitions) through colours |
| 3 | Random | Randomly chooses a new colour when the flashlight is turned on |
| 4 | Health | Changes smoothly from one colour to another based on player health |
Fixed Mode
{
name: "foo",
mode: 0,
colours: ["#3BC4E3"]
}
Even if you have more colours in the array, only the first one is used to make a fixed flashlight.
Cycle and Smooth Cycle Modes
{
name: "foo",
mode: 1,
speed: 8,
colours: ["#3BC4E3", "#E07EC8", "#FFFFFF", "#ED0057", "#ED7700"]
}
In cycle mode, the flashlight will swap through the colours at a rate determined by the speed option.
Setting mode to 2 will create a smooth cycle, the flashlight will transition smoothly, while blending from one colour to the next.
Random Mode
{
name: "foo",
mode: 3,
colours: ["#3FF707", "#005CFF", "#FF0000", "#FF7C4B"]
}
Random mode will choose a new colour from the provided colours at random, each time the flashlight is turned off and then back on.
If no colours are provided, then a random colour will be generated each time (behaviour of the built in cf random option).
Health Mode
{
name: "foo",
mode: 4,
colours: ["#005CFF", "#FF0000"]
}
In health mode, the flashlight will update based on it's holder's current health.
The first colour in the array is 100% health and the second is 10% health. For health values between 100% and 10%, the colour will be interpolated. In this example, starting with a blue colour and ge
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: