kagikn

RAGE Plugin Hook documantation says 512 is AllowWrongWay(which means the ped can reverse run by car) and 536870912 is AvoidHighWays (the ped can't drive a car on highways), I tested these with TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE.

Eddlm

00000000000000000000001000000000 - 512 - allow going wrong way (only does it if the correct lane is full, will try to reach the correct lane again as soon as possible)
00100000000000000000000000000000 - 536870912 - avoid highways when possible (will use the highway if there is no other way to get to the destination)

I'd like to know if anyone thinks this is closer to the most optimal escaping AI setup?

When I tested yesterday (without the driving ability) the AI would mostly drive very well in long roads, but in the city they'd just slow down (nearly coming to a stop even) in curves / intersections, it's actually a problem.

Cyron43

how do i get the peds to drive like they are being shot at? i have tried all of these:nearpeds[i].DrivingStyle = DrivingStyle.Rushed; nearpeds[i].DrivingStyle = DrivingStyle.IgnoreLights; nearpeds[i].DrivingStyle = DrivingStyle.AvoidTrafficExtremely; Function.Call(GTA.Native.Hash.SET_DRIVE_TASK_DRIVING_STYLE, nearpeds[i], 4); Function.Call(GTA.Native.Hash.SET_DRIVE_TASK_DRIVING_STYLE, nearpeds[i], 8); Function.Call(GTA.Native.Hash.SET_DRIVE_TASK_DRIVING_STYLE, nearpeds[i], 16); Function.Call(GTA.Native.Hash.SET_DRIVE_TASK_DRIVING_STYLE, nearpeds[i], 32);

There are other functions responsible for fleeing. The native DB ( http://www.dev-c.com/nativedb/ ) has this TASK_REACT_AND_FLEE_PED and some others (expand the whole list and search flee).ScriptHookVDotNet offers the FleeFrom Task.