mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
setCameraAttributes should use ATL
This commit is contained in:
parent
e81f9f5e59
commit
7234c928bc
@ -24,7 +24,7 @@ GVAR(availableVisions) = [-2,-1,0,1];
|
||||
|
||||
GVAR(camMode) = 0;
|
||||
GVAR(camPan) = 0;
|
||||
GVAR(camPos) = [worldSize * 0.5,worldSize * 0.5,20];
|
||||
GVAR(camPos) = ATLtoASL [worldSize * 0.5, worldSize * 0.5, 20];
|
||||
GVAR(camSpeed) = 1;
|
||||
GVAR(camTilt) = -10;
|
||||
GVAR(camUnit) = objNull;
|
||||
|
@ -36,7 +36,7 @@ switch (toLower _mode) do {
|
||||
GVAR(mousePos) = [0.5,0.5];
|
||||
|
||||
// Initalize the camera view
|
||||
GVAR(camera) = "Camera" camCreate GVAR(camPos);
|
||||
GVAR(camera) = "Camera" camCreate (ASLtoATL GVAR(camPos));
|
||||
[] call FUNC(transitionCamera);
|
||||
|
||||
// Create the dialog
|
||||
@ -321,7 +321,7 @@ switch (toLower _mode) do {
|
||||
if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then {
|
||||
_newPos = _map ctrlMapScreenToWorld [_x,_y];
|
||||
_oldZ = (ASLtoATL GVAR(camPos)) select 2;
|
||||
_newPos set [2, _oldZ]
|
||||
_newPos set [2, _oldZ];
|
||||
GVAR(camPos) = (ATLtoASL _newPos);
|
||||
};
|
||||
};
|
||||
|
@ -13,7 +13,7 @@
|
||||
* - -1: Night vision
|
||||
* - 0: Thermal white hot
|
||||
* - 1: Thermal black hot
|
||||
* 3: Camera position (ASL) <ARRAY> <OPTIONAL>
|
||||
* 3: Camera position (ATL) <ARRAY> <OPTIONAL>
|
||||
* 4: Camera pan (0 - 360) <NUMBER> <OPTIONAL>
|
||||
* 5: Camera tilt (-90 - 90) <NUMBER> <OPTIONAL>
|
||||
* 6: Camera zoom (0.1 - 2) <NUMBER> <OPTIONAL>
|
||||
@ -51,7 +51,7 @@ if !(_vision in GVAR(availableVisions)) then {
|
||||
};
|
||||
|
||||
GVAR(camPan) = ((_heading % 360) max 0);
|
||||
GVAR(camPosition) = _position;
|
||||
GVAR(camPosition) = (ATLtoASL _position);
|
||||
GVAR(camSpeed) = _speed;
|
||||
GVAR(camTilt) = ((_heading min -90) max 90);
|
||||
GVAR(camUnit) = _unit;
|
||||
|
Loading…
Reference in New Issue
Block a user