Block bypassing unconscious wake up animation with bandage

Vanilla commit:

698eacba79
This commit is contained in:
ebayShopper
2017-03-20 18:01:30 -04:00
parent da3b345921
commit d4eb7ac6e4
2 changed files with 8 additions and 1 deletions

View File

@@ -7,16 +7,22 @@ _parent = findDisplay 106;
if (carryClick) then {carryClick = false;};
if (_button == 1) then {
if (animationState player in ["ainjppnemstpsnonwnondnon_rolltofront","amovppnemstpsnonwnondnon_healed"]) exitWith {
//Prevent bypassing unconscious wake up animation with bandage or other right click actions
localize "str_player_actionslimit" call dayz_rollingMessages;
};
private ["_conf","_name","_compile","_height","_item"];
_group = _parent displayCtrl 6902;
_pos = ctrlPosition _group;
_item = gearSlotData _control;
_item = gearSlotData _control;
if ( //No right click action
(!DZE_SelfTransfuse && _item in ["ItemBloodbag","wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"]) or
(!dayz_groupSystem && _item == "ItemRadio")
) exitWith {};
if (mouseOverCarry) then {
_item = DayZ_onBack;
carryClick = true;