-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ARCOMM/spect-tracers
Spectator tracers & UI
- Loading branch information
Showing
14 changed files
with
845 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.4 | ||
1.1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
disableSerialization; | ||
|
||
private ["_ctrl","_hover"]; | ||
|
||
_ctrl = _this select 0; | ||
_hover = _this select 1; | ||
_pos = ctrlPosition _ctrl; // [x, y, w, h] | ||
|
||
if (_hover) then { | ||
_ctrl ctrlSetPosition [(_pos select 0), (_pos select 1), (_pos select 2), (_pos select 3) + 0.02]; | ||
} else { | ||
_ctrl ctrlSetPosition [(_pos select 0), (_pos select 1), (_pos select 2), (0.03 * safeZoneH)]; | ||
}; | ||
|
||
_ctrl ctrlCommit 0.15; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
private ["_arr"]; | ||
_players = []; | ||
_ai = []; | ||
|
||
{ | ||
if(isNil "f_cam_side" || {side _x == f_cam_side}) then | ||
{ | ||
if({isPlayer _x} count (units _x) > 0) then {_players pushBack _x} | ||
else {_ai pushBack _x}; | ||
if (isNil "f_cam_side" || {side _x == f_cam_side}) then { | ||
if ({isPlayer _x} count (units _x) > 0) then { | ||
_players pushBack _x | ||
} else { | ||
_ai pushBack _x | ||
}; | ||
}; | ||
} forEach allGroups; | ||
|
||
} foreach allGroups; | ||
[_players,_ai] | ||
[_players, _ai] |
Oops, something went wrong.