mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix error in setupExplosive with CBA 3.8.0 (#6476)
* Fix error in setupExplosive with CBA 3.8.0 getFov has a param check now, this function was passing args to it and causing an error. * Fix getFov call in attach and viewDistance modules
This commit is contained in:
parent
2767fddd92
commit
9f85a53711
@ -106,7 +106,7 @@ if (_unit == _attachToVehicle) then { //Self Attachment
|
||||
if (_screenPos isEqualTo []) exitWith {
|
||||
((uiNamespace getVariable [QGVAR(virtualAmmoDisplay), displayNull]) displayCtrl 800851) ctrlShow false;
|
||||
};
|
||||
private _realDistance = (_virtualPos distance (positionCameraToWorld [0,0,0])) / ((call CBA_fnc_getFov) select 1);
|
||||
private _realDistance = (_virtualPos distance (positionCameraToWorld [0,0,0])) / (([] call CBA_fnc_getFov) select 1);
|
||||
_screenPos = [(_screenPos select 0), _realDistance, (_screenPos select 1)];
|
||||
((uiNamespace getVariable [QGVAR(virtualAmmoDisplay), displayNull]) displayCtrl 800851) ctrlSetPosition _screenPos;
|
||||
private _dir = (positionCameraToWorld [0,0,1]) vectorFromTo (positionCameraToWorld [0,0,0]);
|
||||
|
@ -196,7 +196,7 @@ GVAR(TweakedAngle) = 0;
|
||||
//Show the model on the hud in aprox the same size/location as it will be placed:
|
||||
((uiNamespace getVariable [QGVAR(virtualAmmoDisplay), displayNull]) displayCtrl 800851) ctrlShow true;
|
||||
|
||||
private _realDistance = ((_virtualPosASL call EFUNC(common,ASLToPosition)) distance (positionCameraToWorld [0,0,0])) / ((call CBA_fnc_getFov) select 1);
|
||||
private _realDistance = ((_virtualPosASL call EFUNC(common,ASLToPosition)) distance (positionCameraToWorld [0,0,0])) / (([] call CBA_fnc_getFov) select 1);
|
||||
_screenPos = [(_screenPos select 0), _realDistance, (_screenPos select 1)];
|
||||
((uiNamespace getVariable [QGVAR(virtualAmmoDisplay), displayNull]) displayCtrl 800851) ctrlSetPosition _screenPos;
|
||||
|
||||
|
@ -25,7 +25,7 @@ if (GVAR(objectViewDistanceCoeff) < 6) exitWith {
|
||||
GVAR(fovBasedPFHminimalViewDistance) = nil;
|
||||
};
|
||||
|
||||
private _zoom = (call CBA_fnc_getFov) select 1;
|
||||
private _zoom = ([] call CBA_fnc_getFov) select 1;
|
||||
|
||||
if (_zoom > VD_ZOOM_NORMAL) then {
|
||||
// Dynamically set Object View Distance based on player's Zoom Level and View Distance
|
||||
|
Loading…
Reference in New Issue
Block a user