Raised This Month: $ Target: $400

White lighting for black and white players

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Gold Fish
Join Date: Mar 2020
Old 04-15-2021 , 10:56   White lighting for black and white players
Reply With Quote #1

Hello, can you advise the plugin for the white glow to work correctly on players who are on the brink of death? There is such a bwBox box, but the code there is very old and there are situations when the glow is not displayed or, on the contrary, does not disappear, for example, if you treat a player from the admin menu. or through my own command. I would like to know what the code should look like in order to correctly capture the moment when it is black and white.

Thanks in advance.

PHP Code:
public OnClientConnect(int Client) {

Last edited by Gold Fish; 04-15-2021 at 10:57.
Gold Fish is offline
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-15-2021 , 11:58   Re: White lighting for black and white players
Reply With Quote #2

I think these both works fine:



But if are having some mess with the glow color, maybe is a conflict between plugins (usually time between checks)
Marttt is offline
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 04-26-2021 , 13:36   Re: White lighting for black and white players
Reply With Quote #3

Gold Fish

PHP Code:
if( GetEntProp(clientProp_Send"m_currentReviveCount") == FindConVar("survivor_max_incapacitated_count").IntValue )
// Player is B/W

Or if you want hook-method, use "revive_success" and "heal_success" to check that.

You may also want to check this plugin: Heartbeat (Revive Fix - Post Revive Options) (there are some useful natives and bug fixes).
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas is offline

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 20:45.

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