StAC-tf2 icon indicating copy to clipboard operation
StAC-tf2 copied to clipboard

[Feature Req] API

Open MAGNAT2645 opened this issue 2 years ago • 7 comments

StAC should have its own API (even if it's very basic) for other plugins to use. For example, there is rage_matrix_attack ability for FF2 which changes sv_cheats for all clients during slowmo and StAC can ban all these clients.

So it would be really useful if StAC had StAC_OnCheatDetected forward (just like in SMAC) and probably other forwards & natives to control through the code.

MAGNAT2645 avatar Jun 10 '22 18:06 MAGNAT2645

good idea, will implement

sapphonie avatar Jun 10 '22 19:06 sapphonie

@sapphonie Any expected ETA on this?

leighmacdonald avatar Dec 04 '22 05:12 leighmacdonald

@sapphonie Any expected ETA on this?

Depends, what do you need it for? Would like some more use cases so I can know what exactly to do, here, or if a solution already exists (e.g. toggling cvars, etc)

sapphonie avatar Dec 04 '22 06:12 sapphonie

There's also the fact that StAC hasn't... really been designed with Funny Gamemodes:tm: in mind, so... errrr. I dunno. I don't know if I want to open the door to having to write a bunch of workarounds for silly plugins doing things to clients that StAC picks up as cheating, though I guess an API would let plugins themselves work around it...

sapphonie avatar Dec 04 '22 07:12 sapphonie

Essentially i just want to be able to filter & log and/or act on events in my own external system without having to parse logs.

leighmacdonald avatar Dec 04 '22 07:12 leighmacdonald

Essentially i just want to be able to filter & log and/or act on events in my own external system without having to parse logs.

Would firing off something based off StacLog work? Do you need the additional data e.g. StacLogNetData etc?

sapphonie avatar Dec 04 '22 07:12 sapphonie

Essentially i just want to be able to filter & log and/or act on events in my own external system without having to parse logs.

Would firing off something based off StacLog work? Do you need the additional data e.g. StacLogNetData etc?

In the works

sapphonie avatar Dec 08 '22 13:12 sapphonie