Skip to content

Commit

Permalink
Update fnc_handlePoisoning.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinskihenry committed Dec 16, 2024
1 parent d8f202d commit d692d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/vitals/functions/fnc_handlePoisoning.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
_unit setVariable [QEGVAR(chemical,CSGas), (_currentCS - (_poisonAdjustment * _deltaT)) max 0, _syncValue];

private _inZone = false;
private _distance = 0;

{
_y params ["_gasLogic", "_radius", "_gasLevel", "_condition", "_conditionArgs", "_isSealable"];
TRACE_2("gasVitalsPFH loop",_x,_y);

private distance = _unit distance _gasLogic;
_distance = _unit distance _gasLogic;

if (_distance < _radius) then {
_inZone = true;
Expand Down

0 comments on commit d692d44

Please sign in to comment.