This is a rewritten version of WhoBangedMe? by Shaman (dont know if his original one is after all working or not...)
Players are punished (and/or warned) when they reach a certain amount of teamflashes (per thrown flashbang, not per flashed person), this can be set by a CVAR.
Punishments are the following: Slap (also taking 50% of player's current health), Slay, Kick.
There is also protection against spawn flashing, when a person flashes a fraction (set by CVAR) of his team, the selected punishment is carried out immediately.
Counters will be reset either when the punishment is carried out, or at new round.
Changelog is in .sp file.
Translation file includes English, German (thanks to nOzE) and Hungarian
I've only tested it on bots so far, I'd appreciate any feedback!
CVARs
- flashprot_enable
- flashprot_mode
- 0 - automatic punishment
- 1 - players can choose punishment
- flashprot_time
- if a players is flashed and dies within this amount of time the punishment menu will be shown to him
- flashprot_punishment
- 0 - off
- 1 - slap
- 2 - slay
- 3 - kick
- flashprot_limit
- Number of teamflashes after punishment is carried out
- flashprot_reset
- 0 - reset teamflash counter each round
- 1 - reset teamflash counter only after punishment is carried out
- flashprot_team
- Will slay the player immediately if he flashes this fraction or more of his team. When set to 0 no punishment will occur
- flashprot_announce
- 0 - show message to flasher only
- 1 - show message to flasher and victim
- 2 - show message to team
- 3 - show message to everyone