Jump to content

Driving bot


dzek (varez)

Recommended Posts

Aside of my new gamemode I'm working on driving bots, cause long time ago somebody said that he's working on peds resource, imitating peds from single player, but still nothing.. This is first working script so bots are behaving a little crazy (turning left and right), also no waypoints are set (just one short path - at the end of movie the path is over so bot is jumping from the cliff). I'm gonna improve AI, add some checks if something is on bot way - so it can avoid obstacle (or at least try) and .. synchronize it :P It won't be perfect when i finish it anyway, but be as good as i can do - and will be useful anyway (no more empty cities while playing - it will be cool even with race gamemode (if you dont want bots to move on your way - you can always but them in background - as visual thing)).

okay, enough said, watch video, and remember - its only an early alpha :)

and as a bonus, fail video:

sorry for no sound in 2nd movie, some-weird-music in 1st one, bad quality in both ^^

Link to comment

Looks like a good start :)

You should be able to extract all the paths from GTA - or someone may have already done this. Then you'd need them to make decisions about which way to go at junctions which might lead to pathfinding if you want them to drive to particular locations.

Anyway, that's looking good!

Link to comment

I can create own waypoints, there is no problem with this. Also custom waypoints system is a good feature for custom maps. I don't know any good algorithm of route selecting from waypoints and connections between them, but i think i will find it out sooner our later :)

While creating this resource i discovered one bug with coronas, I'll report it tomorrow.

Link to comment

Before you continue on this, it's worth noting that there is already a resource that immitates peds like in single player, it's just not publically available (available on request). We're looking into making this available to public. I'm sure there are videos of it on youtube already. It uses complete GTA paths and an A* algorithm.

There's also a seperate taxi driver resource made by arc_, which is a fully functional resource in which a ped drives to a desired location.

Link to comment

Wow! One next step for the realistic city, driving bots. Could be useful for non-skipping taxi driving with a bot. (As seen on DP2's Simbad's server taxi service, it just skips right to the destination.) That's one daring step to go. :)

PS: The first video's music was like my country's national song. :D

Link to comment

hm, maybe later..

i'm interested in this resource.

if you cant release it soon - i'll finish this one (or maybe i wont implement A*) - because without it my gamemode will be a bit.. incomplete.

after releasing i can always switch to better one (if it will be better than mine - but i think it will :P)

Link to comment
  • 1 month later...

he probably want to run it and forget. this need scripting knowledge anyway.

btw:

on my college we are taking math lessons that can be much useful to improve this script. after we'll finish this topic - i'm sure i'll continue it, as this is my fav script i even started to make (and i have some of them in progress.. hell, im always starting things and not finishing)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...