NoPanic
Your gunfire does not make everyone panic. NPC gunfire still does, for anyone on foot.
What it does
In normal GTA, any gunshot panics everybody nearby, including from your own gun. For roleplay this is awkward, because you point a weapon at one suspect and the whole street runs off before anything happens.
NoPanic fixes that with two simple rules.
When you fire, the crowd stays where it is. Nobody panics, nobody scatters. Note that this includes the person you shoot. They hold their ground too rather than running off, because the plugin stops the fear reaction for everyone nearby, not just bystanders. This is normal behaviour, not a fault.
When an NPC fires, people on foot still panic like they normally would. But drivers and passengers do not. A firefight clears the street of people without emptying it of cars.
The plugin does not touch health or damage, and it does not make anyone better or worse at shooting. It only changes the fear reaction.
Checking it is working
The plugin is very quiet by default and only writes to the log if something goes wrong. If you want to see it working, open NoPanic.ini, set DeveloperMode to true and restart the game. You should then find lines about NoPanic in RagePluginHook.log in your GTA V folder. Or just shoot and see if people go running.
Edited by Brent7978
What's New in Version 0.1.1
Released
What's New in This Version
Released after full rewrite and bug-fix pass
---
## Added
- Added player melee calm: when you punch, baton or nightstick someone, bystanders stay calm
- Added death calm: when someone dies nearby, the crowd stays calm.
- Added a live per-ped reaction check — peds who are already fleeing, in combat or have a combat target are left completely alone; the plugin only ever affects peds who haven't reacted yet.
- Added an ammo-count backstop for shot detection, so single shots between 50 ms ticks are no longer missed.
- Added error rate-limiting — a repeating fault logs its first 5 occurrences, then every 1000th, so no error can flood the log again.
- Added non-throwing INI path resolution with fallbacks, so the plugin never crashes on startup over a missing or malformed path.
## Changed
- Changed forced panic removal: all panic-causing code deleted — ForcePanicOnNpcGunfire, ApplyPanic(), Flee() and the [PanicReaction] section are gone. NoPanic now only stops panic, never causes it.
- Changed melee handling: the old calm-peds-during-any-fight rule was removed — peds reacting to an NPC brawl is correct behaviour and is no longer influenced.
- Changed Radius default from 45 → 300 (validation clamp raised to 400).
- Changed TickMs default from 100 → 50 for faster response.
- Changed IncludePedsInVehicles default to false — drivers and passengers now run on fully vanilla behaviour.
- Changed the melee calm path to no longer bypass the already-fleeing guard.
## Fixed
- Fixed every pedestrian being rejected before any logic ran — IsInVehicle(null, false) threw on every ped and the catch returned "not eligible".
- Fixed diagnostics being silently stripped from Release builds — logging switched from LogTrivialDebug to LogTrivial.
- Fixed fleeing peds surviving task cancellation — Tasks.Clear() only schedules a clear; now uses ClearImmediately().
- Fixed the 55 MB log flood (768,268 identical lines) — the plugin shutdown signal is re-thrown instead of logged.
- Fixed the plugin reading a stale INI from the GTA root — folder detection now checks the parent folder for LSPDFR's own DLL.
- Fixed a startup crash Invalid URI: The URI is empty) that prevented the plugin from loading under LSPDFR's separate AppDomain.
- Fixed config/fiber failures killing the plugin — Initialize() now falls back to defaults instead of dying.
- Fixed drivers abandoning their cars — BlockPermanentEvents removed their only instruction (the driving task); drivers are now never event-blocked.
- Fixed ReleaseAllBlocks() skipping cleanup on unload (early return), which could leave peds permanently unresponsive.
- Fixed the relationship-group experiment (suspects stopped resisting, LSPDFR broke) — fully reverted, code and references removed.
## Notes
- NoPanic now does exactly one thing: holds bystanders calm during your gunfire, your melee and nearby deaths.
- NPC-vs-NPC gunfights and NPC gunshots are left entirely to the game engine — the plugin does not force panic or calm onto them.
- Peds already reacting are never touched, so other mods' behaviour is never overridden.
- Vehicle panic behaviour is vanilla IncludePedsInVehicles=false).
Short Description
AI disclosure
The author has disclosed that AI tools were used in creating the following aspects of this file:
- Description
- Images
- Mod and Mod Content (Substantial)
i used ai for the coding
Recommended Comments
Create an account or sign in to comment