PatPeter / FriendlyFireAutoban

Automatically bans teamkillers after a configured amount of kills and for a length of time.
2 stars 1 forks source link

Personal broadcast warning when you're close to being banned #18

Closed NeonWizard closed 5 years ago

NeonWizard commented 5 years ago

When someone is close to getting auto-banned, send them a personal broadcast warning to let them know.

PatPeter commented 5 years ago

Broadcasts can only be global, not personal, but I was planning this for version 3 of Friendly Fire Autoban!

NeonWizard commented 5 years ago

Uhh no, personal broadcasts were introduced to smod a while ago. It would be very easy to implement quickly

PatPeter commented 5 years ago

It's in ServerMod2 as a command, PBC, but it isn't in the API last I checked coding my callvote plugin.

API
    Added Map.Broadcast function. Takes a uint for the duration, a string for the message that should be displayed and a bool for whether or not it should be monospaced. This allows you to display a message for all your players, similar to the BC command.
    Added Map.ClearBroadcasts function. This allows you to empty the queue of messages to broadcast, similar to the BCCLEAR command.

https://github.com/Grover-c13/Smod2/releases

NeonWizard commented 5 years ago

Yeah it wouldn’t be in the Map API considering it’s not something that runs on a global scale. There’s a personal broadcast method in the Player API, can’t remember what it’s called rn

PatPeter commented 5 years ago

I'll look into it an add it to the next version. I have to rewrite how TKs are counted for #17 but in the long run it will allow the plugin to work like it would in other games. I wish they had listed the Player API updates in the same announcement.

PatPeter commented 5 years ago

Well derp I thought I updated the Smod2.dll for FFA but it turns out I hadn't. That explains why it wasn't showing up in peek definition. I'm hoping to get this change out tonight.

PatPeter commented 5 years ago

Issue #8 has also been closed in lieu of using broadcasts instead

PatPeter commented 5 years ago

Deserves its own issue.

PatPeter commented 5 years ago

Has been implemented since version 4.