mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Simplified default pen position assignment
This commit is contained in:
parent
4df1738b43
commit
eeeb543424
@ -29,8 +29,6 @@
|
||||
|
||||
if !(hasInterface) exitWith {};
|
||||
|
||||
call FUNC(penPos);
|
||||
|
||||
GVAR(playerSide) = side (group player);
|
||||
|
||||
if GVAR(tracking) then {
|
||||
|
@ -18,7 +18,6 @@ PREP(killed);
|
||||
PREP(map);
|
||||
PREP(moduleSpectator);
|
||||
PREP(overlay);
|
||||
PREP(penPos);
|
||||
PREP(respawn);
|
||||
PREP(sideColour);
|
||||
PREP(status);
|
||||
@ -28,4 +27,6 @@ PREP(unitSide);
|
||||
PREP(unitVar);
|
||||
PREP(viewDistance);
|
||||
|
||||
ADDON = true;
|
||||
GVAR(penPos) = [-10e5,-10e5,0];
|
||||
|
||||
ADDON = true;
|
||||
|
@ -1,33 +0,0 @@
|
||||
/*
|
||||
Author:
|
||||
voiper
|
||||
|
||||
Description:
|
||||
Determine spec pen position.
|
||||
|
||||
Arguments:
|
||||
None
|
||||
|
||||
Example:
|
||||
call ace_spectator_fnc_penPos;
|
||||
|
||||
Return Value:
|
||||
None
|
||||
|
||||
Public:
|
||||
No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
_mapSize = (configFile >> "CfgWorlds" >> worldName >> "mapSize");
|
||||
_worldEdge = if (isNumber _mapSize) then {getNumber _mapSize} else {32768};
|
||||
_pos = [_worldEdge * 2, _worldEdge * 2];
|
||||
|
||||
if (surfaceisWater _pos) then {
|
||||
_pos set [2, -1.4];
|
||||
GVAR(penPos) = ASLtoATL _pos;
|
||||
} else {
|
||||
_pos set [2, 0];
|
||||
GVAR(penPos) = _pos;
|
||||
};
|
Loading…
Reference in New Issue
Block a user