Skip to content

Commit

Permalink
Merge pull request #602 from KillahPotatoes/v0.97S12-585-veteran29
Browse files Browse the repository at this point in the history
S11 Review - Calculate limited curator camera max height from terrain height
  • Loading branch information
veteran29 authored May 5, 2019
2 parents 363876a + 66f5d1f commit ce03699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
File: fn_virtual_curatorAreaLimit.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2018-11-25
Last Update: 2019-04-23
Last Update: 2019-04-29
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
Public: No
Expand All @@ -13,7 +13,7 @@
Parameter(s):
_curator - Curator logic [OBJECT, defaults to nil]
_position - Center position of area [POSITION, defaults to nil]
_position - Center position of area [POSITION ATL, defaults to nil]
_radius - Area radius [OBJECT, defaults to KPLIB_param_limitedZeusRadius]
_ceiling - Area ceiling [OBJECT, defaults to KPLIB_param_limitedZeusCeiling]
Expand All @@ -28,6 +28,6 @@ params [
];

[_curator, [1, _position, _radius]] remoteExec ["addCuratorCameraArea", 2];
[_curator, _ceiling] remoteExec ["setCuratorCameraAreaCeiling", 2];
[_curator, (_position select 2) + _ceiling] remoteExec ["setCuratorCameraAreaCeiling", 2];

true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
File: fn_virtual_preInit.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2018-11-18
Last Update: 2019-04-23
Last Update: 2019-04-29
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
Public: No
Expand Down Expand Up @@ -71,7 +71,7 @@ if (hasInterface) then {
switch (_curator getVariable ["KPLIB_mode", 0]) do {
// Limited mode
case 1: {
[_curator, getPos player] call KPLIB_fnc_virtual_curatorAreaLimit;
[_curator, getPosATL player] call KPLIB_fnc_virtual_curatorAreaLimit;
};
};
}] call CBA_fnc_addEventHandler;
Expand Down

0 comments on commit ce03699

Please # to comment.