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

[Cs:s] Fix flashbang flash duration bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
2699
Plugin Version:
0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fix flashbang flash duration bug
    Old 12-05-2011 , 10:30   [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #1

    [Cs:s] Fix flashbang flash duration bug

    When player get flashed twice or more exactly same flash duration, it not increase player blind time or worse, not get flashed!



    What this plugin do:
    - it hook event player_blind to get player who get flashed
    - It change flash duration time little each time, random between +0.01 - 0.1

    cvars
    Quote:
    sm_fix_flash "1"
    //Enable plugin fix flashbang flash duration
    Comment
    if this plugin conflict other plugins or get trouble. So others can know.


    *edit
    Another version = css_fix_flash_bug_log version 0.15 For those who want follow would this bug happen.
    - This version check player previous flash duration to new one.
    When durations match, it log in file ...addons/soucemod/logs/css_flash_fix.log
    L 12/06/2011 - 07:41:13: Player Bacardi BF3<62><STEAM_0:1:14xxxx><> blinded same flash duration 3.827183
    Then make little fix.

    So use either plugin, NOT BOTH
    Attached Files
    File Type: sp Get Plugin or Get Source (css_fix_flash_bug.sp - 2327 views - 1.3 KB)
    File Type: sp Get Plugin or Get Source (css_fix_flash_bug_log.sp - 1480 views - 2.2 KB)
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 12-06-2011 at 01:00.
    Bacardi is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 12-05-2011 , 18:09   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #2

    Never knew about this bug nice fix.
    __________________
    Fearts is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 12-05-2011 , 18:18   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #3

    wow - nice find and fix - hopefully valve addresses this issue.
    TnTSCS is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 12-05-2011 , 23:08   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #4

    Holyshitsauce.

    Nice find (and correction) Bacardi.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 12-05-2011 at 23:09.
    RedSword is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 12-05-2011 , 23:46   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #5

    This is really rare situation after all.
    But clever players could find good place where he flash itself first time then throw second flashbang when someone is coming.

    I could add one feature...
    m_flFlashDuration storage previous flash duration before new one, and when player get killed or spawn it reset 0.000
    So check when old and new flash duration are same and log these action, then fix.
    For curiosity look would this happen.
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 12-06-2011 at 00:12. Reason: I hate my bad english
    Bacardi is offline
    duydangle
    Senior Member
    Join Date: May 2010
    Old 12-06-2011 , 01:38   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #6

    OMG this is the reason why in some cases some people don't get flashes.
    duydangle is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 12-07-2011 , 14:14   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #7

    Oh, nice find!
    __________________
    Peace-Maker is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 12-12-2011 , 13:55   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #8

    Thanks for the great fix Bacardi. Oh VALVe... -.-
    GrO is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 12-12-2011 , 16:07   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #9

    what's not so funny is it isn't that uncommon to get hit with a flash that has the same duration as a previous flash... it's happened to me numerous times where just the pop near the flashbang went off but I wasn't flashed...

    thanks again for this fix
    TnTSCS is offline
    nightrider
    SourceMod Donor
    Join Date: Dec 2008
    Old 02-06-2012 , 21:35   Re: [Cs:s] Fix flashbang flash duration bug
    Reply With Quote #10

    Thank you Bacardi
    __________________
    [SIGPIC][/SIGPIC] the pantless
    I am the Night Rider!, I'm a fuel-injected suicide machine.
    I am a rocker! I am a roller!, I am an out-of-controller!


    nightrider is offline
    Reply



    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 15:12.


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