mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Block bypassing unconscious wake up animation with bandage
Vanilla commit:
698eacba79
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user