mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
e47212ea9c
commit
7fe932803b
@ -90,6 +90,7 @@ Head <brobergsebastian@gmail.com>
|
||||
Hybrid V
|
||||
Karneck <dschultz26@hotmail.com>
|
||||
Kavinsky <nmunozfernandez@gmail.com>
|
||||
Keithen <Keithen.Neu@gmail.com>
|
||||
Kllrt <kllrtik@gmail.com>
|
||||
legman <juicemelon@msn.com>
|
||||
Legolasindar "Viper" <legolasindar@gmail.com>
|
||||
|
@ -18,4 +18,10 @@ class ACE_Settings {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
};
|
||||
class GVAR(requireSurrenderAi) {
|
||||
displayName = CSTRING(ModuleSettings_requireSurrenderAi_name);
|
||||
description = CSTRING(ModuleSettings_requireSurrenderAi_description);
|
||||
typeName = "BOOL";
|
||||
value = 0;
|
||||
};
|
||||
};
|
||||
|
@ -222,6 +222,12 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
};
|
||||
class requireSurrenderAi {
|
||||
displayName = CSTRING(ModuleSettings_requireSurrenderAi_name);
|
||||
description = CSTRING(ModuleSettings_requireSurrenderAi_description);
|
||||
typeName = "BOOL";
|
||||
defaultValue = 0;
|
||||
};
|
||||
};
|
||||
class ModuleDescription: ModuleDescription {
|
||||
description = CSTRING(ModuleSettings_Description);
|
||||
|
@ -25,7 +25,7 @@ params ["_unit", "_target"];
|
||||
{!(_target getVariable [QGVAR(isHandcuffed), false])} &&
|
||||
{
|
||||
(_target getVariable ["ACE_isUnconscious", false]) || //isUnconscious
|
||||
{!([_target] call EFUNC(common,isPlayer))} || //is an AI (not a player)
|
||||
{!GVAR(requireSurrenderAi) && {!([_target] call EFUNC(common,isPlayer))}} || //is an AI (not a player) and doesn't require surrendering
|
||||
{GVAR(requireSurrender) == 0} || //or don't require surrendering
|
||||
{_target getVariable [QGVAR(isSurrendering), false]} || //or is surrendering
|
||||
{(GVAR(requireSurrender) == 2) && {(currentWeapon _target) == ""}} //or "SurrenderOrNoWeapon" and no weapon
|
||||
|
@ -21,3 +21,4 @@ params ["_logic"];
|
||||
[_logic, QGVAR(allowHandcuffOwnSide), "allowHandcuffOwnSide"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(allowSurrender), "allowSurrender"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(requireSurrender), "requireSurrender"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(requireSurrenderAi), "requireSurrenderAi"] call EFUNC(common,readSettingFromModule);
|
||||
|
@ -427,5 +427,13 @@
|
||||
<Chinese>投降或無武器狀態</Chinese>
|
||||
<Chinesesimp>投降或无武器状态</Chinesesimp>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Captives_ModuleSettings_requireSurrenderAi_name">
|
||||
<English>Require AI surrendering</English>
|
||||
<German>Benötigt AI Kapitulation</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Captives_ModuleSettings_requireSurrenderAi_description">
|
||||
<English>Require AI to surrender before they can be arrested</English>
|
||||
<German>AI muss sich erst ergeben, bevor sie gefangen genommen werden kann</German>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user