Expose Message_DetermineMulticastRecipients as GetClientsInRange native.

This commit is contained in:
Nicholas Hastings
2014-12-30 15:37:57 -05:00
parent 047c143879
commit 6d1a2b0d86
2 changed files with 60 additions and 0 deletions
+18
View File
@@ -624,3 +624,21 @@ native EntRefToEntIndex(ref);
*/
native MakeCompatEntRef(ref);
enum ClientRangeType
{
RangeType_Visibility = 0,
RangeType_Audibility,
}
/**
* Find clients that are potentially in range of a position.
*
* @param origin Coordinates from which to test range.
* @param rangeType Range type to use for filtering clients.
* @param clients Array to which found client indexes will be written.
* @param size Maximum size of clients array.
* @return Number of client indexes written to clients array.
*/
native int GetClientsInRange(float origin[3], ClientRangeType rangeType, int[] clients, int size);