Observer
Prevents NPCs from interacting with you.
Observer mode is toggled by pressing the 'q' key by default. The OBS_KEY global can be edited to change the key.
[PC Only]
Details:
This is a very simple module that I made when I was testing the witness mechanic in the
Premeditated module. It works like the in-game option "Disable NPC->PC action" except with a couple of differences. The problem with all of the in-game options is that it's not entirely obvious whether the option is being enabled or disabled when you press the hotkey for it unless you've memorized the different toggle sounds. You may also forget that it was enabled in the first place. With this module, when you press the toggle key it'll notify you on screen that the observer mode is either being enabled or disabled. If the mode is still enabled when a new period starts, it will display a notification to remind you so that you aren't confused about why NPCs aren't coming up to talk to you.
The other motivation for making this is I wanted a way of toggling whether the PC would count as a witness or not for testing purposes during NPC-NPC murder interactions handled by Premeditated. When the toggle key is pressed it enables/disables the module itself i.e. the Observer card bool is set to true or false. This way the module can be hooked into other modules by checking whether the Observer module is enabled or not.
Known Issues:
- The module's observer mode is not synced with the in-game "Disable NPC->PC action" option since there's no way for modules to check the state of game options. The module doesn't really do much if that option is already enabled since they have the same effect.
- The module doesn't prevent NPCs from stalking you, where they attach themselves to your character and follow you everywhere. Uncertain if the in-game option has the same problem or not.