AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D/2] Black and White Notifier (https://forums.alliedmods.net/showthread.php?t=105380)

DarkNoghri 10-04-2009 02:46

[L4D/2] Black and White Notifier
 
1 Attachment(s)
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.

msleeper 10-04-2009 03:40

Re: [L4D] Black and White Notifier
 
Just going by general coding standards, shouldn't 0 be off?

leiftiger 10-04-2009 12:42

Re: [L4D] Black and White Notifier
 
Really great plugin, I changed mine to display hint messages cause I thought that was better.

Gunblazer 42 10-04-2009 14:16

Re: [L4D] Black and White Notifier
 
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.

triggerman 10-04-2009 14:25

Re: [L4D] Black and White Notifier
 
0 should probably turn it off, with 1 for survivors only and 2 for everyone.

LTR.2 10-04-2009 16:54

Re: [L4D] Black and White Notifier
 
Quote:

Originally Posted by triggerman (Post 952330)
0 should probably turn it off, with 1 for survivors only and 2 for everyone.

QFT it's quite confusing...

DarkNoghri 10-04-2009 19:10

Re: [L4D] Black and White Notifier
 
Don't everyone jump on me at once. :P

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?

Inker 10-04-2009 19:19

Re: [L4D] Black and White Notifier
 
Does it default to 0, 1, or 2

DarkNoghri 10-04-2009 19:20

Re: [L4D] Black and White Notifier
 
I just reuploaded the file, it defaults to 1 now.

LTR.2 10-04-2009 20:12

Re: [L4D] Black and White Notifier
 
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?


All times are GMT -4. The time now is 22:06.

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