From c247af36b2d2a920daf08443c19216df15e52ed3 Mon Sep 17 00:00:00 2001 From: ColinM9991 <57466042+ColinM9991@users.noreply.github.com> Date: Wed, 3 Aug 2022 19:20:40 +0100 Subject: [PATCH 1/2] Fix the housework_enter state Wrap the if statement to allow the random function to evaluate the day/night times. --- .../functions/fnc_sm_business_state_housework_enter.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/residents/functions/fnc_sm_business_state_housework_enter.sqf b/addons/residents/functions/fnc_sm_business_state_housework_enter.sqf index 68e3758..493f21f 100644 --- a/addons/residents/functions/fnc_sm_business_state_housework_enter.sqf +++ b/addons/residents/functions/fnc_sm_business_state_housework_enter.sqf @@ -5,7 +5,7 @@ private _isSleepingTime = _this call EFUNC(activities,isSleepingTime); private _house = _this getVariable ["grad_civs_home", objNull]; -_this setVariable [QGVAR(housework_time), random if (_isSleepingTime) then {GVAR(houseworkTimesNight)} else {GVAR(houseworkTimesDay)}]; +_this setVariable [QGVAR(housework_time), random (if (_isSleepingTime) then [{GVAR(houseworkTimesNight)},{GVAR(houseworkTimesDay)}])]; _this call EFUNC(activities,forceEmotionSpeed); if (isNull _house) exitWith { From ea7c9c446c2779dfa5526a202faca441142005ed Mon Sep 17 00:00:00 2001 From: ColinM9991 <57466042+ColinM9991@users.noreply.github.com> Date: Wed, 3 Aug 2022 19:32:37 +0100 Subject: [PATCH 2/2] Set CBA settings on a server level to broadcast to headless clients. --- addons/cars/functions/fnc_setVehicles.sqf | 2 +- addons/lifecycle/functions/fnc_setCivilians.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/cars/functions/fnc_setVehicles.sqf b/addons/cars/functions/fnc_setVehicles.sqf index 0cc3de0..3fe2aa7 100644 --- a/addons/cars/functions/fnc_setVehicles.sqf +++ b/addons/cars/functions/fnc_setVehicles.sqf @@ -6,4 +6,4 @@ params [ assert(_value isEqualTypeAll ""); -[QGVAR(vehicles), str _value, 1, "mission"] call CBA_settings_fnc_set; +[QGVAR(vehicles), str _value, 1, "server", true] call CBA_settings_fnc_set; diff --git a/addons/lifecycle/functions/fnc_setCivilians.sqf b/addons/lifecycle/functions/fnc_setCivilians.sqf index ae5b5e0..90b8949 100644 --- a/addons/lifecycle/functions/fnc_setCivilians.sqf +++ b/addons/lifecycle/functions/fnc_setCivilians.sqf @@ -6,4 +6,4 @@ params [ assert(_value isEqualTypeAll ""); -[QGVAR(civClasses), str _value, 1, "mission"] call CBA_settings_fnc_set; +[QGVAR(civClasses), str _value, 1, "server", true] call CBA_settings_fnc_set;