Raised This Month: $12 Target: $400
 3% 

Solved Fade screen on kill causes bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 10-20-2023 , 23:07   Fade screen on kill causes bug
Reply With Quote #1

I call the function to fade screen when a player kills someone.

PHP Code:
fade_screen(c, const rgba[4])
{
      
message_begin(MSG_ONE_UNRELIABLE_screen_fade_msg_id, {000}, c);
      
write_short(1024);
      
write_short(512);
      
write_short(0);
      
write_byte(rgba[0]);
      
write_byte(rgba[1]);
      
write_byte(rgba[2]);
      
write_byte(rgba[3]);
      
message_end();

It works however when the player is full blinded, killing an enemy causes this effect to disappear. I know that blind effect is done with the same message (ScreenFade). Can we do something to prevent the screen from being cleared? I do not want to track "flashbang" ScreenFade messages to ignore "kill" ScreenFade messages following X seconds because sometimes glow can long for up to 10 seconds and at the last seconds it is barely visible.

Ideally, it would be another layer of glow (overlay). Unfortunately I tested this message with different flags and saw no differences.

Last edited by damage220; 10-23-2023 at 19:30.
damage220 is offline
Tote
Senior Member
Join Date: Jul 2023
Old 10-21-2023 , 08:12   Re: Fade screen on kill causes bug
Reply With Quote #2

use below
https://cscontrol.ru/load/server/plu...-ubiystve.html
https://amxservera.ru/cs-plugins/366...-ubijstve.html
Tote is offline
Old 10-21-2023, 13:30
Ace67
This message has been deleted by Ace67. Reason: W
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 10-21-2023 , 20:07   Re: Fade screen on kill causes bug
Reply With Quote #3

This plugin also clears white screen caused by flash.
damage220 is offline
Tote
Senior Member
Join Date: Jul 2023
Old 10-22-2023 , 06:09   Re: Fade screen on kill causes bug
Reply With Quote #4

ah you were saying it removes flash's fade i didnt understand
Tote is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-22-2023 , 07:38   Re: Fade screen on kill causes bug
Reply With Quote #5

Use task. eg: BadCamper.
DJEarthQuake is offline
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 10-23-2023 , 19:30   Re: Fade screen on kill causes bug
Reply With Quote #6

I decided to wait until flash effect disappear. It can take long but I do not see better option. Closed.
damage220 is offline
Reply



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 09:23.


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