Jump to content

On Scene Backup (Full Code 2 and Code 3 Backup Supports) 1.5.6.0

   (39 reviews)

4 Screenshots

About This File

The "On Scene backup" plugin basically is made to replace the vanilla backup (code 2/code 3).
On those vanilla backup, the police buddy just comes and watches the scene for a while and then leaves.

 

With this plugin, the player will be able to have a full backup support from the police buddy to watch for any potential suspects.
Furthermore, It is also integrated with "Stop The Ped" plugin, so the player may ask the police buddy to pat down, conduct tests, arrest, or release the suspects.
 

 

PREREQUISITES:

  1. Rage Plugin Hook v0.57 alpha
  2. LSPD First Response v0.31 by G17
  3. Police SmartRadio v1.1.1.1 by Albo1125 (required to request the on scene backup using police smart radio)
  4. VocalDispatch v1.6.0.0 by turbofandude (optional if you want to use voice command to call for the backups)
  5. Traffic Policer v6.13.7.0 by Albo1125
  6. Stop The Ped v1.8.0.0 by BejoIjo

 

 

INSTALLATION:

  • Copy the contents of "Plugins\LSPDFR" in this package to: "GTA V directory\plugins\LSPDFR"
  • Please open and edit "OnSceneBackup.ini" file, if you want to replace the keyboard key or controller button bindings

 

 

HOW TO USE:

  • The player character has to be on foot (not driving or inside any vehicle)
  • Request a backup unit by:
    • Pressing the "request key". Default is "LControl+NumPad5" (you may customize it in the .ini file)
    • Using controller buttons. Default is disabled (no button assigned, but you may customize it in the .ini file)
    • If you have "Police Smart Radio" installed, open it and select "ON SCENE 2" to call code 2 backup, "ON SCENE 3" for a code 3 backup, or "ON SCENE FEM" for female backup
    • If you have "VoiceDispatch" installed, you can give command to call for the backups. Check the TrafficStopBackup.xml file for phrases
  • To toggle the situation severity (Code 2/Code 3), you can press "LControl+Home" key (you may customize it in the .ini file). In Code 3 situation, the backup units will always have their gun drawn
  • You may request as many backup units as you wish. But I recommend to have maximum 5 units at the same time.
  • The plugin will spawn the unit and vehicle based on the LSPDFR "backup.xml" (Police for City, Sheriff for County, etc.)
  • This plugin supports "Custom Backup" plugin by PNWParksFan. When it is active, "On Scene Backup" will automatically override the selection of spawned units

 

 

HOW IT WORKS:

  • After the Police Buddy arrived on scene, they will take a "Standby" position behind you. They will follow and protect you wherever you go
  • When there's a grave danger or threat during this "Standby" position, the police buddy will try to engage it
  • If There's a potential suspects (from callouts or stopped ped), the police buddy will approach and tend to the suspect in "Watch" position
  • During "Watch" position, Police Buddy will engage the watched suspect when:
    • You aim your gun at the suspect
    • The suspect is fleeing
    • The suspect attacks us
  • If you have "Stop The Ped" installed (minimum version: v1.8.0.0), during the "Watch" position, you can use STP Menu to ask the Police Buddy to:
    • Pat down the suspect
    • Perform breathalyzer test
    • Perform drug swab kit test
    • Arrest the suspect
    • Release the arrested suspect
  • IMPORTANT:  To make above feature works, you need to have a single police buddy in "watch" position watching the ped to use Stop The Ped menu
  • You can always dismiss the Police Buddy at any time by standing in front of them face-to-face.

 

 

ADDITIONAL NOTES:

  • When using "MatchBackupVehicle", the cop ped model of the backup unit car will always follow the definition in vehicles.meta. Make sure it has the correct cop model name (e.g. "s_m_y_cop_01", "s_m_y_sheriff_01")
  • This plugin supports "Custom Backup" plugin by PNWParksFan.
  • When "Custom Backup" plugin is active, It will automatically override the default LSPDFR backup.xml and set the backup unit vehicle and ped model based on the CustomBackup.xml file

 

