AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] FlashProt (https://forums.alliedmods.net/showthread.php?t=79378)

squeeek 10-22-2008 09:08

[CS:S] FlashProt
 
3 Attachment(s)
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

exvel 10-22-2008 17:44

Re: [CS Source] FlashProt
 
Could you add an ability to just show in chat who flashed a teammates like in ATF plugin for event scripts without any punishment?

squeeek 10-23-2008 04:33

Re: [CS:S] FlashProt
 
Added flashprot_announce cvar, I think its usage is obvious ;]
Any extra functionality ideas and testing result is welcome! It might still be buggy...

Harley 10-24-2008 09:51

Re: [CS:S] FlashProt
 
Nice Plugin but i have a Prob in my log

L 10/24/2008 - 16:10:51: [SM] Fatal error encountered parsing translation file "plugin.flashprot.base.txt"
L 10/24/2008 - 16:10:51: [SM] Error (line 16, column 14): Phrase sections may not have sub-sections

squeeek 10-24-2008 14:24

Re: [CS:S] FlashProt
 
Quote:

Originally Posted by Harley (Post 704397)
Nice Plugin but i have a Prob in my log

L 10/24/2008 - 16:10:51: [SM] Fatal error encountered parsing translation file "plugin.flashprot.base.txt"
L 10/24/2008 - 16:10:51: [SM] Error (line 16, column 14): Phrase sections may not have sub-sections

Translation file has been fixed!

Any feedback? =]

3RMAC 10-25-2008 01:18

Re: [CS:S] FlashProt
 
L 10/25/2008 - 00:07:14: [SM] [0] Line 177, E:\servercoding\flashprot\cstrike\addons\sour cemod\scripting\FlashProt.sp::(null)()
L 10/25/2008 - 00:07:18: [SM] Plugin encountered error 4: Invalid parameter or parameter type

Harley 10-25-2008 11:22

Re: [CS:S] FlashProt
 
Quote:

Originally Posted by squeeek (Post 704553)
Translation file has been fixed!

Any feedback? =]

All ok

THX:)

squeeek 10-25-2008 13:21

Re: [CS:S] FlashProt
 
Quote:

Originally Posted by 3RMAC (Post 704756)
L 10/25/2008 - 00:07:14: [SM] [0] Line 177, E:\servercoding\flashprot\cstrike\addons\sour cemod\scripting\FlashProt.sp::(null)()
L 10/25/2008 - 00:07:18: [SM] Plugin encountered error 4: Invalid parameter or parameter type

Do you have the latest version of the plugin (1.4 as to this date)?

zeroibis 11-01-2008 00:19

Re: [CS:S] FlashProt
 
How about instead of making punishment automated, give the player that got flashed a punishment menu just like if they got tked. Here is how it could work:

Player gets flashed
Player dies before X seconds pass (adjustable via cvar)
Player can punish the team flasher for tk at there digression.

squeeek 11-01-2008 13:53

Re: [CS:S] FlashProt
 
Quote:

Originally Posted by zeroibis (Post 708247)
How about instead of making punishment automated, give the player that got flashed a punishment menu just like if they got tked. Here is how it could work:

Player gets flashed
Player dies before X seconds pass (adjustable via cvar)
Player can punish the team flasher for tk at there digression.

Plugin updated! ;]


All times are GMT -4. The time now is 17:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.