-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip fix buy menu - control all buttons on any change * fix exploit possibility in buy menu * fix category count not cached * add 3d icons to ACE spectator
- Loading branch information
Showing
8 changed files
with
98 additions
and
103 deletions.
There are no files selected for viewing
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,40 @@ | ||
params ["_canHearSpectators"]; | ||
|
||
// as we dont have any events we force spectator false here in a cheap local loop | ||
[{ | ||
params ["_args", "_handle"]; | ||
_args params ["_canHearSpectators"]; | ||
|
||
if (!_canHearSpectators) then { | ||
player setVariable ["TFAR_forceSpectator", false]; | ||
}; | ||
|
||
if (!visibleMap) then { | ||
|
||
private _truck = missionNamespace getVariable ["GRAD_tracking_radioVehObj", objNull]; | ||
private _terminal = missionNamespace getVariable ["GRAD_tracking_terminalObj", objNull]; | ||
private _colorTruck = [1,1,1,1]; | ||
private _colorTerminal = [1,1,1,1]; | ||
|
||
if ([_truck] call GRAD_tracking_fnc_radioVehIsSending) then { | ||
_colorTruck = [1,0.2,0.2,1]; | ||
}; | ||
|
||
if (call GRAD_tracking_fnc_terminalIsSending) then { | ||
_colorTerminal = [0.2,0.2,1,1]; | ||
}; | ||
|
||
private _ticksRatio = GRAD_TICKS_DONE / GRAD_TICKS_NEEDED; | ||
private _string_2 = " | Done: " + str GRAD_INTERVALS_DONE + "/" + str GRAD_INTERVALS_NEEDED; | ||
private _string = " " + (str (round(_ticksRatio * 100))) + " " + localize "str_GRAD_transmissionTime_2" + _string_2; | ||
|
||
|
||
|
||
drawIcon3D [getText (configFile >> "CfgVehicles" >> (typeOf _truck) >> "icon"), _colorTruck, getPos _truck, 1, 1, 0, _string, 2, 0.03, "RobotoCondensed"]; | ||
|
||
if (GRAD_TERMINAL) then { | ||
private _strength = (str GRAD_TERMINAL_DISTANCE + " % strength"); | ||
drawIcon3D [getText (configFile >> "CfgVehicles" >> (typeOf _terminal) >> "icon"), _colorTerminal, [0,0,0], 1, 1, 0, _strength, 2, 0.03, "RobotoCondensed"]; | ||
}; | ||
}; | ||
}, 0, [_canHearSpectators]] call CBA_fnc_addPerFrameHandler; |
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