About Backup car parking position:

  • When it is called with code 2 mode, the unit vehicle will try to park behind player's vehicle (lining up). Make sure to park serial with the road and provide enough space for the backup cars to stop and park their cars
  • When it is called with code 3 mode, the unit will just come quickly and stop the vehicle at nearest location
  • If you call code 2 backup, but the scene is not safe (threat detected) or you (player) is too far away from your police car, then backup parking position will not be lined up (automatically park like in code 3 mode)

 

About sirens and silent sound:

  • By default, while in code 2, siren sound is set to silent by this plugin. This will work great when you're using non-ELS car models.
  • But there's a limitation on ELS car. It will still play the siren sound, even though the plugin has turned it off.
  • If you are using ELS car and you want a silent siren while in Code 2, set "IsCode2SirenLightsOn" parameter in the .ini file to "no".

 

 

PRISONER TRANSPORT:

You can make the police buddy to transport arrested ped to jail by using PT (Prisoner Transport) provided by Arrest Manager. Make sure the police buddy and his vehicle are nearby (< 25 meters or so) and you have to set this parameter in the "Arrest Manager.ini" file.

RecruitedOfficerMustComplyWithStandards=false

 

 

Please feel free to contact me through LSPDFR forum or download's comment section for any issue you encountered with this plugin.

Happy patroling! Enjoy! 

 

 

SPECIAL THANKS TO:

  • @Albo1125 for all your plugins which make LSPDFR very joyful!
  • @alexguirre for all your open source modules and plugins for LSPDFR

 

 


What's New in Version 1.5.6.0

Released

v1.5.6.0 (latest)

  • Fixed major bug. Cannot call "Code 3 Backup" because it is always despawned

 

v1.5.5.0

  • New Feature: Added support for "Vocal Dispatch" to call the backups (Code 2, Code 3, and Code 2 female)
  • Fixed minor bug. Sometimes when calling OSB after player calling TSB, the backup car from OSB hits and pushed TSB car forward
  • Improved logic to join pursuit when a pursuit instance is detected

 

v1.5.2.0

  • Added new police radio button to call female cop backup (code 2), which will be helping when you need to pat down a female suspect (using Stop The Ped). Choose "ON SCENE FEM" button to call it
  • Improved resource utilization. This will dramatically improve performance when calling multiple backup units at the same time, especially for players with mid-low PC spec
  • Added new animation when buddy is in watching position to tend the dead peds
  • Fixed bug. When player going inside a building (e.g. store), sometimes the buddy is teleported instead of just walking
  • Fixed bug. Sometimes police buddy got disappeared (despawned) without any reason
     

Version History:

Spoiler

v1.5.1.0

  • New feature. When calling the backup with Code 3, the police buddy will also be armed with assault rifle or shotgun
  • Fixed bug. Sometimes police buddy dismiss themselves (e.g. return to police car and take off), which might be caused by another plugin
  • Fixed bug. Sometimes the buddy is joining a pursuit but does not pursue the suspect

 

v1.5.0.0

  • Added new police radio button to call code 3 backup. Choose "ON SCENE 3" button to call it
  • Changed the previous "ON SCENE" button to "ON SCENE 2" to call code 2 backup. (make sure to reinstall all files from this plugin)
  • New backup vehicle arrival logic:
    • When in code 2 mode, the unit vehicle will try to park behind player's vehicle (lining up)
    • When in code 3 mode, the unit will just come quickly and stop the vehicle at nearest location
  • Much Improved Police Buddy AI when performing combat and foot pursuit
  • Tweaked timing to make the backup reacts faster when detecting threat 
  • Improved threat detection algorithm to also detect and neutralize any ped with a weapon in hand
  • Fixed bug. Sometimes Police Buddy unable to detect potential ped to be watched
  • Fixed bug. Sometimes dead ped is ignored by the police buddy (not watched)
  • Fixed bug. Sometimes buddy does not engage the attacking ped
  • Fixed bug. Sometimes when calling the backup unit, it cannot reach the player (stuck on buildings, etc.)
  • Fixed bug. Sometimes the police buddy is walking back and forth when in standby mode or watching for the suspect

 

v1.4.2.0

  • Added support for "Stop The Ped" integration for requesting nearby Police Buddy to watch the ped
  • New additional confirmation dialog when you want to dismiss the Police Buddy. Now you should press E key or DPadRight button to confirm dismissal after standing face-2-face with the Police Buddy. This new feature should prevent accidental dismissal.
  • Added error handling to clean up entities and blips when LSPDFR crashes

 

