in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.15k stars 353 forks source link

Implement vehicle hijacking #50

Open in0finite opened 4 years ago

in0finite commented 4 years ago

vehicle hijacking = throwing out other ped and entering vehicle at his seat

Hijacked ped can use VehicleExitingState, but will play a different anim.

Entering ped needs 2 anims, 1 for throwing out other ped and 1 for entering the vehicle.

This requires that 2 peds associate to the same seat, which is not possible at the moment.

Maybe different vehicles will need a different throwing out anim (eg. trucks) ?