diff --git a/addons/chemical/functions/fnc_handleGasMaskDur.sqf b/addons/chemical/functions/fnc_handleGasMaskDur.sqf index 25e65052c..1b0d62ca6 100644 --- a/addons/chemical/functions/fnc_handleGasMaskDur.sqf +++ b/addons/chemical/functions/fnc_handleGasMaskDur.sqf @@ -27,8 +27,8 @@ private _currentHealth = _unit getVariable [QGVAR(gasmask_durability), 10]; // D // Scale the current health (0-10) to the actual time left based on maxTime private _timeLeft = (_currentHealth / 10) * _maxTime; // Convert 0-10 health scale to time left -// Reduce the time left by 0.25 seconds (each tick reduces by 0.25 seconds) -_timeLeft = _timeLeft - 0.25; +// Reduce the time left by 1 seconds (each tick reduces by 1 seconds) +_timeLeft = _timeLeft - 1; // Prevent negative durability _timeLeft = _timeLeft max 0; diff --git a/addons/chemical/functions/fnc_poison.sqf b/addons/chemical/functions/fnc_poison.sqf index fa0c5583e..2c6c61003 100644 --- a/addons/chemical/functions/fnc_poison.sqf +++ b/addons/chemical/functions/fnc_poison.sqf @@ -43,7 +43,7 @@ private _infectionTime = missionNamespace getVariable [QGVAR(infectionTime), 60] //Get current time left for player private _currentInfection = _unit getVariable [QGVAR(infectionTime), 60]; -private _timeLeft = _currentInfection - 0.25; +private _timeLeft = _currentInfection - 1; _timeLeft = _timeLeft max 0; private _newTime = _timeLeft; diff --git a/addons/chemical/script_component.hpp b/addons/chemical/script_component.hpp index c36096d72..aee23a6cd 100644 --- a/addons/chemical/script_component.hpp +++ b/addons/chemical/script_component.hpp @@ -25,4 +25,4 @@ #define X_PART(num) (W_PART(num) + (safeZoneX + (safeZoneW - SIZEX) / 2)) #define Y_PART(num) (H_PART(num) + (safeZoneY + (safeZoneH - SIZEY) / 2)) -#define GAS_MANAGER_PFH_DELAY 0.25 +#define GAS_MANAGER_PFH_DELAY 1 diff --git a/addons/vitals/functions/fnc_handlePoisoning.sqf b/addons/vitals/functions/fnc_handlePoisoning.sqf index 07a1d18c1..4efe64c97 100644 --- a/addons/vitals/functions/fnc_handlePoisoning.sqf +++ b/addons/vitals/functions/fnc_handlePoisoning.sqf @@ -24,12 +24,12 @@ private _currentCS = _unit getVariable [QEGVAR(chemical,CSGas), 0]; _unit setVariable [QEGVAR(chemical,CSGas), (_currentCS - (_poisonAdjustment * _deltaT)) max 0, _syncValue]; -if (_unit getVariable [QEGVAR(chemical,airPoisoning), false]) then { +if !(_unit getVariable [QEGVAR(chemical,airPoisoning), false]) then { private _currentInfection = _unit getVariable [QEGVAR(chemical,infectionTime), missionNamespace getVariable [QEGVAR(chemical,infectionTime), 60]]; private _updateTime = _currentInfection + (1 * _deltaT); _updateTime = _updateTime min (missionNamespace getVariable [QEGVAR(chemical,infectionTime), 60]); _unit setVariable [QEGVAR(chemical,infectionTime), _updateTime, true]; } else { - _unit setVariable [QEGVAR(chemical,infectionTime), 0, true]; + _unit setVariable [QEGVAR(chemical,infectionTime), 60, true]; }; \ No newline at end of file