Raised This Month: $12 Target: $400
 3% 

[CS:S] FlashProt


Post New Thread Reply   
 
Thread Tools Display Modes
Author
squeeek
Junior Member
Join Date: Mar 2005
Location: Hungary - Budapest
Plugin ID:
612
Plugin Version:
1.6.1 RC
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin that punishes players who flash their teammates
    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, 953 views)
    File Type: sp Get Plugin or Get Source (FlashProt.sp - 1826 views - 10.6 KB)
    File Type: txt plugin.flashprot.base.txt (3.6 KB, 646 views)

    Last edited by squeeek; 02-21-2009 at 07:49. Reason: Version update
    squeeek is offline
    Send a message via MSN to squeeek
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 10-22-2008 , 17:44   Re: [CS Source] FlashProt
    Reply With Quote #2

    Could you add an ability to just show in chat who flashed a teammates like in ATF plugin for event scripts without any punishment?
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    squeeek
    Junior Member
    Join Date: Mar 2005
    Location: Hungary - Budapest
    Old 10-23-2008 , 04:33   Re: [CS:S] FlashProt
    Reply With Quote #3

    Added flashprot_announce cvar, I think its usage is obvious ;]
    Any extra functionality ideas and testing result is welcome! It might still be buggy...
    squeeek is offline
    Send a message via MSN to squeeek
    Harley
    Member
    Join Date: Aug 2006
    Old 10-24-2008 , 09:51   Re: [CS:S] FlashProt
    Reply With Quote #4

    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
    Harley is offline
    squeeek
    Junior Member
    Join Date: Mar 2005
    Location: Hungary - Budapest
    Old 10-24-2008 , 14:24   Re: [CS:S] FlashProt
    Reply With Quote #5

    Quote:
    Originally Posted by Harley View Post
    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? =]
    squeeek is offline
    Send a message via MSN to squeeek
    3RMAC
    Junior Member
    Join Date: Jul 2006
    Old 10-25-2008 , 01:18   Re: [CS:S] FlashProt
    Reply With Quote #6

    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
    3RMAC is offline
    Harley
    Member
    Join Date: Aug 2006
    Old 10-25-2008 , 11:22   Re: [CS:S] FlashProt
    Reply With Quote #7

    Quote:
    Originally Posted by squeeek View Post
    Translation file has been fixed!

    Any feedback? =]
    All ok

    THX
    __________________
    Harley is offline
    squeeek
    Junior Member
    Join Date: Mar 2005
    Location: Hungary - Budapest
    Old 10-25-2008 , 13:21   Re: [CS:S] FlashProt
    Reply With Quote #8

    Quote:
    Originally Posted by 3RMAC View Post
    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)?
    squeeek is offline
    Send a message via MSN to squeeek
    zeroibis
    Veteran Member
    Join Date: Jun 2007
    Old 11-01-2008 , 00:19   Re: [CS:S] FlashProt
    Reply With Quote #9

    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.
    __________________
    zeroibis is offline
    squeeek
    Junior Member
    Join Date: Mar 2005
    Location: Hungary - Budapest
    Old 11-01-2008 , 13:53   Re: [CS:S] FlashProt
    Reply With Quote #10

    Quote:
    Originally Posted by zeroibis View Post
    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! ;]
    squeeek is offline
    Send a message via MSN to squeeek
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:07.


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