Added rating settings (#5354)

* added rating settings

* moved rating to interaction

* Update fnc_canPardon.sqf

* Update stringtable.xml

* Update CfgVehicles.hpp

* Update XEH_postInit.sqf
This commit is contained in:
Christian Klemm 2017-09-07 19:38:26 +02:00 committed by jonpas
parent 22b4788891
commit 19418b824d
5 changed files with 30 additions and 1 deletions

View File

@ -13,4 +13,10 @@ class ACE_Settings {
displayName = CSTRING(PassMagazineSetting);
category = ECSTRING(interact_menu,Category_InteractionMenu);
};
class GVAR(disableNegativeRating) {
displayName = CSTRING(DisableNegativeRating_DisplayName);
description = CSTRING(DisableNegativeRating_Description);
value = 0;
typeName = "BOOL";
};
};

View File

@ -7,7 +7,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam);
category = "ACE";
displayName = CSTRING(Module_DisplayName);
function = "ACE_Interaction_fnc_moduleInteraction";
function = QFUNC(moduleInteraction);
scope = 2;
isGlobal = 1;
isSingular = 1;
@ -19,6 +19,12 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 1;
};
class DisableNegativeRating {
displayName = CSTRING(DisableNegativeRating_DisplayName);
description = CSTRING(DisableNegativeRating_Description);
typeName = "BOOL";
defaultValue = 0;
};
};
class ModuleDescription {
description = CSTRING(Module_Description);

View File

@ -108,3 +108,11 @@ GVAR(isOpeningDoor) = false;
["isNotSwimming", {!underwater (_this select 0)}] call EFUNC(common,addCanInteractWithCondition);
["isNotOnLadder", {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState (_this select 0) >> "ACE_isLadder") != 1}] call EFUNC(common,addCanInteractWithCondition);
["ace_settingsInitialized", {
if (GVAR(disableNegativeRating)) then {
player addEventHandler ["HandleRating", {
(_this select 1) max 0
}];
};
}] call CBA_fnc_addEventHandler;

View File

@ -22,5 +22,6 @@ params ["_logic", "", "_activated"];
if !(_activated) exitWith {};
[_logic, QGVAR(EnableTeamManagement), "EnableTeamManagement"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(disableNegativeRating), "DisableNegativeRating"] call EFUNC(common,readSettingFromModule);
INFO("Interaction Module Initialized.");

View File

@ -927,6 +927,14 @@
<Chinesesimp>允许玩家使用小队管理选单? 预设: 是</Chinesesimp>
<Chinese>允許玩家使用小隊管理選單? 預設: 是</Chinese>
</Key>
<Key ID="STR_ACE_Interaction_DisableNegativeRating_DisplayName">
<English>Disable negative rating</English>
<German>Negative Bewertung deaktivieren</German>
</Key>
<Key ID="STR_ACE_Interaction_DisableNegativeRating_Description">
<English>Should players receive negative rating? When enabled players are only receiving positive ratings which prevents friendly AI fire when destroying friendly equipment or killing team members.</English>
<German>Sollen Spieler negative Bewertungen erhalten dürfen? Wenn diese Option aktiviert ist, erhalten Spieler nur positive Bewerungen, was Freundbeschuss durch KI verhindert, wenn befreundete Ausrüstung zerstört oder befreundete Einheiten von Spielern des selben Teams getötet werden.</German>
</Key>
<Key ID="STR_ACE_Interaction_Module_Description">
<English>Team management allows color allocation for team members, taking team command and joining/leaving teams.</English>
<Polish>Na zarządzanie drużyną składa się: przydział kolorów dla członków drużyny, przejmowanie dowodzenia, dołączanie/opuszczanie drużyn.</Polish>