Guns

版本 v0.2.2·更新於 2024-10-13

Implements player-shootable guns into the game.

模組介紹 作者原文

Guns - Implements player-shootable guns into the game

A BepInEx Bleeding Edge (v667) plugin for Shadows of Doubt (IL2CPP).

What is it?

This plugin implements player-shootable guns into the game.

Installation

r2modman or Mod Manager installation

If you are using r2modman or Mod Manager for installation, simply download the mod from the Online tab.

Manual installation

Follow these steps:

  • Download BepInEx (build artifact 667 or higher) from the official repository.
  • Extract the downloaded files into the same folder as the "Shadows of Doubt.exe" executable.
  • Launch the game, load the main menu, and then exit the game.
  • Download the latest version of the plugin from the Releases page. Unzip the files and place them in corresponding directories within "Shadows of Doubt\BepInEx...". Also, download the SOD.Common dependency.
  • Start the game.

Usage and features

This mod changes the guns that are already in game so that they can be fired while the player is using them. The way that citizens use guns is not changed.

  • You must hold down the Secondary Action button to aim and then press the Primary Action button to fire, otherwise you will bash with the gun (like normal except for the direction that the gun is pointing).
  • In general, you will need to be careful when you use your gun if you don't want to end up being chased and shot at by an angry crowd. Firing guns makes a lot of noise, which causes citizens to either investigate or flee (and sometimes sound the alarm).
  • Includes recoil and a cooldown period between shots for all guns.
  • Shotguns are adjusted to have a multiple bullet holes and a greater spread than other weapons.
  • Includes "hold to fire" for automatic weapons (just the Faucon Rifle for now).

Note: I interpreted the Prop Gun as being fake, so it is unchanged from the base game.

Configuration

Config settings include:

| Name | Description |

|------|-------------|

| EjectBrass | If true, eject bullet casings. |

| RecoilAmplitudeFactor | The factor applied on top of recoil amplitude. Set to 0 to disable recoil completely. |

| GunDrawBarkChance | The chance (from 0.0 to 1.0 = 100%) that citizens will warn you to put a gun away while you have one drawn. |

| IllegalStatusDurationOnHit | The number of seconds after a citizen is hit by the player's gunfire that the player has illegal status. |

| CitizenNerveLostPerSecondAimedAt | How much of a citizen's nerve is lost per second that the player is aiming directly at them with a gun within the citizen's sight range. Citizen's tend to have maximum nerve values of around 0.4 to 0.5, and start running away around 0.1 (and may attempt to sound the alarm). |

| CitizenNerveLossAccountsForAwareness | Account for citizen alertness and blindness when calculating the actual nerve lost per second while being aimed at. The amount of nerve lost will be reduced by some factor depending on the citizen's traits while this setting is enabled. |

| GunTestingMode | If true, add all guns and ammo to your inventory. Works immediately. Save the setting as false prior to setting it back to true to repeat the command. |

You can use r2modman or Mod Manager to easily change the plugin's config settings (via the Config Editor tab). You can also manually edit the config file in the BepInEx directory (I believe that changes you make will take effect while the game is running, but I'm not 100% positive about that).

If you have BepInExConfigManager installed, you can use the in-game menu to edit the config settings.

Known Issues

Report any other issues in the "Spyraxi's Mods & Utilities" thread on the official game Discord ("mod-releases" channel).

Future Plans

Roughly in order of highest to lowest priority. Lower items on the list are more ambitious ideas that might be implemented in separate plugins.

  • Add a configuration option where ammo must be in the player's inventory for the gun to fire.
  • Add temporarily shooting out lights, disabling ca

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

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

Venomaus-SODCommon

檔案與校驗

檔案名稱
Guns-0.2.2.zip
檔案大小
235.8 KiB