Jump to content
Sign in to follow this  
Reffie1997

Problem of Compatability of Bodyguards Spawned by Trainers and LSPDFR 0.3.1

Recommended Posts

This problem has been around since LSPDFR 0.3 has released, when I spawn certain cop peds to serve as my bodyguard through any trainer (e.g Simple Trainer/TrainerV), whenever LSPDFR is running in Rage hook, if there is a suspect nearby, my bodyguard will runaway from me and proceed to arrest the suspect. Whenever he/she is done, he will then run away from me. In some occasions if we are in a vehicle, he will open the car doors automatically and jump out whenever a suspect is nearby.

The peds that are affected includes:

  • s_m_y_cop_01
  • s_f_y_cop_01
  • s_m_y_sheriff_01
  • s_f_y_sheriff_01
  • s_m_y_ranger_01
  • s_f_y_ranger_01
  • s_m_y_swat_01
  • s_m_m_fibsec_01

 

On another note, the "s_m_y_swat_01" bodyguard peds and "s_m_m_fibsec_01" bodyguard peds will get out of my vehicle after they are inside for 1 second even there are no suspect nearby. This is not fun for players who wants to have partners especially when they are SWAT and they don't have EUP models. Also, when I spawn IAA, DOA, SWAT, SASPA peds as my bodyguards, they will get shot by police if they open fire at suspects.

I've tried to uninstall all LSPDFR plugins and the problem still persists. However, when I unload LSPDFR, the problem stops. So I'm pretty sure this is an issue with LSPDFR API.

My PC runs on a Intel i5-3210M CPU@ 2.50GHz with NVIDA GeForce GT 630M graphics running on Windows 10 Home 64 bit 10.0 operating system. (Not sure if information is relevant.)

Below is my RagePluginHook.log (Not sure if information is relevant.)

Spoiler

[8/4/2016 1:56:34 AM.071] s_f_y_cop_01_black_full_01
[8/4/2016 1:56:34 AM.072] LSPD First Response: TaskCopRespondBackup::TaskCopRespondBackup
[8/4/2016 1:56:34 AM.073] [TRACE] Assigned ped to SuspectTransportManager #1 (Blocker)
[8/4/2016 1:56:34 AM.181] setting up new cop: null
[8/4/2016 1:56:34 AM.181] setting up new cop: null
[8/4/2016 1:56:48 AM.052] Arrived
[8/4/2016 1:56:48 AM.765] LSPD First Response: Cone Placed
[8/4/2016 1:56:48 AM.860] LSPD First Response: LSPDFR+ API: Plugin: Traffic Policer is increasing statistic: Road signs placed
[8/4/2016 1:56:52 AM.426] LSPD First Response: Cone Placed
[8/4/2016 1:56:52 AM.526] LSPD First Response: LSPDFR+ API: Plugin: Traffic Policer is increasing statistic: Road signs placed
[8/4/2016 1:56:56 AM.575] [TRACE] TaskTransportSuspect: OnAbort
[8/4/2016 1:56:56 AM.584] [TRACE] Initiating suspect transport
[8/4/2016 1:56:56 AM.607] X:-163.25 Y:-827.25 Z:30.0625
[8/4/2016 1:56:56 AM.607] [TRACE] Requested backup LocalPatrol in LosSantosCity
[8/4/2016 1:56:56 AM.608] [TRACE] Creating unit LocalUnit
[8/4/2016 1:56:56 AM.609] [TRACE] Created police
[8/4/2016 1:56:56 AM.610] [TRACE] New cop created s_m_y_cop_01
[8/4/2016 1:56:56 AM.612] s_m_y_cop_01_white_mini_03
[8/4/2016 1:56:56 AM.612] s_m_y_hwaycop_01_white_full_01
[8/4/2016 1:56:56 AM.612] LSPD First Response: TaskCopRespondBackup::TaskCopRespondBackup
[8/4/2016 1:56:56 AM.615] [TRACE] New cop created s_m_y_cop_01
[8/4/2016 1:56:56 AM.617] s_m_y_cop_01_black_mini_01
[8/4/2016 1:56:56 AM.618] s_m_y_cop_01_black_mini_02
[8/4/2016 1:56:56 AM.618] LSPD First Response: TaskCopRespondBackup::TaskCopRespondBackup
[8/4/2016 1:56:56 AM.620] [TRACE] Assigned ped to SuspectTransportManager #1 (Blocker)
[8/4/2016 1:56:57 AM.238] setting up new cop: null
[8/4/2016 1:56:57 AM.239] setting up new cop: null
[8/4/2016 1:57:09 AM.079] LSPD First Response: Added ambient event fibers to cleanup
[8/4/2016 1:57:15 AM.740] LSPD First Response: Cone Placed
[8/4/2016 1:57:15 AM.838] LSPD First Response: LSPDFR+ API: Plugin: Traffic Policer is increasing statistic: Road signs placed
[8/4/2016 1:57:22 AM.297] Arrived
[8/4/2016 1:57:33 AM.161] LSPD First Response: All signs removed
 

Below are screenshots of my GTAV directory (Not sure if information is relevant.)

Spoiler

185dbd4eec0e556a55a48c996274c00a.png

d84f630ca3afebb02327e24c96434216.png

58049772a93cffd2e4e6795c9954de1f.png

34e14f6b70bd8d5db3913974d0c8c143.png

I don't know how to script with Rage Hook, but my suggestion is to filter cop peds that are spawned by trainers and prevent them to be affected by the API, and  create relationship groups for IAA, DOA, SWAT, SASPA peds with cops so they won't get shot whenever the plugin is loaded.

Thanks a lot!

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

LSPDFR automatically controls the AI of all cop peds in the game. Disabling auto-pursuit-backup (an option in LSPDFR+) may help with this issue. The better solution would be to use @Darkmyre's Partner Mod to get a better-behaved partner who's actually integrated with the LSPDFR API. 

Share this post


Link to post
Share on other sites

Yep, you can't use the bodyguards spawned through the trainers, as they will always wander off after the callout finishes, as part of LSPDFR's callout procedure. As PNWParksFan says, you need to use a partner mod to get someone that wont leave you.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×