Fixed handcuffing not breaking sitting animation

This commit is contained in:
jonpas 2015-06-22 15:25:10 +02:00
parent 083d34b62b
commit 922e88d31e
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,8 @@
#include "script_component.hpp"
// Exit on Headless
if !(hasInterface) exitWith {};
// Add interaction menu exception
["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition);

View File

@ -18,7 +18,5 @@
PARAMS_1(_player);
if (_player getVariable [QGVAR(isSitting), false]) then {
_player setVariable [QGVAR(isSitting), nil];
GVAR(seat) setVariable [QGVAR(seatOccupied), nil, true];
GVAR(seat) = nil;
[_player] call FUNC(stand);
};