STANDALONE MFPD-NoWrithe! Disable NPC’s from dying too quickly

SaifNeon

Administrators
Joined
Apr 25, 2022
Messages
931
Credits
50,327

MFPD-NoWrithe! Disable NPC’s from dying too quickly
Please, Log in or Register to view URLs content!
Please, Log in or Register to view URLs content!

Installation

  • DRAG “MFPD-NoWrithe!” To your resources folder and add to your server.cfg “ensure MFPD-NoWrithe!
  • Another way of installing it is by creating or selecting a folder inside your resources folder with brackets
    • Let’s Suppose you have a folder called “[Scripts]”, every resource you drag inside this folder will be automatically started just by having “ensure [Scripts]” inside your server.cfg!

Functionality:​

Initialization: A table, handledPeds, is used to keep track of NPCs that have already been processed by the script.​

Main Loop: A thread that runs very light on resources to check around and update NPCs table.​

Distance Check: The resource calculates the distance between the player and each NPC. If an NPC is within 100 units of the player and meets the specified criteria, it updates the NPC’s behavior.​

Radius can be changed if distance <= 100.0 but I haven’t tested any perfomance above “100”, so I can not guarantee you anything.​

Behavior Modification: The resource sets configuration flags to prevent the writhing animation and ensure the NPC behaves as desired and withstand longer. *NPC HEALTH WASN’T MODIFIED, Every ped has it’s own health as normal​

Download

Please, Log in or Register to view URLs content!
 
Back
Top Bottom