core: Add client id to MultiTargetFilter forward (#1070)

* Added client id to MultiTargetFilter forward.

* Add CapabilityProvider for MultiTargetFilter client param
This commit is contained in:
BotoX
2021-03-08 10:04:11 -08:00
committed by GitHub
parent 52c4d08e15
commit 1a11d92fd9
2 changed files with 21 additions and 1 deletions
+7
View File
@@ -132,16 +132,23 @@ stock void ReplyToTargetError(int client, int reason)
}
}
#define FEATURECAP_MULTITARGETFILTER_CLIENTPARAM "SourceMod MultiTargetFilter ClientParam"
/**
* Adds clients to a multi-target filter.
*
* @param pattern Pattern name.
* @param clients Array to fill with unique, valid client indexes.
* @param client Client that triggered this filter.
* @return True if pattern was recognized, false otherwise.
*
* @note To see if the client param is available, use FeatureType_Capability and FEATURECAP_MULTITARGETFILTER_CLIENTPARAM.
*/
typeset MultiTargetFilter {
function bool (const char[] pattern, Handle clients);
function bool (const char[] pattern, ArrayList clients);
function bool (const char[] pattern, Handle clients, int client);
function bool (const char[] pattern, ArrayList clients, int client);
}
/**