Niko drives from the passenger seats
Posted 18 August 2013 - 02:56 PM
I remember a mod in Vice City where the player could sit in a passenger seat (in the back of a car, limo) and drive the car from that position.
This was really nice if you had a bodyguard who would sit in the driver seat and it would look like you had a personal driver.
Is there a similar mod for GTA IV ? If not, is it hard to code?
Thanks a lot for reading !
Posted 18 August 2013 - 03:31 PM
I know it's possible to have a ped driving a car to a specific location (that you could choose) and to make you sit in a passenger seat. So you'll have a personal driver (like Taxi but without any cost).
But I don't know if it's possible to control the car from a passenger seat...
Is it hard to code, it depends of every actions the mod would have to make. (Does the personal driver wait for you at your parking, or do you have to call him in order to make him come to you, ...) I think it can be easy but control the car from a passenger seat seems more difficult (if there isn't native functions to help)
Posted 18 August 2013 - 05:40 PM
Maybe a swap action on entering and exiting for better looks. It is not difficult you just need to think out of the box .
Posted 19 August 2013 - 11:37 AM
Thank just think about sitting in and out.
Posted 19 August 2013 - 12:53 PM
Posted 19 August 2013 - 01:43 PM
There is the native task drive. There are functions like turn left, turn right etc. This can be good.
Posted 19 August 2013 - 02:17 PM
When you're with your bodyguard, you can "override" the F key so when you press it you make the player sit in the passenger seat (of the bodyguard' car or yours) : TaskEnterCarAsPassenger.
The same way your bodyguard sit in the driver seat : TaskEnterCarAsDriver.
This way, things look real to the player. When they are both in the car (IsCharInAnyCar), you teleport the player to the driver seat (WarpCharIntoCar) and the bodyguard to the passenger seat (WarpCharIntoCarAsPassenger). You swap the player's skin and the bodyguard's skin and you're done. You can drive the car...
When you want to get out, you "override" the F key and does the same things in reverse
But maybe a third seat is required during the warp step...
Posted 19 August 2013 - 03:13 PM
I'm going to try to script this. Btw, how can I check if there's a bodyguard with me? Is there a native function for that?
Posted 19 August 2013 - 03:20 PM
- maybe a native function already exist
- if there isn't a native function go to #no
Groups & relationship for peds should help you a lot
Posted 19 August 2013 - 10:37 PM
1. Spawn a car.
2. Set your destination waypoint on the map.
3. Spawn a driver from the Bodyguards menu. Check drive options, typically Drive style 1, about 18MPH at the most for casual driving.
4. Go to Car Options, Second Menu, Select Toggle Through Passenger Seats (until you find the one you like).
While it's not driving directly, it's the next best thing. Setting Drive Style 2 makes drivers that are more agressive in traffic. You can select the type of driver by using the first menu under Bodyguard Menu, which model f_y_bronx for example.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users