mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge remote-tracking branch 'refs/remotes/origin/master' into vehicleInteractionDistance
This commit is contained in:
@ -24,7 +24,7 @@ private _fnc_renderNearbyActions = {
|
||||
#define MAXINTERACTOBJECTS 3
|
||||
|
||||
GVAR(foundActions) = [];
|
||||
GVAR(lastTimeSearchedActions) = ACE_diagTime;
|
||||
GVAR(lastTimeSearchedActions) = diag_tickTime;
|
||||
|
||||
private _numInteractObjects = 0;
|
||||
private _nearestObjects = nearestObjects [ACE_player, ["All"], 13];
|
||||
@ -54,8 +54,9 @@ private _fnc_renderNearbyActions = {
|
||||
} count GVAR(objectActionList);
|
||||
|
||||
// Iterate through base level class actions and render them if appropiate
|
||||
private _actionsVarName = format [QGVAR(Act_%1), typeOf _target];
|
||||
private _classActions = missionNamespace getVariable [_actionsVarName, []];
|
||||
private _namespace = GVAR(ActNamespace);
|
||||
private _classActions = _namespace getVariable typeOf _target;
|
||||
|
||||
{
|
||||
private _action = _x;
|
||||
// Try to render the menu
|
||||
@ -95,8 +96,8 @@ private _fnc_renderSelfActions = {
|
||||
GVAR(objectActionList) = _target getVariable [QGVAR(selfActions), []];
|
||||
|
||||
// Iterate through base level class actions and render them if appropiate
|
||||
private _actionsVarName = format [QGVAR(SelfAct_%1), typeOf _target];
|
||||
private _classActions = missionNamespace getVariable [_actionsVarName, []];
|
||||
private _namespace = GVAR(ActSelfNamespace);
|
||||
private _classActions = _namespace getVariable typeOf _target;
|
||||
|
||||
private _pos = if !(GVAR(useCursorMenu)) then {
|
||||
//Convert to ASL, add offset and then convert back to AGL (handles waves when over water)
|
||||
@ -127,7 +128,7 @@ GVAR(collectedActionPoints) resize 0;
|
||||
if (GVAR(openedMenuType) == 0) then {
|
||||
if (isNull curatorCamera) then {
|
||||
if (vehicle ACE_player == ACE_player) then {
|
||||
if (ACE_diagTime > GVAR(lastTimeSearchedActions) + 0.20) then {
|
||||
if (diag_tickTime > GVAR(lastTimeSearchedActions) + 0.20) then {
|
||||
// Once every 0.2 secs, collect nearby objects active and visible action points and render them
|
||||
call _fnc_renderNearbyActions;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user