[FilterScript] NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)
#76

Quote:
Originally Posted by hydewhyd
View Post
Sometimes there are some nodes that when parking a vehicle as a taxi or police car are "bugged" or what? Look at this image.
There are routes that vehicles arrive to collide. Look at this second image.

And another question, can you make a choice to disable or enable the parking of vehicles in the script?
I can't see one of the images, can you upload the other somewhere else? The one at the garage door loads fine.
And did you download the newest GPS.dat from my GitHub? With that version there are actually no paths to get stuck anymore. However some end-nodes are badly chosen (I will rework some of them).
About vehicle collision, I could do something about that but that would make the script even more ressource intense, they now ignore every other NPC that is not facing the (almost) same direction, which makes it quite efficient. Removing that will make a quite complex loop at every node point

I'll add a define for parking later. But imo this is way better than having vehicles 180-turn in the middle of the street (which is not possible to fix except editing the GPS Plugin to start calculations in a defined direction - it's discontinued by Gamer_Z).

Quote:
Originally Posted by kaisersouse
Oh thanks for the tip! yeah its defintely a work in progress still. This morning I copied some of the drivers_init stuff but didnt have much time to test. On test server now the driver AND the car end up at 0,0,0 hovering...but once you shoot at them they drop to the ground and attack etc. I'll play more with it later tonight.
Once they exited you should catch FCNPC_OnReachDestination to not do anything anymore.
When they should get back to the car, check if the vehicle has respawned (Drivers[id][nVehicle] is the vehicle ID). If yes, put the car next to them, else they will be doing unpredictable stuff.
If they re-entered call "pubCalculatePath" (using a timer, copy from somewhere else) and they should continue as normal. WhenRouteIsCalculated resets all important variables (including state) for you. If theyre back in a vehicle and no other part of the script is accessing the NPC it should work well.

However you can also wait for me to add it, not like you couldn't, but I guess there are quite a lot of things to take into account. I have a quite good system in my head already how to make it efficient and nice. For example letting them drive off the road a bit when exiting.
Reply


