Raised This Month: $182 Target: $400
 45% 

FlashProtect


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bl4nk
SourceMod Developer
Join Date: Jul 2007
Plugin ID:
939
Plugin Version:
1.3.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    17 
    Plugin Description:
    Damage players who flash their own team
    Old 06-06-2009 , 20:39   FlashProtect
    Reply With Quote #1

    FlashProtect
    Damage players who flash their own team.

    ConVars:
    sm_flashprotect_enable 1 - Enable/Disable the plugin.
    sm_flashprotect_damage 3 - Damage to do per second of flashed.
    sm_flashprotect_duration 1.5 - Maximum duration that a flash can last for before it's punishable.
    sm_flashprotect_message 1 - Enable/Disable messaging teammates when flashed.
    sm_flashprotect_minhealth 20 - Minimum health a player will be punished to (setting the cvar to 0 disables this feature).

    Installation:
    Download the plugin and place it in your ~/cstrike/addons/sourcemod/plugins/ folder.
    Download the translation file and place it in your ~/cstrike/addons/sourcemod/translations/ folder.
    Manually load the plugin, change the map, or restart the server for the plugin to be loaded.
    Configure the cvars listed above in an executed config file (server.cfg is fine) to customize the plugin to your liking.

    Notes:
    Thanks to *XYZ*SaYnt for his original TFlash ES plugin.

    Changelog:
    • 1.0.0
      • Initial release.
    • 1.1.0
      • Fixed bug where spectators were counted as being flashed.
      • Added sm_flashprotect_message cvar to control whether or not teammates receive a message when someone flashes their team.
    • 1.2.0
      • Changed damage to slap damage so a player will notice it.
      • Fixed the "{i}" showing up in the team messages.
    • 1.3.0
      • Added sm_flashprotect_minhealth cvar.
    Attached Files
    File Type: sp Get Plugin or Get Source (flashprotect.sp - 2279 views - 5.2 KB)
    File Type: txt flashprotect.phrases.txt (410 Bytes, 1103 views)

    Last edited by bl4nk; 07-04-2009 at 02:46.
    bl4nk is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-07-2009 , 11:33   Re: FlashProtect
    Reply With Quote #2

    You missed the description of this plugin. Whats does it do?
    __________________
    shustas is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-07-2009 , 11:50   Re: FlashProtect
    Reply With Quote #3

    Added a short description to the main post. I added one to the post information at the top, but it appears it's not working again on the forums.
    bl4nk is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-07-2009 , 13:32   Re: FlashProtect
    Reply With Quote #4

    Can you add notification to team that player flashed that and that?
    And how does it calculated like if I flash 1 teamplayer or how many needed, or how?
    __________________
    shustas is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-07-2009 , 14:20   Re: FlashProtect
    Reply With Quote #5

    Quote:
    Originally Posted by shustas View Post
    Can you add notification to team that player flashed that and that?
    Sure, I'll do that later today.

    Quote:
    Originally Posted by shustas View Post
    And how does it calculated like if I flash 1 teamplayer or how many needed, or how?
    Every time a player completely flashes a teammate, it will take the damage cvar and multiply that times the time they were flashed for (if it's greater than the duration cvar). So if a player flashes 3 players, he can be damaged up to 3 times at once.
    bl4nk is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-07-2009 , 17:20   Re: FlashProtect
    Reply With Quote #6

    ok sounds nice, notification would be really helpfull
    __________________
    shustas is offline
    Molli
    SourceMod Donor
    Join Date: Aug 2007
    Location: Finland
    Old 06-11-2009 , 07:38   Re: FlashProtect
    Reply With Quote #7

    Its was 1 vs 2.
    Another ct throws flash and this happend:

    slayed.

    [SM] You flashed PuLlÁpOí|<a for 3.66 seconds.
    [SM] You flashed ★ Molli for 3.65 seconds.
    [SM] You flashed +pallo for 3.66 seconds.
    [SM] You flashed Rasta ﭏ١١٢ for 3.66 seconds.
    [SM] You flashed Sokee Ninja for 3.65 seconds.
    [SM] You flashed Kakkis for 3.66 seconds.

    all spec counted too?

    Last edited by Molli; 06-11-2009 at 10:29.
    Molli is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 06-11-2009 , 12:15   Re: FlashProtect
    Reply With Quote #8

    when you spec somebody you get flashed as well with your spec player. Ye he needs to filter those out
    __________________
    shustas is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-11-2009 , 19:41   Re: FlashProtect
    Reply With Quote #9

    Updated to Version 1.1.0
    bl4nk is offline
    Molli
    SourceMod Donor
    Join Date: Aug 2007
    Location: Finland
    Old 06-12-2009 , 02:09   Re: FlashProtect
    Reply With Quote #10

    Testing.
    Molli is offline
    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 18:38.


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