v1.4.1.0

  • Major performance improvement by tweaking codes and resource usages. Hopefully, there's no FPS drop for mid and low end system.
  • Added new feature. The backup car now will be able to adapt the parking position when you pull over the car on the left side of the road (e.g. on the highway)
  • Added new feature to force the spawned police car to match your current vehicle model. Don't forget to verify the driver model name on your vehicle entry in the vehicle.meta file. (configurable in the .ini file)
  • Improved driving after dismissal to make the buddy driving more safely
  • Fixed minor bug. After pursuit, sometimes the police buddy doesn't return to standby position

 

v1.4.0.0

  • Improved Backup Police AI. They will quickly detect suspects firing at us and the buddy will try to fire back at them instead of trying to catch them (pursuit). Pursuit will be done only when the suspect is fleeing
  • Improved arrival logic. When the threat (shootings) detected at the time you call the backup, the backup car will not be lined up (behind player car). They will be scrambling out from the nearest possible position and helping you engaging the threat
  • Fixed minor issue. When player grab the ped (using "Stop The Ped"), it accidentally dismisses the police buddy

 

v1.3.0.0

  • Added detection range parameter to find potential "Watched" peds in the .ini file
  • Added detection range parameter to find for threat in the .ini file
  • Improved "Watch" position detection. When the potential ped is moving, Police buddy will not be assigned to "Watch" position 
  • When the police buddy is in "Watch" position of a dead body, the animation will always be set to standby animation
  • When in code 3, Now Police buddy will always be moving (walk/run) with gun drawn
  • Now the peds stopped by Vanilla LSPDFR Stop will also be detected and can be watched by the Police buddy
  • Fixed bug. Now Police Buddy will not engage fleeing innocent ambient peds
  • Fixed bug. Now the emergency peds (medic, fireman, coroner) will be excluded from watch ped detection
  • Fixed bug. A very rare crash when Police Buddy dealing with peds after being resuscitated by EMS

 

v1.2.0.0

  • Improved police buddy parking logic. If your car is not in serial position with the road, then backup car will not be lined up
  • Added compatibility with Traffic Stop Backup. When you already have TSB unit in place, you may call OSB and the OSB backup will be parking behind TSB car
  • Added some ambient voices when police buddy arrived and dismissed
  • Improved standby position. The police buddy will be stopped in random standby position near you, so it'll be easier to dismiss them
     

v1.1.0.0

  • Added new feature to line up the parking position of the backup cars
  • Added configurable silent sirens while in code 2 (please read additional notes in the detail section above)
  • Fixed some minor bugs, when the police buddy keep following the dismissed suspect

 

v1.0.0.0

  • Initial release

 




User Feedback

Recommended Comments



Feature Request:

 

So far, this has been the most useful idea for backup. I have a couple suggestions that would make this an essential add-on to LSPDFR.

 

1. A silent mode. Pretty much when you have a burglary when you want the officers to have their guns drawn, but not blaring their sirens pulling up to the house. A "silent response mode" would be a helpful way to have units respond fully equipped and rapidly, but without lights and sirens close to the scene.

 

2. With this mod, it would be nice for the officers not to park their cars in random places and clog up an entire road for no reason. That would be an amazing feature.

 

Great script so far!

Share this comment


Link to comment
Share on other sites

i just installed it, and it doesnt give me an option to have them pat them down or anything, it only says "by myself" doesnt give me another option, please help!

Share this comment


Link to comment
Share on other sites
43 minutes ago, WHISKERS said:

i just installed it, and it doesnt give me an option to have them pat them down or anything, it only says "by myself" doesnt give me another option, please help!

 

after you stop the ped using STP, you need to call backup unit from on scene backup

 

Edited by Pazzi

Share this comment


Link to comment
Share on other sites

i did, i just got off of this tacco highway call, which i called in 4 units to help, it was a big case, and still couldnt have them do anything. 

Share this comment


Link to comment
Share on other sites

Its been a while since I checked for nice plugins and new addons for my installation. Oh boy! Amazing job on your latest scripts and addons, this adds so much more enjoyable content to my LSPDFR, thank you so much and keep on doing what you do best, make great plugins 🙂

