A BepInEx Bleeding Edge (v667) plugin for Shadows of Doubt (IL2CPP).
This plugin implements player-shootable guns into the game.
If you are using r2modman or Thunderstore Mod Manager for installation, simply download the mod from the Online tab.
Follow these steps:
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.
Note: I interpreted the Prop Gun as being fake, so it is unchanged from the base game.
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 Thunderstore 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.
Report any other issues in the "Spyraxi's Mods & Utilities" thread on the official game Discord ("mod-releases" channel).
Roughly in order of highest to lowest priority. Lower items on the list are more ambitious ideas that might be implemented in separate plugins.
All code in this repo is distributed under the MIT License. Feel free to use, modify, and distribute as needed.