From 5fb3a0be15b78f5489f1f74c925f1e7fc6a7e4e2 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sat, 9 Nov 2013 08:13:52 -0600 Subject: [PATCH] cleanup --- SQF/dayz_code/compile/building_spawnLoot.sqf | 2 +- SQF/dayz_code/medical/carry.sqf | 1 - SQF/dayz_code/medical/carry_old.sqf | 1 - SQF/dayz_code/medical/drag.sqf | 2 -- SQF/dayz_code/medical/drop_body.sqf | 4 +--- SQF/dayz_code/medical/load/load_act.sqf | 4 +--- SQF/dayz_code/medical/load/load_wounded.sqf | 4 +--- SQF/dayz_code/medical/load/unLoad_act.sqf | 4 +--- SQF/dayz_code/medical/load_wounded.sqf | 1 - 9 files changed, 5 insertions(+), 18 deletions(-) diff --git a/SQF/dayz_code/compile/building_spawnLoot.sqf b/SQF/dayz_code/compile/building_spawnLoot.sqf index b3bd5422a..b8d56f5af 100644 --- a/SQF/dayz_code/compile/building_spawnLoot.sqf +++ b/SQF/dayz_code/compile/building_spawnLoot.sqf @@ -16,7 +16,7 @@ _lootChance = getNumber (_config >> "lootChance"); if ((random 1) < _lootChance) then { _iPos = _obj modelToWorld _x; _nearBy = nearestObjects [_iPos, ["ReammoBox","WeaponHolder","WeaponHolderBase"], 1]; - if (count _nearBy == 0) then { + if (count _nearBy == 0) then { _index = dayz_CBLBase find _type; //diag_log format["Found %2 at index: %1", _index,_type]; _weights = dayz_CBLChances select _index; diff --git a/SQF/dayz_code/medical/carry.sqf b/SQF/dayz_code/medical/carry.sqf index 4c591ed49..0265de751 100644 --- a/SQF/dayz_code/medical/carry.sqf +++ b/SQF/dayz_code/medical/carry.sqf @@ -55,5 +55,4 @@ while {r_carry_sqf} do }; sleep 0.1; }; -if (true) exitWith {}; diff --git a/SQF/dayz_code/medical/carry_old.sqf b/SQF/dayz_code/medical/carry_old.sqf index a56b42301..4c5ad10ef 100644 --- a/SQF/dayz_code/medical/carry_old.sqf +++ b/SQF/dayz_code/medical/carry_old.sqf @@ -56,5 +56,4 @@ while {r_carry_sqf} do sleep 0.1; }; _dragee playActionNow "Die"; -if (true) exitWith {}; diff --git a/SQF/dayz_code/medical/drag.sqf b/SQF/dayz_code/medical/drag.sqf index 3333e72c4..81c3d19df 100644 --- a/SQF/dayz_code/medical/drag.sqf +++ b/SQF/dayz_code/medical/drag.sqf @@ -42,5 +42,3 @@ call fnc_usec_medic_removeActions; NORRN_dropAction = player addAction ["Drop body", "\z\addons\dayz_code\medical\drop_body.sqf",_dragee, 0, false, true]; //NORRN_carryAction = player addAction ["Carry body", "\z\addons\dayz_code\medical\carry.sqf",_dragee, 0, false, true]; sleep 1; - -if (true) exitWith {}; diff --git a/SQF/dayz_code/medical/drop_body.sqf b/SQF/dayz_code/medical/drop_body.sqf index 714b25b9d..1d60abaec 100644 --- a/SQF/dayz_code/medical/drop_body.sqf +++ b/SQF/dayz_code/medical/drop_body.sqf @@ -29,6 +29,4 @@ _dragee setVariable ["NORRN_unit_dragged", false, true]; //lie on back _dragee playMoveNow "ainjppnemstpsnonwrfldnon"; norrnRalie = _dragee; -publicVariable "norrnRalie"; - -if (true) exitWith {}; \ No newline at end of file +publicVariable "norrnRalie"; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load/load_act.sqf b/SQF/dayz_code/medical/load/load_act.sqf index 4651f8679..0e1f2a07a 100644 --- a/SQF/dayz_code/medical/load/load_act.sqf +++ b/SQF/dayz_code/medical/load/load_act.sqf @@ -28,6 +28,4 @@ if ((_vcl emptyPositions "cargo") > 0) then hint "No space left in vehicle"; }; -NORRN_load_wounded_action = true; - -if (true) exitWith {}; \ No newline at end of file +NORRN_load_wounded_action = true; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load/load_wounded.sqf b/SQF/dayz_code/medical/load/load_wounded.sqf index fe20633b5..237d0f5a6 100644 --- a/SQF/dayz_code/medical/load/load_wounded.sqf +++ b/SQF/dayz_code/medical/load/load_wounded.sqf @@ -46,6 +46,4 @@ if (local _wounded) then _wounded playMove "BasicDriver"; }; }; -sleep 0.01; -if (true) exitWith {}; - +sleep 0.01; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load/unLoad_act.sqf b/SQF/dayz_code/medical/load/unLoad_act.sqf index da5549b0f..8732aad46 100644 --- a/SQF/dayz_code/medical/load/unLoad_act.sqf +++ b/SQF/dayz_code/medical/load/unLoad_act.sqf @@ -32,6 +32,4 @@ for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do publicVariable "norrnRalie"; }; sleep 0.1; -}; - -if (true) exitWith {}; \ No newline at end of file +}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load_wounded.sqf b/SQF/dayz_code/medical/load_wounded.sqf index f39156a92..965ee339b 100644 --- a/SQF/dayz_code/medical/load_wounded.sqf +++ b/SQF/dayz_code/medical/load_wounded.sqf @@ -49,5 +49,4 @@ if (local _wounded) then }; }; sleep 0.01; -if (true) exitWith {};