5 hours ago, WHISKERS said:

i just installed it, and it doesnt give me an option to have them pat them down or anything, it only says "by myself" doesnt give me another option, please help!

You need to request backup and wait for the npc to take position close to the ped you stoped. Works fine for me 🙂

Share this comment


Link to comment
Share on other sites
7 hours ago, sebair10 said:

Feature Request:

 

So far, this has been the most useful idea for backup. I have a couple suggestions that would make this an essential add-on to LSPDFR.

 

1. A silent mode. Pretty much when you have a burglary when you want the officers to have their guns drawn, but not blaring their sirens pulling up to the house. A "silent response mode" would be a helpful way to have units respond fully equipped and rapidly, but without lights and sirens close to the scene.

 

2. With this mod, it would be nice for the officers not to park their cars in random places and clog up an entire road for no reason. That would be an amazing feature.

 

Great script so far!

Yes silent mode would be great and for the cars to park properly and not just abandon there cars @BejoIjo 

 

haven’t had chance to try this yet as working but it sounds very promising and wouldn’t need sergeant the other plugin that does this👍🏻

Edited by FoxTrot999

Share this comment


Link to comment
Share on other sites
39 minutes ago, FoxTrot999 said:

Yes silent mode would be great and for the cars to park properly and not just abandon there cars @BejoIjo 

 

haven’t had chance to try this yet as working but it sounds very promising and wouldn’t need sergeant the other plugin that does this👍🏻

3

thats exactly what im taking out now / this is a seargant killer

6 hours ago, WHISKERS said:

i just installed it, and it doesnt give me an option to have them pat them down or anything, it only says "by myself" doesnt give me another option, please help!

 make sure you're on the latest version of stop the ped and make sure you installed everything correctly !

Share this comment


Link to comment
Share on other sites
11 hours ago, sebair10 said:

Feature Request:

 

So far, this has been the most useful idea for backup. I have a couple suggestions that would make this an essential add-on to LSPDFR.

 

1. A silent mode. Pretty much when you have a burglary when you want the officers to have their guns drawn, but not blaring their sirens pulling up to the house. A "silent response mode" would be a helpful way to have units respond fully equipped and rapidly, but without lights and sirens close to the scene.

 

2. With this mod, it would be nice for the officers not to park their cars in random places and clog up an entire road for no reason. That would be an amazing feature.

 

Great script so far!

 

Hey there, thanks for your input.

 

1. I can make the siren setting based on the situation (code2/3). Let's see what i can do

 

2. I can make the car line up to player car, just like traffic stop backup (configurable). let's see

 

35 minutes ago, manu450 said:

is this meant to replace the current traffic stop backup? 

 

 

No, this is different kind of backup. I made it only callable when player is on foot.

Edited by BejoIjo

Share this comment


Link to comment
Share on other sites

Hi, thanks for the work on this great mod, however when i try to pull it up using police radio, it says the button has not been assigned.  Help?

Share this comment


Link to comment
Share on other sites
24 minutes ago, BejoIjo said:

 

Hey there, thanks for your input.

 

1. I can make the siren setting based on the situation (code2/3). Let's see what i can do

 

2. I can make the car line up to player car, just like traffic stop backup (configurable). let's see

 

 

No, this is different kind of backup. I made it only callable when player is on foot.

This is a really cool feature i like it a lot,  it needs a bit of work as i found the backup seem to crash on a lot on stuff, like cars, peds etc..when called. I know it's the initial release an you will work on it. Beside that, again  awesome addition to lspdfr. When i'm referring to useful script in game, this is exactly what i'm talking about. I suggest maybe clearing the area when called,  like you did with your traffic stop backup might help. 

Share this comment


Link to comment
Share on other sites
5 hours ago, Alanzot said:

Hi, thanks for the work on this great mod, however when i try to pull it up using police radio, it says the button has not been assigned.  Help?

 

Hey there, please make sure to install the police smart radio icons on the right place.

If you've done it correctly, Police smart radio will give a notification to add the new buttons during the LSPDFR on duty startup.

Share this comment


Link to comment
Share on other sites
12 hours ago, J.J Designs said:

what about on a traffic stop how would it work ?????

 

You should use another plugin, called "Traffic Stop Backup" which is created for traffic stop situation.

