Closed A5800000BD79867 closed 3 years ago
Do you have an example video, which you could provide?
I will try.
ty for waiting. https://youtu.be/TIOVwxSczgw
Ok. I do now understand the problem completely thanks to your video.
It because STP does not use the lspdfr Funktion setCopToBusy() to signalize that this vehicle is currently in use of a script.
I will take a look if i could recognize a stp officer.
Thanks for your report. We will send a fix report here as soon as this bug has been fixed.
@A5800000BD79867 Can you send me you AmbientAICallouts Version number to verify which algorithm didn't work well?
[6/11/2021 12:46:27 PM.983] LSPD First Response: AmbientAICallouts, Version=0.9.7.3, Culture=neutral, PublicKeyToken=null
And the session log, just in case RagePluginHook.log
offtop: the STP must have an API to check whether the ped is a partner. If not, you can try to do this by getting the group (PED:: GET_PED_GROUP_INDEX)
@A5800000BD79867 no i cant use PED:: GET_PED_GROUP_INDEX because it would return "cop" which is indeed a problem because i take for my callouts random lspdfr units. if this function does not return that this is comming from an stop the ped script i cannot use it.
i searched for an api in stp but i didnt found a function which returns information wether a ped is comming from stp.
So possible fix has been found:
For your Ultimate Backup issue.. Have you considered checking which tasks an Ultimate Backup ped has when they're just standing around and using that to determine if they're busy? If they have any extra tasks, they would be considered busy
this may help 0xB0760331C7AA4155 or 0x77F1BEB8863288D5 but i can mistake
this may help 0xB0760331C7AA4155 or 0x77F1BEB8863288D5 but i can mistake
Thank you. I already use successfully one of those natives to determine the tasks.
I just hadn't the time to identify tasks wich are specific to STP.
But since the last internal changes i am actually good at working with those task identifications and i am confident that if there are tasks, that we can fix it
@A5800000BD79867 okey it is true.
When STP controls the Driving: CTaskDriveCarControl
When STP dismissed the ped: CTaskDriveCarWander
You also need to remember about the shootings, as well as the protection of suspects, if you do the functionality when the cops outside the car take a call. Of course, this is not the best way to find out, but what is there)
You also need to remember about the shootings, as well as the protection of suspects, if you do the functionality when the cops outside the car take a call. Of course, this is not the best way to find out, but what is there)
They just use cops in vehicles when sirens turend off. so that would match to prision transport and following the player with sirens off.
But even in the prision transport they would follow a specific path. So in case this task is also the CTaskDriveCarControl, my fix would include this case too.
Police Partner is a feature of Ultimate Backup.
I looked at the UB updates. It seems like we added an API. I asked them to do this...
isUltimateBackupCop()
#
I looked at the UB updates. It seems like we added an API. I asked them to do this...
isUltimateBackupCop()
yes but then it would use only non UB cops which is also not good. i guess i figured a good way to fix this without compleatly removing UB cops from the AmbientResponse vehicle selection.
Why? I think that the native will return false if you release the partner
Why? I think that the native will return false if you release the partner
Could you test this?
ok looks like they stay true when dismissed ==> isUltimateBackupCop()
https://github.com/ziipzaaapM16A4/AmbientAICallouts/issues/9
[fix] AmbientResponse using vehicles which are not free https://github.com/ziipzaaapM16A4/AmbientAICallouts/commit/583d26c92363648b7d2586330e0ec05b6df9624c
STP has the opportunity to create a partner who will follow you in their car. When the AiCallouts calls the unit, then the partner behind the wheel accepts it and drives away, although it should not. (sry 4 my eng)