SAMP NPC Traffic and Peds
#7

that video demonstrates how to sort of stream NPCs. not bat, considering the boring 12-minute ride along the paths...
i was missing the blips on the radar, but thats not the point.
each npc was busy driving its boring route at the same speed, regardless modelid - to be honest, this looks far worse than the singleplayer peds, which actually REact on actions around.
for SAMP, i think about the GPS, HeightMap, and RNPC plugin combined to generate realtime peds, driving along some nodes.
and there is the crux, its close to impossible to:
-recalculate the next step/route for 100 bots, to...
-make the bots able to act in realtime, like:
-let them dodge traffic,
-let them get damaged by explosions/bullets,
-let them shoot at enemies.
-let them avoid custom objects

considering that lots of NPCs take an analogue amount of threads, it IS possible to let them act almost like in singleplayer. if each bots' logic is operating really, really fast, then its not possible.
due to the currently used pathfinding algorithms (a*, dj etc) there is no way to achieve more than 50 npcs. but, somehow i got 100 npcs running lagfree, reacting on players actions incl. (custom scripted) explosions, bullets, and traffic (they dodge cars when a player drives towards them) - so, in short:

YES, its possible, but you need a ****load of time to learn the techniques on how to do it.

@mastermax7777: you just made me start to think about scripting NPCs which enter a casino to arrest players - considering AI: imagine if a player enters an interior with 2 entrances. would it be possible to let the NPCs hunt you down by entering both (or more!) entrances?
Reply


Messages In This Thread
SAMP NPC Traffic and Peds - by jakejohnsonusa - 29.03.2013, 13:14
Re: SAMP NPC Traffic and Peds - by dominik523 - 29.03.2013, 13:24
Re: SAMP NPC Traffic and Peds - by jakejohnsonusa - 29.03.2013, 13:27
Re: SAMP NPC Traffic and Peds - by Ryan_Bowe - 29.03.2013, 13:35
Re: SAMP NPC Traffic and Peds - by jakejohnsonusa - 30.03.2013, 17:13
Re: SAMP NPC Traffic and Peds - by mastermax7777 - 30.03.2013, 18:01
Re: SAMP NPC Traffic and Peds - by Babul - 30.03.2013, 18:28

Forum Jump:


Users browsing this thread: 3 Guest(s)