Don't run when mounted

This commit is contained in:
PabstMirror 2015-08-23 22:55:43 -05:00
parent 2e1d734420
commit bb616887dc
3 changed files with 7 additions and 3 deletions

View File

@ -17,13 +17,15 @@
params ["_interactionType"];
//Ignore self-interaction menu
if (_interactionType != 0) exitWith {};
//Ignore self-interaction menu or mounted vehicle interaction
if ((_interactionType != 0) || {(vehicle ACE_player) != ACE_player}) exitWith {};
//for performance only do stuff it they have a wirecutter item
//(if they somehow get one durring keydown they'll just have to reopen)
if (!("ACE_wirecutter" in (items ace_player))) exitWith {};
TRACE_1("Starting wire-cut action PFEH",_interactionType);
[{
private ["_fncStatement", "_attachedFence", "_fncCondition", "_helper", "_action"];
params ["_args", "_pfID"];

View File

@ -21,7 +21,7 @@ TRACE_1("params",_object);
private ["_typeOf", "_returnValue"];
_typeOf = toLower (typeOf _object);
_typeOf = typeOf _object;
_returnValue = false;
if (_typeOf != "") then {

View File

@ -1,6 +1,8 @@
#define COMPONENT logistics_wirecutter
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
#ifdef DEBUG_ENABLED_LOGISTICS_WIRECUTTER
#define DEBUG_MODE_FULL
#endif