This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D2]HUD with player list & kill list info like cs


Post New Thread Reply   
 
Thread Tools Display Modes
Mika Misori
Senior Member
Join Date: Sep 2022
Old 05-28-2023 , 14:26   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #31

Quote:
Originally Posted by Grey83 View Post
PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_death"Event_DeathEventHookMode_Pre);
}

public 
Action Event_Death(Event event, const char[] namebool dontBroadcast)
{
    
event.BroadcastDisabled true;
    return 
Plugin_Changed;

Finally, I've been looking for this for about a year! Thank you so much.

Is it possible to completely disable the entire killfeed?
Right now the following red and white messages remain: saved, healed, incapacitated, etc...
Is there any way to remove those as well, please?
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2023-05-28 212132.png
Views:	143
Size:	75.2 KB
ID:	200717   Click image for larger version

Name:	Screenshot 2023-05-28 212145.png
Views:	106
Size:	35.3 KB
ID:	200718  
Mika Misori is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-29-2023 , 02:01   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #32

Quote:
Originally Posted by Mika Misori View Post
Finally, I've been looking for this for about a year! Thank you so much.

Is it possible to completely disable the entire killfeed?
Right now the following red and white messages remain: saved, healed, incapacitated, etc...
Is there any way to remove those as well, please?
Maybe this will help:
PHP Code:
public void OnPluginStart()
{
    
HookEvent("heal_success"Event_HideEventHookMode_Pre);
    
HookEvent("player_death"Event_HideEventHookMode_Pre);
    
HookEvent("player_incapacitated"Event_HideEventHookMode_Pre);
    
HookEvent("revive_success"Event_HideEventHookMode_Pre);
    
HookEvent("survivor_rescued"Event_HideEventHookMode_Pre);
}

public 
Action Event_Hide(Event event, const char[] namebool dontBroadcast)
{
    
event.BroadcastDisabled true;
    return 
Plugin_Changed;

__________________
Grey83 is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 05-29-2023 , 13:08   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #33

Quote:
Originally Posted by Grey83 View Post
Maybe this will help:
PHP Code:
public void OnPluginStart()
{
    
HookEvent("heal_success"Event_HideEventHookMode_Pre);
    
HookEvent("player_death"Event_HideEventHookMode_Pre);
    
HookEvent("player_incapacitated"Event_HideEventHookMode_Pre);
    
HookEvent("revive_success"Event_HideEventHookMode_Pre);
    
HookEvent("survivor_rescued"Event_HideEventHookMode_Pre);
}

public 
Action Event_Hide(Event event, const char[] namebool dontBroadcast)
{
    
event.BroadcastDisabled true;
    return 
Plugin_Changed;

Thank you so much!
It looks like all the red messages are gone, but there are still white messages when survivors care about each other, for example: Bill saved, hit, healed, protected, gave health to Zoey...

It would be great if they could be removed, too. I tried adding player_hurt event, but that didn't help.
Mika Misori is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-29-2023 , 14:02   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #34

Mika Misori, you can look for the events you need in this file: .../left4dead2/pak01_dir.vpk ==> resource/modevents.res
or there: https://wiki.alliedmods.net/Left_4_Dead_2_Events
__________________
Grey83 is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 05-30-2023 , 13:11   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #35

Quote:
Originally Posted by Grey83 View Post
Mika Misori, you can look for the events you need in this file: .../left4dead2/pak01_dir.vpk ==> resource/modevents.res
or there: https://wiki.alliedmods.net/Left_4_Dead_2_Events
Thank you! I found the event responsible for the white messages in this thread:
https://forums.alliedmods.net/showthread.php?t=116566

This is award_earned event. I added it to the plugin, checked that the event is hooked (when it happens wrote in the chat via PrintToChatAll), but the killfeed's white messages in the game are still displayed.
I mean, event.BroadcastDisabled = true doesn't turn them off.
Full code:
Spoiler


Any idea how else to try to disable these messages? Please.
Mika Misori is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 06-12-2023 , 07:34   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #36

Quote:
Originally Posted by Elenora View Post
That amazing, but still message protect team. Can you post the last event name?
Look at my post above — it's an event award_earned.
Mika Misori is offline
Elenora
New Member
Join Date: Oct 2022
Old 06-12-2023 , 07:56   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #37

Quote:
Originally Posted by Mika Misori View Post
Look at my post above — it's an event award_earned.
Sry. Thanks verry much

Last edited by Elenora; 06-12-2023 at 07:59.
Elenora is offline
Binhz109
Junior Member
Join Date: May 2022
Old 07-05-2023 , 13:14   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #38

half of plugin won't work
- Headshot count
- kill list info

Last edited by Binhz109; 07-05-2023 at 13:14.
Binhz109 is offline
Neme_Nemi
Junior Member
Join Date: Sep 2023
Old 02-16-2024 , 00:12   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #39

I installed the plugin and it work but the hud keep blinking then eventually stop showing.

Last edited by Neme_Nemi; 02-16-2024 at 00:22.
Neme_Nemi is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-17-2024 , 03:06   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #40

Quote:
Originally Posted by Neme_Nemi View Post
I installed the plugin and it work but the hud keep blinking then eventually stop showing.
https://github.com/fbef0102/L4D2-Plu...d2_cs_kill_hud
__________________
HarryPotter 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 13:54.


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