mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Interaction - Add setting for blocking interaction with enemy crew (#10237)
This commit is contained in:
parent
dcf49d77eb
commit
7cdafe1d10
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
params ["_player", "_vehicle"];
|
params ["_player", "_vehicle"];
|
||||||
|
|
||||||
|
if (GVAR(interactWithEnemyCrew) == 2) exitWith { true };
|
||||||
|
if ((GVAR(interactWithEnemyCrew) == 1) && {_vehicle isKindOf "StaticWeapon"}) exitWith { true };
|
||||||
|
|
||||||
private _crew = crew _vehicle;
|
private _crew = crew _vehicle;
|
||||||
|
|
||||||
// If vehicle is empty, quit
|
// If vehicle is empty, quit
|
||||||
|
@ -55,3 +55,11 @@
|
|||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
] call CBA_fnc_addSetting;
|
] call CBA_fnc_addSetting;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(interactWithEnemyCrew), "LIST",
|
||||||
|
[LSTRING(interactWithEnemyCrew_DisplayName), LSTRING(interactWithEnemyCrew_Description)],
|
||||||
|
format ["ACE %1", LLSTRING(DisplayName)],
|
||||||
|
[[0, 1, 2], [ELSTRING(common,Never), LSTRING(interactWithEnemyCrew_allowCSW), ELSTRING(common,Always)], 0],
|
||||||
|
true
|
||||||
|
] call CBA_fnc_addSetting;
|
||||||
|
@ -1332,5 +1332,14 @@
|
|||||||
<Russian>Взаимодействие с анимациями</Russian>
|
<Russian>Взаимодействие с анимациями</Russian>
|
||||||
<French>Interaction avec les animations</French>
|
<French>Interaction avec les animations</French>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interaction_interactWithEnemyCrew_DisplayName">
|
||||||
|
<English>Interact With Enemy Crew</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interaction_interactWithEnemyCrew_Description">
|
||||||
|
<English>Limit some interactions on vehicles crewed by enemy factions.</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interaction_interactWithEnemyCrew_allowCSW">
|
||||||
|
<English>Allow for Static Weapons</English>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user