Skip to content

Commit

Permalink
Interaction - Add setting for blocking interaction with enemy crew (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Aug 23, 2024
1 parent dcf49d7 commit 7cdafe1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions addons/interaction/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
9 changes: 9 additions & 0 deletions addons/interaction/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 7cdafe1

Please sign in to comment.