mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tap on either shoulder. "Tap" animation
This commit is contained in:
parent
bc3a226c64
commit
dd92c5e845
@ -146,12 +146,23 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_TapShoulder {
|
||||
class ACE_TapShoulderRight {
|
||||
displayName = "$STR_ACE_Interaction_TapShoulder";
|
||||
selection = "rightshoulder";
|
||||
distance = 4;
|
||||
distance = 2.0;
|
||||
condition = QUOTE([ARR_2(_player, _target)] call DFUNC(canTapShoulder));
|
||||
statement = QUOTE([ARR_2(_player, _target)] call DFUNC(tapShoulder));
|
||||
statement = QUOTE([ARR_3(_player, _target, 0)] call DFUNC(tapShoulder));
|
||||
showDisabled = 0;
|
||||
priority = 2.8;
|
||||
hotkey = "Q";
|
||||
enableInside = 1;
|
||||
};
|
||||
class ACE_TapShoulderLeft {
|
||||
displayName = "$STR_ACE_Interaction_TapShoulder";
|
||||
selection = "leftshoulder";
|
||||
distance = 2.0;
|
||||
condition = QUOTE([ARR_2(_player, _target)] call DFUNC(canTapShoulder));
|
||||
statement = QUOTE([ARR_3(_player, _target, 1)] call DFUNC(tapShoulder));
|
||||
showDisabled = 0;
|
||||
priority = 2.8;
|
||||
hotkey = "Q";
|
||||
|
@ -1,21 +1,22 @@
|
||||
// by commy2
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_message"];
|
||||
|
||||
_tapper = _this select 0;
|
||||
_target = _this select 1;
|
||||
EXPLODE_3_PVT(_this,_tapper,_target,_shoulderNum);
|
||||
|
||||
if (_target != ACE_player) exitWith {
|
||||
addCamShake [4, 0.5, 5];
|
||||
if !(local _target) then {
|
||||
[[_tapper, _target], QUOTE(DFUNC(tapShoulder)), _target] call EFUNC(common,execRemoteFnc);
|
||||
};
|
||||
addCamShake [4, 0.5, 5];
|
||||
ACE_player playActionNow 'gestureAdvance';
|
||||
if !(local _target) then {
|
||||
[[_tapper, _target, _shoulderNum], QUOTE(DFUNC(tapShoulder)), _target] call EFUNC(common,execRemoteFnc);
|
||||
};
|
||||
};
|
||||
|
||||
addCamShake [4, 0.5, 5];
|
||||
|
||||
//_message = format ["%1 tapped you on your shoulder.", [_unit] call EFUNC(common,getName)];
|
||||
_message = localize "STR_ACE_Interaction_YouWereTapped";
|
||||
if (_shoulderNum == 0) then {
|
||||
_message = localize "STR_ACE_Interaction_YouWereTappedRight";
|
||||
} else {
|
||||
_message = localize "STR_ACE_Interaction_YouWereTappedLeft";
|
||||
};
|
||||
|
||||
[_message] call EFUNC(common,displayTextStructured);
|
||||
|
@ -341,17 +341,29 @@
|
||||
<Portuguese>Tocar ombro</Portuguese>
|
||||
<Italian>Dai un colpetto</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Interaction_YouWereTapped">
|
||||
<English>You were tapped on the shoulder.</English>
|
||||
<German>Dir wurde auf die Schulter geklopft</German>
|
||||
<Spanish>Te tocaron el hombro.</Spanish>
|
||||
<French>On te tape sur l'épaule.</French>
|
||||
<Polish>Zostałeś klepnięty po ramieniu</Polish>
|
||||
<Hungarian>Vállonveregettek</Hungarian>
|
||||
<Czech>Někdo tě poklepal na rameno.</Czech>
|
||||
<Russian>Вас похлопали по плечу</Russian>
|
||||
<Portuguese>Você foi tocado no ombro.</Portuguese>
|
||||
<Italian>Ti è stato dato un colpetto sulla spalla</Italian>
|
||||
<Key ID="STR_ACE_Interaction_YouWereTappedRight">
|
||||
<English>You were tapped on the RIGHT shoulder ></English>
|
||||
<Spanish>Te tocaron el hombro DERECHO ></Spanish>
|
||||
<German>Dir wurde auf die Schulter geklopft ></German>
|
||||
<French>On te tape sur l'épaule ></French>
|
||||
<Polish>Zostałeś klepnięty po ramieniu ></Polish>
|
||||
<Hungarian>Vállonveregettek ></Hungarian>
|
||||
<Czech>Někdo tě poklepal na rameno ></Czech>
|
||||
<Russian>Вас похлопали по плечу ></Russian>
|
||||
<Portuguese>Você foi tocado no ombro ></Portuguese>
|
||||
<Italian>Ti è stato dato un colpetto sulla spalla ></Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Interaction_YouWereTappedLeft">
|
||||
<English>< You were tapped on the LEFT shoulder.</English>
|
||||
<Spanish>< Te tocaron el hombro IZQUIERDO.</Spanish>
|
||||
<German>< Dir wurde auf die Schulter geklopft</German>
|
||||
<French>< On te tape sur l'épaule.</French>
|
||||
<Polish>< Zostałeś klepnięty po ramieniu</Polish>
|
||||
<Hungarian>< Vállonveregettek</Hungarian>
|
||||
<Czech>< Někdo tě poklepal na rameno.</Czech>
|
||||
<Russian>< Вас похлопали по плечу</Russian>
|
||||
<Portuguese>< Você foi tocado no ombro.</Portuguese>
|
||||
<Italian>< Ti è stato dato un colpetto sulla spalla</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Interaction_CancelSelection">
|
||||
<English>Cancel</English>
|
||||
|
Loading…
Reference in New Issue
Block a user