-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
counter,respawntickets,drawicon for entities
OCAP2/OCAP#37 - adds remote-controlled unit detection if firer was >50m away from initial projectile position OCAP2/OCAP#9 - adds setting for optional BIS_fnc_respawnTickets tracking, will automatically track missionNamespace + faction score counts every 30th frame - adds system for optional custom score tracking by a set of sides, a custom counter separate from BIS_fnc_respawnTickets - pending testing of debug drawIcon for units being recorded remove userconfig
- Loading branch information
Showing
9 changed files
with
108 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "script_component.hpp" | ||
|
||
// DEBUG draws on clients | ||
{ | ||
if (!hasInterface) exitWith {}; | ||
[] spawn { | ||
waitUntil {!isNull (findDisplay 12)}; | ||
GVAR(liveDebugBullets) = []; | ||
disableSerialization; | ||
(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw", { | ||
if (GVARMAIN(isDebug)) then { | ||
{ | ||
// _x params ["_startPos", "_endPos", "_color", "_timeHit"]; | ||
(_this#0) drawIcon [ | ||
["iconMan"] call BIS_fnc_textureVehicleIcon, // Custom images can also be used: getMissionPath "\myFolder\myIcon.paa" | ||
[side group _x] call BIS_fnc_sideColor, | ||
getPos _x, | ||
1, | ||
1, | ||
getDir _x, | ||
name _x, | ||
0, | ||
0.03, | ||
"PuristaLight", | ||
"center" | ||
]; | ||
} forEach (allUnits + vehicles) select { | ||
_x getVariable [QGVARMAIN(isInitialized), false] && | ||
_x getVariable [QGVARMAIN(exclude), true] | ||
}; | ||
}; | ||
}]; | ||
}; | ||
} remoteExec ["call", [0, -2] select isDedicated, true]; | ||
|
||
GVAR(entityMonitorsInitialized) = true; |
This file contains 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