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

NPC Drivers (FS Version) v1.2.5 by AIped & NaS


> About

NPC Drivers are NPCs (created with FCNPC), which are driving around San Andreas like the ones you see in Singleplayer.

> Citizen

The crazy citizen just drive around, ignoring everything and everyone trying to stop them. Seriously.

> Taxis

Among the crazy citizen, there are also actual taxis driving around.
If you call one (using /Taxi), a taxi near your position will respond and pick you up.
But if there are no taxis around, you will have to wait.

> Notes

The NPCs still look quite laggy, and there are issues with their movement when they drive up/down steep roads or such.
This cannot be fixed (at least I tested everything I could imagine), it may be a FCNPC or SA-MP bug.

After the start the script needs to calculate new paths for all NPCs, which can take some time. You'll get notified as soon as it has finished.

If you find bugs that I can fix, please post them here. Also every suggestion is welcome!

You may also want to use the JIT Compiler if possible, it reduces the average path calculation time by about 7-10 times, however this may vary for different PCs and settings.

Also note that reloading the FS may lead to a crash, GMX is working well.

> Commands

/Taxi - Calls a taxi

Admin:

/ds [id] - Puts you in the car of a Driver
/DInfo - Prints debug info (containing general info and some data about performance) to the console/server log

> Download

Filterscript + Fixed GPS.dat (GitHub): Click!

Make sure to download the GPS.dat too, this Script uses the Parking Lots added in my version. If you do not do this, the FS may not start properly.

> Install

Click on the above link to GitHub and download the contents as ZIP.
Then open the archive and copy the filterscripts and scriptfiles folders into your SA-MP Server directory, after that compile driverfs.pwn.

Also make sure to download the newest versions of the plugins required (see below).

It's important that your maxnpc is adjusted to at least the total amount of Drivers and other NPCs on your server!

> Dependencies

You will need to download the following plugins:

- Fully Controllable NPC Plugin (2.0.0 RC1-7)
- Modern GPS Plugin (Click)
- Rotations.inc by Nero_3D (v1.2.0) (Click)
- ColAndreas Plugin (Click)

> Changelog

Version 1.2.5
  • Switched to kvann's Modern GPS Plugin
Version 1.2.4
  • Works with FCNPC 1.7.*
  • NPCs can now drive bikes (and also lean left/right in turns) - needs some more work though
  • NPCs rotate on all axes now, depending on terrain.
  • Taxi call will now be correctly aborted if the called Taxi gets killed by someone
  • Adjusted path smoothing to be more lightweight. Needs some more tweaking as well.
Version 1.2.3
  • Removed dependancy on QuaternionStuff Plugin
  • Now uses Nero_3D's Rotations.inc (see Dependancies)
  • Fixed infinite loop when using /ds
  • Now using ZCMD for commands
  • Works with latest FCNPC Version
Version 1.2.2
  • Some small optimizations and bug fixes
Version 1.2.1
  • Added support for FCNPC 1.0.4
  • Added Cops (count as civilains) - They turn on the sirens sometimes to annoy their surroundings
  • Added Skin Arrays for different types (Civ, Cops, Taxis)
  • There is a very rough time measurement now when you choose your destination
  • Fixed stop'n'go (Using proper math instead of buggy distance checks)
Version 1.2
  • General performance improvements
  • Using ColAndreas for more precise rotations - If you need it to be MapAndreas, PM me for a MapAndreas version
  • Using Streamer for its simple and effective Area functions
  • Manually fixed hundreds of nodes
  • Reduction of path lengths (Node distance are now dynamic)
  • Streaming NPC-Movements (NPCs without players around will only calculate very rough movements)
  • NPCs brake when another NPC is in front of them (not yet perfect)
Version 1.1
  • Improved Start- and Endnode calculation
  • Shortened paths on recalculations (Improves performance)
  • Improved speed calculations, speed changes over time (based on steepness/turning angle)
  • Reworked some values (smoothing, paths, ...)
> Credits

AIped - Help, Support, Ideas, Scripting, ...
Gamer_Z - Testing, RouteConnector Plugin, QuaternionStuff Plugin and great help with some math-problems.
OrMisicL & ZiGGi - FCNPC Plugin
DeathonaStick - Help with quaternions, testing
Pottus, Slice, Chris42O, uint32 - Greatest plugin of all times - ColAndreas
kvann - Modern GPS Plugin
SA-MP Team - SA-MP
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: 5 Guest(s)