Description
Children Crying in Pain
Screaming Injured Peds is a script that makes all the AI pedestrians start screaming, shouting and coughing when they're lying on the floor.
This script was created some time ago. The initial idea was to include it in an update for the Accuracy Fix mod, then it evolved into the concept of a new mod that modifies AI behavior when injured, damaged or lying on the floor. However, due to current commitments on other projects, this is more like a preview of the idea.
The goal is to enhance this script with more functions and elements that contribute to greater realism. Please remember that this is currently a work in progress/preview.
Specifically, the aim is to create a complete script that changes AI reactions when they get hurt. This script is just one part of that larger vision.
How does the script function? It analyzes all pedestrians in the area. If a pedestrian is lying on the floor (which the game classifies as "hurt"), the pedestrian receives an instruction to play a random pain sound. Currently, only burning and coughing sound effects are included, but the intention is to incorporate more options.
Pedestrians affected by this script will have a blip that disappears as soon as the pedestrian dies (the script stops working on them).
Version 2 of the script introduces randomization, making the pedestrian scream, cough, or remain silent (using the default reaction/SFX) randomly. This prevents constant screaming. Version 1 is the original version without this randomization.
You can follow a trick to prevent pedestrians from automatically dying after a few seconds when injured on the floor. If they die quickly, you may not hear them scream as intended.
This is a .NET script, so you need ScriptHookV and ScriptHookV DotNet for it to work in your game. Place the DLL file in the Grand Theft Auto V/scripts folder.
Changelog
- v1: initial release
- v2: timers included: now, each pedestrian will trigger what we can call "a screaming event" every 5 seconds. These events randomly make the pedestrian shout, cough or do nothing (the default SFX for injured pedestrians). Each event has equal probabilities (33% for each one). The next release will include an INI file where you can customize everything. Please share your thoughts on this system and how it could be improved.
First Upload: November 11, 2024 Last Updated: November 11, 2024