Share this comment


Link to comment
Share on other sites

Hi BJ, I notice a few things that needs improvement. First the police buddy is following too closely an mimicking every single move your doing...maybe you could setup a bit more space  in between character, also i find it really difficult to dismiss them. having a dismiss button would be nice to dismiss all backup in one click. when you dismiss them they tend to get in there car an run aggressively and i had one that ran into a curb an pass unconscious on the wheel coz he got stun..loll i had to call EMS loll. Also i had instance where they ran in the rear of my cruiser. I know its a tuff task...but I'm sure you'll keep improving it.

Share this comment


Link to comment
Share on other sites

Prepare to see the downloads skyrocket, amazing mod. I would even say it's a must have and really puts the default backup unit function in LSPDFR to shame.

 

💯

Share this comment


Link to comment
Share on other sites
2 hours ago, manu450 said:

Hi BJ, I notice a few things that needs improvement. First the police buddy is following too closely an mimicking every single move your doing...maybe you could setup a bit more space  in between character, also i find it really difficult to dismiss them. having a dismiss button would be nice to dismiss all backup in one click. when you dismiss them they tend to get in there car an run aggressively and i had one that ran into a curb an pass unconscious on the wheel coz he got stun..loll i had to call EMS loll. Also i had instance where they ran in the rear of my cruiser. I know its a tuff task...but I'm sure you'll keep improving it.

 

Yeah.. that'll need to be improved.. stay tuned. 😉

Share this comment


Link to comment
Share on other sites

You did it again man, I see why you didn't have time to help with my border plugin.  You were making this GEM. 

I have tested it for hours and here is my feedback and suggestions. 

 

1) Code 2 doesn't have an option for just lights no siren.  

2) I wish buddy will have a transport option when ped/s Are arrested. 

3) A choice for sex of back up (male/female)

4) Some animations the buddy does not walk over like drug/breathalzye 

 

  So far it works great with my Border checkpoint, I'm hoping the transport option 

Will be added so I don't have transport driving through the line of cars to get to me. 

This mod is amazing and makes the game so much better and realistic. 

 

Anything you can do about left Dpad closing the menu when you try to assign a task?

 

 

 

 

 

Share this comment


Link to comment
Share on other sites
56 minutes ago, Sereous313 said:

You did it again man, I see why you didn't have time to help with my border plugin.  You were making this GEM. 

I have tested it for hours and here is my feedback and suggestions. 

 

1) Code 2 doesn't have an option for just lights no siren.  

2) I wish buddy will have a transport option when ped/s Are arrested. 

3) A choice for sex of back up (male/female)

4) Some animations the buddy does not walk over like drug/breathalzye 

 

  So far it works great with my Border checkpoint, I'm hoping the transport option 

Will be added so I don't have transport driving through the line of cars to get to me. 

This mod is amazing and makes the game so much better and realistic. 

 

Anything you can do about left Dpad closing the menu when you try to assign a task?

 

 

Hi man, thanks for trying it out.

 

1.  It will work, if you're using non-ELS vehicle model.

Quote

About sirens and silent sound:

  • By default, while in code 2, siren sound is set to silent by this plugin. This will work great when you're using non-ELS car models.
  • But there's a limitation on ELS car. It will still play the siren sound, even though the plugin has turned it off.
  • If you are using ELS car and you want a silent siren while in Code 2, set "IsCode2SirenLightsOn" parameter in the .ini file to "no".

 

2. You can use PT (Prisoner Transport) provided by Arrest Manager. Make sure the police buddy and his vehicle are nearby and you have to set this parameter in the "Arrest Manager.ini" file.

Quote

//Determines whether nearby officers are only recruited for the transport task if their model & vehicle complies with the settings below & in the XML file.
//E.g. if s_f_y_cop_01 is nearby in the countryside and this is set to true, a new transport unit is still created because it doesn't comply with the settings below (by default).
//For vehicles; only takes models into account, not liveries & extras. For customisation purists, it's best to turn recruited officers off.
RecruitedOfficerMustComplyWithStandards=false

 

3. Yes, it already supports that. It will read the LSPDFR Backup.xml by default. If you have "Custom Backup" plugin, the OSB will get the backup definitions from there.

 

