View Single Post
Author Message
squeeek
Junior Member
Join Date: Mar 2005
Location: Hungary - Budapest
Old 10-22-2008 , 09:08   [CS:S] FlashProt
Reply With Quote #1

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
    • 0 - off
    • 1 - on
  • 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
Attached Files
File Type: zip FlashProt_161.zip (11.8 KB, 958 views)
File Type: sp Get Plugin or Get Source (FlashProt.sp - 1832 views - 10.6 KB)
File Type: txt plugin.flashprot.base.txt (3.6 KB, 651 views)

Last edited by squeeek; 02-21-2009 at 07:49. Reason: Version update
squeeek is offline
Send a message via MSN to squeeek