Raised This Month: $89 Target: $400
 22% 

[L4D/2] Black and White Notifier


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarkNoghri
Member
Join Date: Mar 2009
Plugin ID:
1202
Plugin Version:
1.31
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    183 
    Plugin Description:
    Prints a notice when someone goes black and white
    Old 10-04-2009 , 02:46   [L4D/2] Black and White Notifier
    Reply With Quote #1

    The purpose of this plugin is to notify certain players whether or not someone is black and white. Right now, it just prints a single notice to the chat box (or hint box) every time.

    Cvars:
    l4d_bandw_notice - 0 turns notifications off, 1 notifies survivors, 2 notifies all, 3 notifies infected. Defaults to 1.
    l4d_bandw_type- 0 prints to chat, 1 displays hint box. Defaults to 1.
    l4d_bandw_glow- 0 turns glow off, 1 turns glow on. Defaults to OFF.

    Thanks to madcap for starting this over here.
    Thanks to leiftiger for updating this for L4D2 while I was finishing up the last school semester.

    In future, I hope to get this working so that that there's a constant status on the side of the screen, but right now, this being my first plugin, I'd like to make sure it works as is.

    Changelog:
    1.1- Changed cvar settings.
    1.11- Hopefully fixed an error with client 0.
    1.2- Added option (now default) to use hint boxes instead, since they're more noticeable. Thanks leiftiger for the idea.
    1.2.1- Fixed version number displaying correctly in sm list.
    1.3- Officially updated to support L4D2, and added infected only notification.
    1.31- Tentatively added a white glow to black and white survivors. See cvar for details.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_blackandwhite.sp - 9494 views - 7.7 KB)

    Last edited by DarkNoghri; 02-21-2010 at 16:26.
    DarkNoghri is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 10-04-2009 , 03:40   Re: [L4D] Black and White Notifier
    Reply With Quote #2

    Just going by general coding standards, shouldn't 0 be off?
    __________________
    msleeper is offline
    leiftiger
    Junior Member
    Join Date: Oct 2009
    Old 10-04-2009 , 12:42   Re: [L4D] Black and White Notifier
    Reply With Quote #3

    Really great plugin, I changed mine to display hint messages cause I thought that was better.
    leiftiger is offline
    Gunblazer 42
    Junior Member
    Join Date: Apr 2009
    Old 10-04-2009 , 14:16   Re: [L4D] Black and White Notifier
    Reply With Quote #4

    Wouldn't it be a bit more the norm to have the off function be 0, 1 for Survs, and 2 for everyone? Not that I'm complaining, of course.
    Gunblazer 42 is offline
    triggerman
    Senior Member
    Join Date: Jun 2009
    Old 10-04-2009 , 14:25   Re: [L4D] Black and White Notifier
    Reply With Quote #5

    0 should probably turn it off, with 1 for survivors only and 2 for everyone.
    triggerman is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 10-04-2009 , 16:54   Re: [L4D] Black and White Notifier
    Reply With Quote #6

    Quote:
    Originally Posted by triggerman View Post
    0 should probably turn it off, with 1 for survivors only and 2 for everyone.
    QFT it's quite confusing...
    LTR.2 is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 10-04-2009 , 19:10   Re: [L4D] Black and White Notifier
    Reply With Quote #7

    Don't everyone jump on me at once.

    It does make more sense that way, and it should work that way now. When I first coded it, it's just that turning it off was an afterthought, so I just tacked on another number.

    Leiftiger, what exactly do you mean by hint messages?
    DarkNoghri is offline
    Inker
    SourceMod Donor
    Join Date: Dec 2008
    Old 10-04-2009 , 19:19   Re: [L4D] Black and White Notifier
    Reply With Quote #8

    Does it default to 0, 1, or 2
    Inker is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 10-04-2009 , 19:20   Re: [L4D] Black and White Notifier
    Reply With Quote #9

    I just reuploaded the file, it defaults to 1 now.
    DarkNoghri is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 10-04-2009 , 20:12   Re: [L4D] Black and White Notifier
    Reply With Quote #10

    this uses the chat?

    spammy don't you think?

    what about some kind of sign just above the HUD of the teammate on B&W mode?
    LTR.2 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 06:19.


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