Modifying Pedestrian AI
-
Hi everyone!
I am totally new when it comes to modding GTA, but I am eager to make strides in reasonable time.
Which file(s) would I look into to go about doing the following things that the Realism Enhanced Traffic and Driver Mod has tended to:
- Rather than pedestrians stopping to then back up to go around a car, have them go around the car altogether without having to stop
2). Have pedestrians change lanes and park more frequently
3). Make it so pedestrians can properly use right turns at red lights, and may also choose which lane is best based upon cars ahead
I do have OpenIV and Codewalker installed.
I'd like to fiddle around with variables like these on my own, hence why I am seeking this information. Thank you
- Rather than pedestrians stopping to then back up to go around a car, have them go around the car altogether without having to stop
-
@CapeCon All the functions you need are here:
https://alloc8or.re/gta5/nativedb/
With respect specifically to ped driving styles:
Function.Call(Hash.TASK_VEHICLE_ESCORT, CurrentPed, LastVehicle, Vehicle1, 4, 56.0F, 16777216, 2, 1, 4);
//not sure about p7, set it to 1The 16777216 is the driving style parameter
https://www.vespura.com/fivem/drivingstyle/-
Stop before vehicles
-
Stop before peds
-
Stop before vehicles and peds (1+2=3)
-
Avoid vehicles
-
Stop before vehicles and avoid vehicles (in other words, 1 + 4 = 5)
-
All of the above, stop and avoid
-
Stop at traffic lights
-
Both lines above (63 + 128 = 191)
-
Drive in reverse gear
-
Take shortest path (Removes most pathing limits, the driver even goes on dirt roads)
-
Ignore roads (Uses local pathing, only works within 200~ meters around the player)
-
Ignore all pathing (Goes straight to destination). This is what caused ramming
-
Use blinkers.
-
Use blinkers, avoid shit, stop for everything including traffic lights
-
Same as above but doesn't stop for traffic lights.
-
Allow overtaking vehicles if possible (Unconfirmed)
-