Kill Fade
Version: 1.7
Author: <VeCo>
Category: Fun Stuff
Modification: ALL
Description:
This plugin makes different screen fades when player kills somebody or get killed.
CVARs:
fade_victim_on
1/0 - Enables/Disables victim's fade
fade_victim_color "255 0 0" - Color of victim's fade. Default: red.
fade_victim_density 175 - Density of victim's fade. The value must be 0-255.
fade_victim_duration 1 - Duration of victim's fade in seconds.
fade_victim_hold_time 1 - Hold time of victim's fade in seconds.
fade_killer_on
1/0 - Enables/Disables killer's fade
fade_killer_color "0 255 0" - Color of killer's fade. Default: green.
fade_killer_density 175 - Density of killer's fade. The value must be 0-255.
fade_killer_duration 1 - Duration of killer's fade in seconds.
fade_killer_hold_time 1 - Hold time of killer's fade in seconds.
fade_victim_sound
1/0 - Enables/Disables victim's sound.
fade_killer_sound
1/0 - Enables/Disables killer's sound.
fade_hs_mode 1/
0 - Enables/Disables headshot mode.
The colors are in
RGB format!
Change log:- 1.0 - first release
- 1.1 - added a check if the player is connected
- 1.2 - added sounds for the victim and the killer and CVARs for them
- 1.3 - if you turn off the fade, the sound won't turn off too.
- 1.4 - different CVARs for density of killer's and victim's fade and added headshot mode.
- 1.5 - optimization
- 1.6 - added CVARs for duration and hold time of the fade
- 1.7 - optimization
Special thanks to:
--- @sourcehelp - for the idea for the killer's and victim's sounds
--- @rosenpetkov - for the idea for different CVARs for killer's and victim's fade density
--- @wwwhhheeeyyy - for the idea for the headshot mode
Plugin is tested by me(@<VeCo>) on version 1.8.0 and it works!