AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   White lighting for black and white players (https://forums.alliedmods.net/showthread.php?t=331953)

Gold Fish 04-15-2021 10:56

White lighting for black and white players
 
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.

Marttt 04-15-2021 11:58

Re: White lighting for black and white players
 
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)

Dragokas 04-26-2021 13:36

Re: White lighting for black and white players
 
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).


All times are GMT -4. The time now is 17:48.

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