mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added setting to disable variable sync (recommended on)
This commit is contained in:
parent
7ffd690a71
commit
147bb92541
@ -16,13 +16,12 @@ class ACE_Settings {
|
|||||||
};
|
};
|
||||||
class GVAR(enableOverdosing) {
|
class GVAR(enableOverdosing) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = true;
|
value = 1;
|
||||||
};
|
};
|
||||||
class GVAR(bleedingCoefficient) {
|
class GVAR(bleedingCoefficient) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 1;
|
value = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
class GVAR(enableAirway) {
|
class GVAR(enableAirway) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = false;
|
value = false;
|
||||||
@ -37,11 +36,11 @@ class ACE_Settings {
|
|||||||
};
|
};
|
||||||
class GVAR(enableVehicleCrashes) {
|
class GVAR(enableVehicleCrashes) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = true;
|
value = 1;
|
||||||
};
|
};
|
||||||
class GVAR(enableScreams) {
|
class GVAR(enableScreams) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = true;
|
value = 1;
|
||||||
};
|
};
|
||||||
class GVAR(playerDamageThreshold) {
|
class GVAR(playerDamageThreshold) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
@ -58,7 +57,7 @@ class ACE_Settings {
|
|||||||
};
|
};
|
||||||
class GVAR(preventInstaDeath) {
|
class GVAR(preventInstaDeath) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = false;
|
value = 0;
|
||||||
};
|
};
|
||||||
class GVAR(maxReviveTime) {
|
class GVAR(maxReviveTime) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
@ -70,7 +69,7 @@ class ACE_Settings {
|
|||||||
};
|
};
|
||||||
class GVAR(allowDeadBodyMovement) {
|
class GVAR(allowDeadBodyMovement) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = false;
|
value = 0;
|
||||||
};
|
};
|
||||||
class GVAR(allowLitterCreation) {
|
class GVAR(allowLitterCreation) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
@ -83,17 +82,25 @@ class ACE_Settings {
|
|||||||
class GVAR(medicSetting_PAK) {
|
class GVAR(medicSetting_PAK) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 1;
|
value = 1;
|
||||||
|
values[] = {"Anyone", "Medics only", "Doctors only"};
|
||||||
};
|
};
|
||||||
class GVAR(medicSetting_SurgicalKit) {
|
class GVAR(medicSetting_SurgicalKit) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 1;
|
value = 1;
|
||||||
|
values[] = {"Anyone", "Medics only", "Doctors only"};
|
||||||
};
|
};
|
||||||
class GVAR(consumeItem_PAK) {
|
class GVAR(consumeItem_PAK) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 0;
|
value = 0;
|
||||||
|
values[] = {"No", "Yes"};
|
||||||
};
|
};
|
||||||
class GVAR(consumeItem_SurgicalKit) {
|
class GVAR(consumeItem_SurgicalKit) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 0;
|
value = 0;
|
||||||
|
values[] = {"No", "Yes"};
|
||||||
|
};
|
||||||
|
class GVAR(keepLocalSettingsSynced) {
|
||||||
|
typeName = "BOOL";
|
||||||
|
value = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -128,6 +128,12 @@ class CfgVehicles {
|
|||||||
typeName = "NUMBER";
|
typeName = "NUMBER";
|
||||||
defaultValue = 1;
|
defaultValue = 1;
|
||||||
};
|
};
|
||||||
|
class keepLocalSettingsSynced {
|
||||||
|
displayName = "Sync status";
|
||||||
|
description = "Keep unit status synced. Recommended on.";
|
||||||
|
typeName = "BOOL";
|
||||||
|
defaultValue = 1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
description = "Provides a medical system for both players and AI.";
|
description = "Provides a medical system for both players and AI.";
|
||||||
|
@ -22,7 +22,7 @@ _unit setVariable [QGVAR(lastMomentVitalsHandled), time];
|
|||||||
if (_interval == 0) exitWith {};
|
if (_interval == 0) exitWith {};
|
||||||
|
|
||||||
_lastTimeValuesSynced = _unit getvariable [QGVAR(lastMomentValuesSynced), 0];
|
_lastTimeValuesSynced = _unit getvariable [QGVAR(lastMomentValuesSynced), 0];
|
||||||
_syncValues = time - _lastTimeValuesSynced >= (10 + floor(random(10)));
|
_syncValues = (time - _lastTimeValuesSynced >= (10 + floor(random(10))) && GVAR(keepLocalSettingsSynced));
|
||||||
if (_syncValues) then {
|
if (_syncValues) then {
|
||||||
_unit setvariable [QGVAR(lastMomentValuesSynced), time];
|
_unit setvariable [QGVAR(lastMomentValuesSynced), time];
|
||||||
};
|
};
|
||||||
|
@ -34,3 +34,4 @@ if !(_activated) exitWith {};
|
|||||||
[_logic, QGVAR(enableUnsconsiousnessAI), "enableUnsconsiousnessAI"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(enableUnsconsiousnessAI), "enableUnsconsiousnessAI"] call EFUNC(common,readSettingFromModule);
|
||||||
[_logic, QGVAR(preventInstaDeath), "preventInstaDeath"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(preventInstaDeath), "preventInstaDeath"] call EFUNC(common,readSettingFromModule);
|
||||||
[_logic, QGVAR(bleedingCoefficient), "bleedingCoefficient"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(bleedingCoefficient), "bleedingCoefficient"] call EFUNC(common,readSettingFromModule);
|
||||||
|
[_logic, QGVAR(keepLocalSettingsSynced), "keepLocalSettingsSynced"] call EFUNC(common,readSettingFromModule);
|
||||||
|
Loading…
Reference in New Issue
Block a user