Interaction - Add setting for blocking interaction with enemy crew (#10237)

This commit is contained in:
PabstMirror 2024-08-23 05:21:51 -05:00 committed by GitHub
parent dcf49d77eb
commit 7cdafe1d10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 0 deletions

View File

@ -18,6 +18,9 @@
params ["_player", "_vehicle"];
if (GVAR(interactWithEnemyCrew) == 2) exitWith { true };
if ((GVAR(interactWithEnemyCrew) == 1) && {_vehicle isKindOf "StaticWeapon"}) exitWith { true };
private _crew = crew _vehicle;
// If vehicle is empty, quit

View File

@ -55,3 +55,11 @@
false,
true
] 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;

View File

@ -1332,5 +1332,14 @@
<Russian>Взаимодействие с анимациями</Russian>
<French>Interaction avec les animations</French>
</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>
</Project>