CounterStrikeSharp
CounterStrikeSharp copied to clipboard
[Feature Request] Multi-Target Logic Processing
A feature that I think would be great would be supporting the combination of multi-targetters.
Currently, you are able to use @[target] to target specific players (similar to SourceMod), some examples:
@twould target those on the Terrorist team@alivewould target those alive@humanwould target non-bots
The specific implementation (alongside all other target supports) can be found here.
I propose supporting the combination of these targeters to allow for fine-tuning of who someone wishes to target. This would be similar to how Minecraft handles target selectors.
One potential implementation would work like so:
Specifying more than one selector without spaces would work as a logical AND. Some examples:
@t@alivewould target those on the Terrorist team that are also alive@!me@ctwould target all CTs excluding yourself (even if you are on CT)
Similarly, additional implementation could support using OR operations instead. For example:
@t|@alivewould target all Terrorists (including dead ones) alive CTs@me|@ctwould target all CTs, and yourself (even if you are not on CT)
I believe this could be handled individually and you could just merge the results into a single enumerable?