mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Don't run when mounted
This commit is contained in:
parent
2e1d734420
commit
bb616887dc
@ -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"];
|
||||
|
@ -21,7 +21,7 @@ TRACE_1("params",_object);
|
||||
|
||||
private ["_typeOf", "_returnValue"];
|
||||
|
||||
_typeOf = toLower (typeOf _object);
|
||||
_typeOf = typeOf _object;
|
||||
_returnValue = false;
|
||||
|
||||
if (_typeOf != "") then {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user