From 14fd5c930b05390e06e551d6fa05c7f586fd8d25 Mon Sep 17 00:00:00 2001 From: ulteq Date: Sun, 14 Jun 2015 12:54:10 +0200 Subject: [PATCH] You can no longer connect to destroyed HuntIR cameras --- addons/huntir/data/model.cfg | 26 -------------------------- addons/huntir/functions/fnc_huntir.sqf | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 addons/huntir/data/model.cfg diff --git a/addons/huntir/data/model.cfg b/addons/huntir/data/model.cfg deleted file mode 100644 index de5b683706..0000000000 --- a/addons/huntir/data/model.cfg +++ /dev/null @@ -1,26 +0,0 @@ -class CfgSkeletons { - class Default { - isDiscrete = 1; - skeletonInherit = ""; - skeletonBones[] = {}; - }; - class ace_huntir_skeleton: Default { - isDiscrete = 1; - skeletonInherit = "Default"; - skeletonBones[] = { - "parachute","", - "camera","", - }; - }; -}; -class CfgModels { - class Default { - sectionsInherit = ""; - sections[] = {}; - skeletonName = ""; - }; - class huntir: Default { - skeletonName = "ace_huntir_skeleton"; - sectionsInherit = "Default"; - }; -}; diff --git a/addons/huntir/functions/fnc_huntir.sqf b/addons/huntir/functions/fnc_huntir.sqf index 585a49a6ac..f8aed93880 100644 --- a/addons/huntir/functions/fnc_huntir.sqf +++ b/addons/huntir/functions/fnc_huntir.sqf @@ -61,7 +61,7 @@ createDialog "ace_huntir_cam_dialog_off"; if (_elapsedTime > 10) then { GVAR(state) = "noGDS"; }; - if (_elapsedTime > 5 && {count _nearestHuntIRs > 0}) then { + if (_elapsedTime > 5 && {{_x getHitPointDamage "HitCamera" < 0.25} count _nearestHuntIRs > 0}) then { GVAR(state) = "connecting"; }; };