4. It works. Make sure to wait until the buddy is in "Watch" position next to the stopped ped. You may refresh the menu by closing and opening it again.

 

In STP (Stop The Ped), the default toggle menu button is DPad Right. If you need to select the sub-menu (left-right), you may press the DPad Left (or the opposite).

 

Make sure to download the latest "On Scene Backup" (v1.2.0.0). Sorry for frequent updates in such a short period.

 

Edited by BejoIjo

Share this comment


Link to comment
Share on other sites

I've been getting crashes whenever my backup units try to follow paramedics from betterEMS or when they try to follow the peds picked up by the paramedics from betterEMS. 

 

Here are two specific crashes I can recall:

 

1. I called a backup unit to a silent alarm callout. The suspect ended up dying so I called EMS through betterEMS. While the EMS was on scene my backup unit somehow started a pursuit of the medic. After the medic was arrested, I tried to release him which resulted in LSPDFR crashing (I tried releasing him through StopThePed).

 

2. I called a backup unit after traffic started getting stupid at the scene of a crash. An EMS had picked up the ped that died and I think the backup tried to follow the ped. Once the ped got into the back of the ambulance, LSPDFR crashed.

 

Share this comment


Link to comment
Share on other sites
17 minutes ago, TheMonotoneScone said:

I've been getting crashes whenever my backup units try to follow paramedics from betterEMS or when they try to follow the peds picked up by the paramedics from betterEMS. 

 

Here are two specific crashes I can recall:

 

1. I called a backup unit to a silent alarm callout. The suspect ended up dying so I called EMS through betterEMS. While the EMS was on scene my backup unit somehow started a pursuit of the medic. After the medic was arrested, I tried to release him which resulted in LSPDFR crashing (I tried releasing him through StopThePed).

 

2. I called a backup unit after traffic started getting stupid at the scene of a crash. An EMS had picked up the ped that died and I think the backup tried to follow the ped. Once the ped got into the back of the ambulance, LSPDFR crashed.

 

 

Hi, thanks for your report.

 

Do you still have the RPH logs? (I think you do)

Check the "\GTAV\logs" folder and find the files. After that, please post it here.

 

It'll be easier to find the root cause and fix them with the logs. Thanks!

Edited by BejoIjo

Share this comment


Link to comment
Share on other sites
5 hours ago, BejoIjo said:

 

Hi, thanks for your report.

 

Do you still have the RPH logs? (I think you do)

Check the "\GTAV\logs" folder and find the files. After that, please post it here.

 

It'll be easier to find the root cause and fix them with the logs. Thanks!

 

I think this is the log from the 2nd incident I mentioned. I was able to recreate a crash under the same circumstances, as well. It seems like it's tied to the paramedic leaving the scene. I'll see if removing some mods and scripts so that I'm only using this plugin and betterEMS has the same outcome.

RagePluginHook_24062018_204641.log

 

I recreated it. Here's that log.

RagePluginHook_25062018_010038.log

 

EDIT: Did it on a clean game, tried a couple times to recreate it and it worked fine. It's likely tied to something else. If you could help w/ telling me what that is, it would be great. If not, that's fine. I'll play around w/ it some more.

Edited by TheMonotoneScone

Share this comment


Link to comment
Share on other sites
3 hours ago, TheMonotoneScone said:

 

I think this is the log from the 2nd incident I mentioned. I was able to recreate a crash under the same circumstances, as well. It seems like it's tied to the paramedic leaving the scene. I'll see if removing some mods and scripts so that I'm only using this plugin and betterEMS has the same outcome.

RagePluginHook_24062018_204641.log

 

I recreated it. Here's that log.

RagePluginHook_25062018_010038.log

 

EDIT: Did it on a clean game, tried a couple times to recreate it and it worked fine. It's likely tied to something else. If you could help w/ telling me what that is, it would be great. If not, that's fine. I'll play around w/ it some more.

 

Hi, Thanks for the logs. That helps a lot.

It's a very rare case, that's why it's really hard to reproduce.

 

BTW. I've found the root cause and fixed it.

The fix will be included in the next release. Thanks!

Share this comment


Link to comment
Share on other sites

Think before you post. Toxic behavior will not be tolerated. Unconstructive, toxic or unnecessarily sarcastic comments will be removed and warnings issued.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×