Everything posted by ziipzaaapM16A4
-
[SOLVED] How to recognize the end of an AiOfficers arrest?
but then it would never become true when the suspect escaped. i mean i could setup an event if the suspect gets lost. checking the event. if the event is true then not executute the wait timer until the suspect is in a vehicle. but i didn't saw any options to specify which ped escaped. EDIT: i think i found an event which gives me everything i need.
-
[SOLVED] How to recognize the end of an AiOfficers arrest?
oh... yes. you're right. i totally forgot that i can ask the other way too. not only asking for the occupants of a vehicle. suspects[0].IsInAnyPoliceVehicle; Sorry. 🤦♂️
-
[SOLVED] How to recognize the end of an AiOfficers arrest?
That doesn't work. Function IsPedGettingArrested is sadly just holding on for the time of the handcuff and standing up. Which means its not even longer than IsPursuitStillRunning. I want to get false or true when the suspect has been placed in a police vehicle.
-
[SOLVED] How to recognize the end of an AiOfficers arrest?
So this is a very simple code snippet. My question is: How can i detect after an pursuit if the officers are still handling the arrest? var Pursuit = LSPDFR_Functions.CreatePursuit(); LSPDFR_Functions.AddPedToPursuit(Pursuit, Suspects[0]); while (LSPDFR_Functions.IsPursuitStillRunning(Pursuit)) { GameFiber.Sleep(1000); } //ISSUE: Officers & Peds get dismissed before the Arrest is fullfilled. //dismissing all suspects and officers
-
[REL] AmbientAICallouts
API published How about getting the first steps with following references & code examples: AmbientAICallouts.API => https://github.com/ziipzaaapM16A4/AmbientAICallouts.API Default-AiCallouts-Pack => https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack AiCallout Example (Template) => https://github.com/ziipzaaapM16A4/AiC_Example
-
[SOLVED] Overuse IsCopBusy()
thanks m8. It looks really good rn.
-
[SOLVED] Overuse IsCopBusy()
🤦♂️ yeah that fixed it. hmm i wonder why i let them sleep in the first place.
-
How would I get the actual name of the primary color of a vehicle?
i use this (issueVehicle.PrimaryColor.ToKnownColor().ToString() == "0" ? "" : issueVehicle.PrimaryColor.ToKnownColor().ToString()) there is not always a known color
-
[SOLVED] Overuse IsCopBusy()
Hello , so i tried this day to find out when a cop is busy by lspdfr so i can better decide on which cops i use. i wrote so far this code here to analyze when a ped is a cop and when they are busy or just ambient-busy. this looks like here (in the Picture): By trying this code i often get an lspdfr crash here is the full error message: so i extended the sleeps to give lspdfr more time. Now it does work for a few rounds but still lspdfr reports back with this exception. Which is an actual problem for me because the way i wanted to use those functions is pretty similar to the one in the code. For AmbientAICallouts i will need to check all surrounding peds (for now just in copcars) if they are busy. If im doing that not something like this could happen: lspdfr suspect transport gets an AiCallout. Questions: - How would i use this function without destablizing lspdfr? - @LMSWhy is even backup just an AmbientScenario ( yellow = includeAmbientScenarios) (red = busy but not from AmbientScenarios) (green = not busy) Thanks.
-
SP/FIVEM DOJRP Styled Map With Street Names and Addresses
@GrandTheftPD @Cameron K. @danksg @David Mcbang Looks like the mapzoom does not work because he addressed in his files this: "Map With streetnames and Adresses\GTAV SP\mods\common\data\ui" But when you take a closer look at gta v you would see that... this path here "...\Grand Theft Auto V\common\data\ui\mapzoomdata.meta" does not exist in GTA. So that means it would replace nothing. So i thought maybe its... the common.rpf so i put the mapzoomdata.meta into "...\Grand Theft Auto V\common.rpf\data\ui\mapzoomdata.meta" aaaand yes. That just fixed the Zoom Error
- 33 comments
- 7 reviews
-
[REL] AmbientAICallouts
@LSPDhotstuffWhatever he needs, he can send me a pm. I will see what a can build.
-
[WIP] Agency Dispatch Framework
Whatever he needs, he can send me a pm. I will see what a can build.
-
[REL] AmbientAICallouts
https://streamable.com/r58x7h - AAIC - Crime Fighting - development demo 2 https://streamable.com/xk4ey6 - AAIC - RejectedCalloutAI - development demo 3 https://streamable.com/81ehq7- AAIC - Crime Prankcall - development demo 4 https://streamable.com/0c15t2 - AAIC - Crime MVA - development demo 5 https://streamable.com/0xxwc6 - AAIC - Crime Shooting - development demo 6 https://streamable.com/mbpbx3 - AAIC - Heli Assistance support - development demo 7
-
Alternative solution when lspdfr blocking some ped tasks?
i worked a little on it. works really good. fO.LogTrivialDebug_withAiC($"DEBUG: Aproach and Aim"); int task = 0; //0 = aproaching, 1 = aiming, 2 = shooting; fO.LogVerboseDebug_withAiC($"DEBUG: get Task 0 -------- 0 = aproaching & aiming, 1 = aiming, 2 = shooting, 3 = lasttimeaproach, 4 = aimOnce"); foreach (var officer in fO.UnitOfficers()) { officer.Inventory.GiveNewWeapon(new WeaponAsset("WEAPON_PISTOL"), 30, true); GameFiber.StartNew(delegate { var thisOfficer = officer; float innerRange = 10f; while (task == 0) { if (officer) { if (thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.InProgress && thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.Preparing) { try { if (thisOfficer.Position.DistanceTo(fO.Suspects()[0].Position) > innerRange + 2f) { thisOfficer.Tasks.GoToWhileAiming(fO.Suspects()[0].Position, fO.Suspects()[0].Position, innerRange, 2f, false, FiringPattern.SingleShot); } else { thisOfficer.Tasks.AimWeaponAt(fO.Suspects()[0].Position, 15000); } } catch { } } } GameFiber.Yield(); } thisOfficer.Tasks.Clear(); while (task == 1) { if (officer) { if (thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.InProgress && thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.Preparing) try { thisOfficer.Tasks.AimWeaponAt(fO.Suspects()[0].Position, 15000); } catch { } } GameFiber.Yield(); } thisOfficer.Tasks.Clear(); while (task == 2) { if (officer) { if (thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.InProgress && thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.Preparing && !LSPDFR_Functions.IsPedGettingArrested(fO.Suspects()[0]) && !LSPDFR_Functions.IsPedArrested(fO.Suspects()[0])) { try { LSPDFR_Functions.SetCopIgnoreAmbientCombatControl(officer, true); thisOfficer.Tasks.FightAgainst(fO.Suspects()[0]); } catch { } } } GameFiber.Yield(); } thisOfficer.Tasks.Clear(); while (task == 3) { if (officer) { if (thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.InProgress && thisOfficer.Tasks.CurrentTaskStatus != Rage.TaskStatus.Preparing) { try { if (thisOfficer.Position.DistanceTo(fO.Suspects()[0].Position) > 3f + 2f) { thisOfficer.Tasks.GoToWhileAiming(fO.Suspects()[0].Position, fO.Suspects()[0].Position, 3f, 2f, false, FiringPattern.SingleShot).WaitForCompletion(); officer.Inventory.GiveNewWeapon(new WeaponAsset("WEAPON_UNARMED"), 1, true); } } catch { } } } GameFiber.Yield(); } thisOfficer.Tasks.Clear(); bool once = false; while (task == 5 && !once) { if (officer) { try { thisOfficer.Tasks.AimWeaponAt(fO.Suspects()[0].Position, 80000); } catch { } } once = true; } }); LSPDFR_Functions.SetCopIgnoreAmbientCombatControl(officer, false);
-
Alternative solution when lspdfr blocking some ped tasks?
I use now a IfNoTaskRepeater to reexecute the task in combination with the position instead entity. Works so far.
-
Alternative solution when lspdfr blocking some ped tasks?
no. but in another aicallout i use only the entity and it works there sometimes. if you become out of ideas i guess its just me. btw a video of how it looks currently https://streamable.com/sx7flx
-
Alternative solution when lspdfr blocking some ped tasks?
Hello, i'm using ambient spawned unit or RequestBackup(noRespondTask = true) unit to let them respond to emergencys. Now when they arrive the should AimAt() or AimAndAproach(). But both doesn't work. I tested using SetCopAsBusy(true). No difference! Onetime LSPDFR crashed due to another Plugin and right after the crash all officers ( with SetCopAsBusy(true) and without ) were just Aiming for the right Timedurration. That gave me the hint that lspdfr is not even only in combat controlling cops but also when having NoTask. Is there a way to get these officers executing their tasks?
-
[Solved] Randomize Scanner Audio?
As far as i know LSPDFR is randomizing the files itself. By using this for the string "UNITS_RESPOND_CODE_02", lspdfr will choose "_01" or "_02" to randomize these files. (as soon as you have "UNITS_RESPOND_CODE_02_02.wav" ) No need to write your own speech randomizer.
-
[OnHold] EMS Support - LSPDFR Callouts Plugin
@chadc78 wanna get the testbuild?
-
[WIP] Agency Dispatch Framework
@chadc78 😄 release in a couple of weeks, maybe days. police Tape is original. turn it on at: "Use Alternative Tape"
-
[WIP] Agency Dispatch Framework
Im really really exited.
-
[REL] AmbientAICallouts
Enjoy the trailer to AmbientAICallouts. OUT NOW. Checkout my Patreon for Early Access to my mods checkout my Discord Server I'm open for questions. Update 12.11.2020: API published How about getting the first steps with following references & code examples: AmbientAICallouts.API => https://github.com/ziipzaaapM16A4/AmbientAICallouts.API Default-AiCallouts-Pack => https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack AiCallout Example (Template) => https://github.com/ziipzaaapM16A4/AiC_Example Update 20.12.2020: AmbientAICallouts has been released! check it out now: (I'm sorry for any grammatical errors. Please do correct my. I was working now 10 hours straight on this release. i'm a little bit tired. )
-
[Request] API Functions
got a new request @LMS: CopPerformArrest(Ped Cop, Ped Suspect, bool ArrestOnGround) if false officer would arrest just like holding E in front of an Ped (detaining). if true officer would arrest like AI already does for example in pursuits. void PlayPedRadioAction() for having an Ai to play this Animation. void PlayOfficerScannerAudio(string audiostring) PlayScannerAudio() always uses the DISPATCH_INTRO files. But sometimes a Unit does the radio traffic. would be nice if there came a function which would switch to OFFICER_INTRO files
-
Search Vehicle Plugin
Actually that is kind of our plan for SVP but currently we are focusing on AmbientAICallouts which will be released soon ( https://www.youtube.com/watch?v=BMPmnLqKzmE in the video description are more demo videos).
- 72 comments
- 6 reviews
-
Heli Assistance - Observer Mode, Customizable Searchlight, More Features
Great plugin. Add multiple Helicopters please. At least 2 in persistence mode (air 1, air 2). Would be great if the API does not send any Notifications when calling request functions
- 366 comments
- 33 reviews