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

Quote:
Originally Posted by kaisersouse
View Post
Just wanted to leave a note that I'm using this on my 0.3.7 server and its working 100%. Its splendid and I love it!! Since a few players have gone on NPC murdering sprees (entire highway in LV strewn with corpses) I'm setting up some code to respawn the NPCs on death and start them on their pattern again.

I tested w/ 883 simultaneous bots and they worked, albeit kinda skippy/lurchy. I've dialed it back to 500 NPCs and its much smoother.

I'm about to embark on some behavior edits tho...please let me know if these are even possible so I dont beat myself against something that isn't going to work anyways I eventually want:

A certain percentage of 'asshole' drivers (drive fast, knock things down, etc).
I'd like some of the vehicles to have armed passengers
I'd like some of those armed passengers to randomly attack human players they encounter
**I'm trying to find the code that prevents the drivers from spawning tanks and riding around in those. I really want random tanks, so I can make them randomly fire and blow stuff up. Can you tell me where the code is that determines which vehicle models are spawned by non-taxi drivers?


Basically I'm trying to set up some hint of an AI system that may mimic single-player pedestrian behavior, if only just a little bit.

This script is awesome on its own though, without edits. Good job!!!!!
Thanks, nice to hear you like it. I made another update to the drivers for better start & end paths (copy the gps.dat from github too, many fixed nodes).
With JIT Pre-Compiler 999 NPCs are not a problem on a homeserver btw.

The array VehicleZOffsets determines which cars can be driven (-1000.0 for unusable).

Change
Code:
-1000.0/*(432)*/
to
Code:
0.6743/*(432)*/
to enable the Rhino

About the ped AI, I wrote a plugin for an AI library which works almost exactly like the GTA SA one for Peds. I managed to load the original SP ped files & config already (Ped types, relations (like/hate etc)).
It works pretty well, but pretty resource intense and limited to about 200 Peds. And Paths are a problem yet.
If you want to see it PM me, I can show you some cool things.

The armed passengers are definitely possible and could be added on top of something we have already planned.
Our goal is to make them stop if a player is in front of them (atm they just brake when another driver is in front of them) and they would perfectly produce a traffic jam. Aggressive drivers would just not give a damn about anything then or just kill the barricade with his passenger. However I don't see anything to "knock down" except players.

And for the deaths - I will add code for the respawning later, totally forgot that yet.

About the Drivers Update:

- Updated GPS.dat (for RouteConnector) with many fixed nodes and a lot
more parking lots
- Random Drivers & Cops drive from parking lot to parking lot now with a
little break -> More realistic paths
- Better and more efficient movement streaming - FCNPC 1.0.5 required

Make sure to get the newest GPS.dat from GitHub.
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)