NSVehicle: Remove any velocity from the driver when they're attached to a vehicle.

This commit is contained in:
Marco Cawthorne 2022-11-01 20:16:25 -07:00
parent 003bc5d88a
commit e9f735adc5
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 0 deletions

View File

@ -419,6 +419,9 @@ NSVehicle::PlayerAlign(void)
vecPlayerPos += v_right * m_vecPlayerPos[1];
vecPlayerPos += v_up * m_vecPlayerPos[2];
setorigin(m_eDriver, vecPlayerPos);
/* remove any player velocity to prevent fall damage or other unnicecities */
m_eDriver.velocity = [0,0,0];
}
void