CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

[Feature Request] Multi-Target Logic Processing

Open MSWS opened this issue 1 year ago • 1 comments

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:

  • @t would target those on the Terrorist team
  • @alive would target those alive
  • @human would 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@alive would target those on the Terrorist team that are also alive
  • @!me@ct would target all CTs excluding yourself (even if you are on CT)

Similarly, additional implementation could support using OR operations instead. For example:

  • @t|@alive would target all Terrorists (including dead ones) alive CTs
  • @me|@ct would target all CTs, and yourself (even if you are not on CT)

MSWS avatar Sep 08 '24 01:09 MSWS

I believe this could be handled individually and you could just merge the results into a single enumerable?

KillStr3aK avatar Oct 01 '24 06:10 KillStr3aK