Messages In This Thread
NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 01.09.2015, 15:06
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Sellize - 01.09.2015, 15:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Logofero - 01.09.2015, 15:46
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 01.09.2015, 16:17
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 01.09.2015, 16:23
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by JustinAn - 01.09.2015, 16:28
Re: AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 01.09.2015, 16:29
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Zues - 01.09.2015, 18:06
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Michael B - 01.09.2015, 18:18
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by GustavoSouza - 01.09.2015, 19:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Admigo - 01.09.2015, 19:11
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 01.09.2015, 20:29
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Neutralneu - 02.09.2015, 03:48
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by n0minal - 02.09.2015, 04:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by JJohnson1 - 02.09.2015, 05:13
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AroseKhanNiazi - 02.09.2015, 06:55
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by X337 - 02.09.2015, 07:01
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 02.09.2015, 10:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by JustinAn - 02.09.2015, 20:18
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 02.09.2015, 20:20
Re: AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by JustinAn - 02.09.2015, 20:22
AW: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 03.09.2015, 01:29
Re : NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by nicolaskettler - 03.09.2015, 01:50
AW: Re : NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 03.09.2015, 02:13
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by trablon - 03.09.2015, 02:22
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Jastak - 04.09.2015, 18:24
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 04.09.2015, 18:27
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kristo - 04.09.2015, 19:05
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 04.09.2015, 20:39
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 04.09.2015, 22:43
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 05.09.2015, 10:07
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kristo - 05.09.2015, 11:39
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 05.09.2015, 12:00
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Ivan_Ino - 05.09.2015, 12:03
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by alibassam - 06.09.2015, 12:12
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 07.09.2015, 10:31
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by xXDuno2000ManXx - 08.10.2015, 15:08
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Strongerking - 12.10.2015, 17:34
AW: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 12.10.2015, 19:43
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by N0FeaR - 06.11.2015, 13:33
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Twine - 06.11.2015, 22:59
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Mijata - 07.11.2015, 10:10
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Maestruli - 22.12.2015, 21:57
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Sanderluc - 23.12.2015, 00:24
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by wolftech - 23.12.2015, 16:01
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Z0MBERTH - 24.12.2015, 00:09
Respuesta: Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Maestruli - 24.12.2015, 01:19
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Z0MBERTH - 27.12.2015, 21:01
Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 31.01.2016, 17:14
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by czj2441 - 17.02.2016, 06:14
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Hellman92 - 17.02.2016, 06:18
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 17.02.2016, 07:49
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by AIped - 17.02.2016, 07:52
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by supernerd2000 - 10.04.2016, 19:05
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 10.04.2016, 22:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Kar - 10.04.2016, 22:28
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 13.04.2016, 14:15
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 13.04.2016, 14:18
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 13.04.2016, 14:48
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Azhar - 13.04.2016, 15:09
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 14.04.2016, 17:49
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by OmegaKiller72 - 14.04.2016, 19:55
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 15.04.2016, 16:06
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 18.04.2016, 16:51
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 18.04.2016, 22:02
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Whyd - 18.04.2016, 22:14
Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 18.04.2016, 22:24
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by PT - 18.04.2016, 22:28
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 18.04.2016, 22:38
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 20.04.2016, 14:36
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by PT - 20.04.2016, 14:43
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 20.04.2016, 14:53
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Whyd - 20.04.2016, 15:19
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 20.04.2016, 15:20
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Admigo - 20.04.2016, 15:27
Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 20.04.2016, 15:45
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Whyd - 20.04.2016, 16:04
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 20.04.2016, 16:23
Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 20.04.2016, 16:42
Respuesta: Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Whyd - 20.04.2016, 16:53
Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 20.04.2016, 17:30
Re: Respuesta: Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 20.04.2016, 18:10
Respuesta: Re: Respuesta: Re: Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Whyd - 20.04.2016, 18:26
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by kaisersouse - 21.04.2016, 11:40
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 21.04.2016, 12:34
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by CoaPsyFactor - 21.04.2016, 20:11
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 26.04.2016, 22:29
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Sc0pion - 24.05.2017, 04:34
Respuesta: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by byalexv - 21.07.2017, 12:14
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by langit - 30.10.2017, 14:11
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Astralis - 30.10.2017, 14:35
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by langit - 30.10.2017, 14:53
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 02.11.2017, 20:53
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by langit - 03.11.2017, 16:35
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Lokii - 03.11.2017, 17:11
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by GabrielBas - 08.12.2017, 04:42
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 08.12.2017, 17:41
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by GabrielBas - 08.12.2017, 19:11
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 08.12.2017, 20:35
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by GabrielBas - 08.12.2017, 20:56
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 08.12.2017, 21:28
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by GabrielBas - 08.12.2017, 21:33
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 08.12.2017, 23:14
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by JesusChrysler - 09.12.2017, 19:13
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by duc21122002 - 12.12.2017, 10:33
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 12.12.2017, 12:24
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by solstice_ - 12.12.2017, 14:12
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by RogueDrifter - 12.12.2017, 16:38
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jasons711 - 08.02.2018, 07:07
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 10.02.2018, 12:27
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 07.03.2018, 17:53
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 07.03.2018, 18:08
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 07.03.2018, 18:15
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by m4karow - 07.03.2018, 18:40
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 08.03.2018, 10:19
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 08.03.2018, 16:29
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 09.03.2018, 12:45
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 09.03.2018, 14:57
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 09.03.2018, 16:50
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 10.03.2018, 10:29
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Inuro - 10.03.2018, 13:16
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 10.03.2018, 14:30
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Inuro - 10.03.2018, 14:38
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by jop9888 - 10.03.2018, 15:27
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Lokii - 10.03.2018, 15:38
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 10.03.2018, 16:44
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by RANGER44 - 16.04.2018, 21:22
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by prfsamp - 16.12.2018, 00:37
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by DIRTYBYT3 - 18.12.2018, 05:17
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by bookknp - 11.02.2019, 10:16
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 12.02.2019, 14:32
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by bookknp - 12.02.2019, 21:25
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Kob - 17.02.2019, 07:07
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by ThePez - 21.03.2019, 21:59
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 21.03.2019, 23:22
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by ThePez - 22.03.2019, 00:54
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 22.03.2019, 01:33
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by Chaprnks - 30.03.2019, 01:41
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by NaS - 30.03.2019, 11:16
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by parames3010 - 17.04.2019, 23:27
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by BsLOUAY - 18.04.2019, 12:41
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version) - by RenanMsV - 18.04.2019, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)