mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixes random teleport when dragging/carrying inside of buildings.
This commit is contained in:
parent
3a2fd9dc08
commit
4802ffeebf
@ -41,7 +41,7 @@ if (_target isKindOf "CAManBase") then {
|
||||
|
||||
// move a bit closer and adjust direction when trying to pick up a person
|
||||
_target setDir (getDir _unit + 180);
|
||||
_target setPos (getPos _unit vectorAdd vectorDir _unit);
|
||||
_target setPosASL (getPosASL _unit vectorAdd (vectorDir _unit));
|
||||
|
||||
[_unit, "AcinPknlMstpSnonWnonDnon_AcinPercMrunSnonWnonDnon", 2, true] call EFUNC(common,doAnimation);
|
||||
[_target, "AinjPfalMstpSnonWrflDnon_carried_Up", 2, true] call EFUNC(common,doAnimation);
|
||||
|
@ -43,7 +43,7 @@ _unit selectWeapon primaryWeapon _unit;
|
||||
// move a bit closer and adjust direction when trying to pick up a person
|
||||
if (_target isKindOf "CAManBase") then {
|
||||
_target setDir (getDir _unit + 180);
|
||||
_target setPos (getPos _unit vectorAdd (vectorDir _unit vectorMultiply 1.5));
|
||||
_target setPosASL (getPosASL _unit vectorAdd (vectorDir _unit vectorMultiply 1.5));
|
||||
|
||||
[_target, "AinjPpneMrunSnonWnonDb_grab", 2, true] call EFUNC(common,doAnimation);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user