Raised This Month: $214 Target: $400
 53% 

White lighting for black and white players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gold Fish
Member
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) {
    
KickClient(Client"sorry");


Last edited by Gold Fish; 04-15-2021 at 10:57.
Gold Fish is offline
Marttt
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:

https://forums.alliedmods.net/showthread.php?t=317956

https://forums.alliedmods.net/showthread.php?p=2612147

But if are having some mess with the glow color, maybe is a conflict between plugins (usually time between checks)
__________________
Marttt is offline
Dragokas
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 New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas 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 10:49.


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