mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
added MP debug compatability
This commit is contained in:
parent
21e7b3d107
commit
4913887e36
@ -15,14 +15,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef DEBUG_MODE_DRAW
|
#ifdef DEBUG_MODE_DRAW
|
||||||
if (isServer) then {
|
[QGVAR(dev_clearTraces),LINKFUNC(dev_clearTraces)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(dev_clearTraces),LINKFUNC(dev_clearTraces)] call CBA_fnc_addEventHandler;
|
|
||||||
|
if (!isServer && hasInterface) then {
|
||||||
|
["ace_firedPlayer", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
|
["ace_firedPlayerNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
|
["ace_firedNonPlayer", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
|
["ace_firedPlayerVehicle", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
|
["ace_firedPlayerVehicleNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
|
["ace_firedNonPlayerVehicle", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
if (hasInterface) then {
|
if (hasInterface) then {
|
||||||
GVAR(dev_drawPFEH) = [
|
GVAR(dev_drawPFEH) = [LINKFUNC(dev_drawTrace), 0] call CBA_fnc_addPerFrameHandler;
|
||||||
LINKFUNC(dev_drawTrace),
|
|
||||||
0
|
|
||||||
] call CBA_fnc_addPerFrameHandler;
|
|
||||||
[
|
[
|
||||||
"ace_interact_menu_newControllableObject",
|
"ace_interact_menu_newControllableObject",
|
||||||
{
|
{
|
||||||
@ -33,7 +37,8 @@
|
|||||||
"Reset ACE Frag traces",
|
"Reset ACE Frag traces",
|
||||||
"",
|
"",
|
||||||
{
|
{
|
||||||
[QGVAR(dev_clearTraces), []] call CBA_fnc_serverEvent;
|
[QGVAR(dev_clearTraces), []] call CBA_fnc_remoteEvent;
|
||||||
|
call FUNC(dev_clearTraces);
|
||||||
},
|
},
|
||||||
{true}
|
{true}
|
||||||
] call EFUNC(interact_menu,createAction);
|
] call EFUNC(interact_menu,createAction);
|
||||||
|
Loading…
Reference in New Issue
Block a user