Adding velocity to cargo to see if it will smooth out towing in MP (#20)

This commit is contained in:
sethduda 2016-04-08 18:57:50 -04:00
parent 38c87b3222
commit 5c731dd626

View File

@ -231,6 +231,8 @@ SA_Simulate_Towing = {
_vehicle setVelocity ((vectorNormalized (velocity _vehicle)) vectorMultiply (_massAdjustedMaxSpeed/3.6));
};
_cargo setVelocity ((vectorDir _cargo) vectorMultiply (vectorMagnitude (velocity _vehicle)));
} else {
if(_lastMovedCargoPosition distance _cargoPosition > 2) then {