Created
March 20, 2017 20:41
-
-
Save dedmen/12d693bc5992177fe349dd214dbc955e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"callstack": [ | |
{ | |
"contentSample": "_this call TFAR_fnc_onTangentPressedHack", | |
"fileName": "", | |
"ip": 4, | |
"lastInstruction": { | |
"fileOffset": [ | |
1, | |
6, | |
58832 | |
], | |
"filename": "", | |
"name": "operator call", | |
"type": "class GameInstructionOperator" | |
}, | |
"type": "class CallStackItemSimple", | |
"variables": null | |
}, | |
{ | |
"compiled": true, | |
"contentSample": "#line 1 \"z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_onTangentPressedHack.sqf\"\n#line 1 \"z\\tfar\\addo", | |
"final": true, | |
"ip": 46, | |
"lastInstruction": { | |
"fileOffset": [ | |
28, | |
3182, | |
55 | |
], | |
"filename": "z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_ontangentpressedhack.sqf", | |
"name": "operator then", | |
"type": "class GameInstructionOperator" | |
}, | |
"type": "class CallStackItemData", | |
"variables": { | |
"_alt": { | |
"type": "bool", | |
"value": "false" | |
}, | |
"_ctrl": { | |
"type": "bool", | |
"value": "false" | |
}, | |
"_lr_keybind": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "string", | |
"value": "\"TFAR\"" | |
}, | |
{ | |
"type": "string", | |
"value": "\"LRTransmit\"" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "string", | |
"value": "\"LR Transmit\"" | |
}, | |
{ | |
"type": "string", | |
"value": "\"LR Transmit\"" | |
} | |
] | |
}, | |
{ | |
"type": "code", | |
"value": "{call TFAR_fnc_onLRTangentPressed}" | |
}, | |
{ | |
"type": "code", | |
"value": "{call TFAR_fnc_onLRTangentReleased}" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "float", | |
"value": "58" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "true" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "float", | |
"value": "0" | |
} | |
] | |
}, | |
"_modifiers": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
}, | |
"_scancode": { | |
"type": "float", | |
"value": "58" | |
}, | |
"_shift": { | |
"type": "bool", | |
"value": "false" | |
}, | |
"_sw_keybind": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "string", | |
"value": "\"TFAR\"" | |
}, | |
{ | |
"type": "string", | |
"value": "\"SWTransmit\"" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "string", | |
"value": "\"SW Transmit\"" | |
}, | |
{ | |
"type": "string", | |
"value": "\"SW Transmit\"" | |
} | |
] | |
}, | |
{ | |
"type": "code", | |
"value": "{call TFAR_fnc_onSwTangentPressed}" | |
}, | |
{ | |
"type": "code", | |
"value": "{call TFAR_fnc_onSwTangentReleased}" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "float", | |
"value": "58" | |
}, | |
{ | |
"type": "array", | |
"value": [ | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "float", | |
"value": "0" | |
} | |
] | |
}, | |
"_this": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "display", | |
"value": "Display #46" | |
}, | |
{ | |
"type": "float", | |
"value": "58" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"compiled": true, | |
"contentSample": "\nprivate _swMods = ((_sw_keybind) select 5) select 1;\nprivate _lrMods = ((_lr_keybind) select 5) sel", | |
"final": true, | |
"ip": 42, | |
"lastInstruction": { | |
"fileOffset": [ | |
36, | |
3487, | |
9 | |
], | |
"filename": "z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_ontangentpressedhack.sqf", | |
"name": "operator ==", | |
"type": "class GameInstructionOperator" | |
}, | |
"type": "class CallStackItemData", | |
"variables": { | |
"_lrmods": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "true" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
}, | |
"_scancode_lr": { | |
"type": "float", | |
"value": "58" | |
}, | |
"_scancode_sw": { | |
"type": "float", | |
"value": "58" | |
}, | |
"_swmods": { | |
"type": "array", | |
"value": [ | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
}, | |
{ | |
"type": "bool", | |
"value": "false" | |
} | |
] | |
} | |
} | |
} | |
], | |
"command": 1, | |
"error": { | |
"content": "#line 1 \"z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_onTangentPressedHack.sqf\"\n#line 1 \"z\\tfar\\addons\\core\\functions\\events\\keys\\script_component.hpp\"\n#line 1 \"z\\tfar\\addons\\core\\script_component.hpp\"\n\n\n#line 1 \"z\\tfar\\addons\\core\\script_mod.hpp\"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#line 3 \"z\\tfar\\addons\\core\\script_component.hpp\"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#line 1 \"z\\tfar\\addons\\core\\script_macros.hpp\"\n#line 1 \"x\\cba\\addons\\main\\script_macros_common.hpp\"\n\n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ar\\addons\\core\\script_component.hpp\"\n\n#line 1 \"z\\tfar\\addons\\core\\functions\\events\\keys\\script_component.hpp\"\n\n#line 1 \"z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_onTangentPressedHack.sqf\"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nparams [\"\",\"_scancode\",\"_shift\",\"_ctrl\",\"_alt\"];\n\nif !(call TFAR_fnc_isAbleToUseRadio) exitWith {false};\n\nprivate _sw_keybind = [\"TFAR\", \"SWTransmit\"] call cba_fnc_getKeybind;\nprivate _lr_keybind = [\"TFAR\", \"LRTransmit\"] call cba_fnc_getKeybind;\nprivate _modifiers = [_shift,_ctrl,_alt];\nif (!(isNil \"_sw_keybind\") and !(isNil \"_lr_keybind\")) then {\nprivate _swMods = ((_sw_keybind) select 5) select 1;\nprivate _lrMods = ((_lr_keybind) select 5) select 1;\nprivate _scancode_lr = ((_lr_keybind) select 5) select 0;\nprivate _scancode_sw = ((_sw_keybind) select 5) select 0;\n\nif !(_scanCode in [_scancode_sw,_scancode_lr]) exitWith {false};\n\nif (true == false) exitWith {};\nprivate _lrMatch = false;\nif (_scancode isEqualTo _scancode_lr) then {\nprivate _lrModsMatch = 0;\n{\nif (!_x || _modifiers select _forEachIndex) then {_lrModsMatch = _lrModsMatch + 1;}\n} forEach _lrMods;\n_lrMatch = _lrModsMatch == 3; \n};\nprivate _swMatch = false;\nif (_scancode isEqualTo _scancode_sw) then {\nprivate _swModsMatch = 0;\n{\nif (!_x || _modifiers select _forEachIndex) then {_swModsMatch = _swModsMatch + 1;}\n} forEach _swMods;\n_swMatch = _swModsMatch == 3; \n};\n\nif (({_x} count _swMods) > ({_x} count _lrMods)) then {\nif (_swMatch) exitWith {call TFAR_fnc_onSwTangentPressed};\nif (_lrMatch) exitWith {call TFAR_fnc_onLrTangentPressed};\n} else {\nif (_lrMatch) exitWith {call TFAR_fnc_onLrTangentPressed};\nif (_swMatch) exitWith {call TFAR_fnc_onSwTangentPressed};\n}\n};\n", | |
"fileOffset": [ | |
36, | |
3487, | |
9 | |
], | |
"filename": "z\\tfar\\addons\\core\\functions\\events\\keys\\fnc_ontangentpressedhack.sqf", | |
"message": "==: Type Bool, expected Number,String,Not a Number,Object,Side,Group,Text,Config entry,Display (dialog),Control,Network Object,Team member,Task,Location", | |
"type": 20 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment