Raised This Month: $99 Target: $400
 24% 

[L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Plugin ID:
6671
Plugin Version:
1.56
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Creates a way for players to be aware when someone is about to meet death.
    Old 08-06-2019 , 06:03   [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #1

    Description:

    Wondering if someone in the team is in their last life? Tired of having to say "I'm about to die here. I need a medkit or someone to heal me." through the chat or the microphone? Not anymore.

    This plugin works differently for both L4D games. In L4D1, it creates a white glow around the survivor who's going to die while in L4D2, it places a grave on the top of their heads and giving a white aura around it to help other players notice faster.

    Using this will also enable the ability to give auras to players in the case of the server having some kind of a VIP reward plugin or something similar to that installed.

    Unfortunately, the new method in L4D2 doesn't support all of the custom campaigns as a few of them will provide unexpected results due to the way the maps were made. It has support for Lux's [L4D2]AdaWong Survivor plugin though.

    ConVars:
    • black_and_white_notifier_version (Default: 1.56)
      |Version of this plugin.|
    • bawn_notify [0 / 1] (Default:1)
      |Enable/disable notifications that come from this plugin.|
    • bawn_notify_mode [0 / 1] (Default: 1)
      |How should the plugin print out its notifications? 0 = Through chat texts, 1 = Through hint boxes.|
    • bawn_left_announce [0 /1] (Default: 1)
      |Enable/disable the announcements of other things related in the notifications.|
    • bawn_left_counter [0 / 1] (Default: 1)
      |Enable/disable the number of survivors alive when the notifications get printed out.|

    Commands:
    None.

    Bugs:
    None.

    Installation:
    1. Get the .smx file and put in your SourceMod's plugin folder.

    Notes:
    • If recompiling, the glow.inc file has been included in the attachments below just in case.
    • In Questionable Ethics and Suicide Blitz 2 campaigns, it reverts back to the old method of giving a white aura around the survivor's (who's in the B/W state) body.

      The reason why is because the new method spawns a different entity model for those maps and making the clients crash.

    Credits:

    * DarkNoghri - For the original [L4D/2] Black and White Notifier concept.
    * th3y - For their [L4D1] Witch Glow plugin, which what became as the inspiration for the new method for L4D1.
    * Silvers - For the idea of using the Think function from SDKHooks to make the glow entity for L4D1 be processed smoothly and better.
    * Lux - For the idea of using the PostThinkPost function from SDKHooks in order for the glow entity for L4D1 to animate accurately.

    Changelog:

    08-06-2019:
    X First release.
    + Now precaches the grave model when maps are loaded. (My bad.)
    + Moved from Think to PostThinkPost for most accurate animation of the glow entity in L4D1. (Thanks Lux!)
    Attached Files
    File Type: inc glow.inc (3.0 KB, 46 views)
    File Type: sp Get Plugin or Get Source (black_and_white_notifier.sp - 52 views - 17.0 KB)
    File Type: smx black_and_white_notifier.smx (14.5 KB, 37 views)

    Last edited by cravenge; 08-07-2019 at 22:51.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Black Hole
    Old 08-06-2019 , 06:07   Re: [L4D / L4D2] Black and White Notifier (Reloaded) | 1.54 : August 6, 2019 |
    Reply With Quote #2

    If you can provide screenshots after testing the plugin, you can post them here so I can add them to the main thread and credit you.
    cravenge is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-06-2019 , 08:23   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #3

    Hello this looks good and clean

    You wanna use PostThinkPost, because player animations are updated in PostThink, when using Just think all your animation checks for l4d1 are 1tick behind.

    PHP Code:
    public void OnClientPutInServer(int client)
    {
        if (!
    bIsL4D1)
        {
            return;
        }
        
        
    SDKHook(clientSDKHook_PostThinkPostOnThink);

    Keep it up.
    __________________
    Lux is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Black Hole
    Old 08-06-2019 , 08:30   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #4

    Quote:
    Originally Posted by Lux View Post
    Hello this looks good and clean

    You wanna use PostThinkPost, because player animations are updated in PostThink, when using Just think all your animation checks for l4d1 are 1tick behind.

    PHP Code:
    public void OnClientPutInServer(int client)
    {
        if (!
    bIsL4D1)
        {
            return;
        }
        
        
    SDKHook(clientSDKHook_PostThinkPostOnThink);

    Keep it up.
    Ah, thanks for the suggestion.
    I'll try to compare the difference between the two right now.
    cravenge is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-06-2019 , 08:34   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #5

    It maybe so small you wont notice, it is useful to know those things call order can be important to get some stuff done
    __________________
    Lux is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Black Hole
    Old 08-06-2019 , 08:57   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #6

    A minor update has been released! Kindly check the changelog for further details!

    P.S: Who knew such a small change could make a such a big difference? Oh wait, I think there's a saying like that.

    Last edited by cravenge; 08-06-2019 at 08:58.
    cravenge is offline
    Voevoda
    New Member
    Join Date: Aug 2016
    Old 08-10-2019 , 11:19   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #7

    bug

    how to make a grave on your head


    Last edited by Voevoda; 08-10-2019 at 11:26.
    Voevoda is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Black Hole
    Old 08-11-2019 , 06:00   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #8

    Quote:
    Originally Posted by Voevoda View Post
    bug

    how to make a grave on your head

    Hello, this is not a bug at all. It was done on purpose for some players tend to play with FPS boosts such as making the screen still look normal even in B/W state.
    cravenge is offline
    Voevoda
    New Member
    Join Date: Aug 2016
    Old 08-11-2019 , 17:36   Re: [L4D/L4D2] Black and White Notifier (Reloaded) | 1.55 : August 6, 2019 |
    Reply With Quote #9

    Quote:
    Originally Posted by cravenge View Post
    Hello, this is not a bug at all. It was done on purpose for some players tend to play with FPS boosts such as making the screen still look normal even in B/W state.
    Thanks for the answer. Well, if you can make a grave on my head, I will be grateful.
    Voevoda 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 05:41.


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