Merge pull request #234 from alliedmodders/expose-getmulticastrecips

Expose Message_DetermineMulticastRecipients as GetClientsInRange native (r=asherkin).
This commit is contained in:
Nicholas Hastings
2014-12-30 15:42:25 -05:00
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);