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

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


Post New Thread Reply   
 
Thread Tools Display Modes
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 01-05-2023 , 20:06   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #21

It's good, I only found 2 errors.
1.- When a special infected is eliminated, the name of the player who carried out the murder does not appear, only "X" HUNTER appears as attached in the image

2.- When I add it to my server, x/32 slots appear, and not the ones I have configured with cvar in server.cfg, and for some strange reason only 7 players can enter, even though I have it configured in 20, only 7 enter ._.

1.-


2.-
__________________
→MY STEAM PROFILE←

DISCORD: Asphyxia#9797

Sorry for my bad English
AsphyxiaJLSA is offline
maclarens
Senior Member
Join Date: Jul 2020
Location: Kz
Old 01-06-2023 , 05:24   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #22

Quote:
Originally Posted by AsphyxiaJLSA View Post
It's good, I only found 2 errors.
1.- When a special infected is eliminated, the name of the player who carried out the murder does not appear, only "X" HUNTER appears as attached in the image

2.- When I add it to my server, x/32 slots appear, and not the ones I have configured with cvar in server.cfg, and for some strange reason only 7 players can enter, even though I have it configured in 20, only 7 enter ._.

1.-


2.-
yes he change the code and aguess forget somthing
and add to hook
HookEvent("player_incapacitated", Events, EventHookMode_Pre);

for disable tank incap broadcast


Last edited by maclarens; 01-06-2023 at 05:24.
maclarens is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 04-15-2023 , 14:08   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #23

Quote:
Originally Posted by AsphyxiaJLSA View Post
It's good, I only found 2 errors.
1.- When a special infected is eliminated, the name of the player who carried out the murder does not appear, only "X" HUNTER appears as attached in the image

2.- When I add it to my server, x/32 slots appear, and not the ones I have configured with cvar in server.cfg, and for some strange reason only 7 players can enter, even though I have it configured in 20, only 7 enter ._.

1.-


2.-
1. Actually when victim killed by ForcePlayerSuscide or kill by world, no accurate killer can get. Only entity 0(world). So i don't add killer in this situation.
2. I forget to said that this plugin need L4DTool ext to get the maxplayer. If you don't install it or don't set the "sv_maxplayer" cvar, plugin will get the MaxClients count as the maxplayer.
LinLinLin is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 04-15-2023 , 14:21   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #24

new version has slove this problem.
LinLinLin is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 04-15-2023 , 14:24   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #25

no, it still has some problem if the num is larger than 3.
my solution is catch the ")" character and get the index in string, since bot name always start will this before his type.
it will be this code
PHP Code:
    if( IsFakeClient(victim) )
    {
        
FormatEx(victim_name,sizeof(victim_name),"%N",victim);
        
int index StrContains(victim_name,")");
        if( 
index != -)
            
FormatEx(victim_name,sizeof(victim_name),"%s",victim_name[index 1]);
    } 
LinLinLin is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-16-2023 , 03:15   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #26

LinLinLin, maybe it's better to do it this way?
PHP Code:
    if(IsFakeClient(victim))
    {
        
FormatEx(victim_namesizeof(victim_name), "%N"victim);
        if(
victim_name[0] == '(' && victim_name[2] == ')')
            
Format(victim_namesizeof(victim_name), "%s"victim_name[3]);
    } 
__________________

Last edited by Grey83; 04-16-2023 at 03:17.
Grey83 is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 04-16-2023 , 03:42   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #27

no, if it is in (10) still cause problem.
we only need get ")" character because victim bot always like (x)hunter.
StrContains() return when it get the first substring, it doesn't go through the whole string.
LinLinLin is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-16-2023 , 04:26   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #28

Quote:
Originally Posted by LinLinLin View Post
no, if it is in (10) still cause problem.
PHP Code:
    if(IsFakeClient(victim))
    {
        
FormatEx(victim_namesizeof(victim_name), "%N"victim);
        if(
victim_name[0] == '(' && (victim_name[2] == ')' || victim_name[3] == ')'))
            
Format(victim_namesizeof(victim_name), "%s"victim_name[(victim_name[2] == ')' 4)]);
    } 
__________________
Grey83 is offline
chungocanh12
Member
Join Date: Apr 2023
Location: Việt Nam
Old 05-18-2023 , 03:18   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #29

Hi LinLinLin, can you makeit to show hud like this? I see it in random server
Attached Thumbnails
Click image for larger version

Name:	hud.jpg
Views:	140
Size:	85.2 KB
ID:	200607  
chungocanh12 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-27-2023 , 14:33   Re: [L4D2]HUD with player list & kill list info like cs
Reply With Quote #30

I think flag is wrong?

PHP Code:
#define PLAYER_LIST 1 << 0 //1
#define KILL_LIST 1 << 1 //2
#define HOST_LIST 1 << 2 //4
#define MAXPLAYER_LIST 1 << 3 //8 
Code:
"l4d2_show_which_list" (up 1.0.2)
-description: display which list on screen. 0 = off, 1 = show hostname, 2 = show player list, 4 = show kill list 8 = Current player/Max PLAYER. Add the count to show more of them.
-default: 15
__________________

Last edited by HarryPotter; 05-27-2023 at 14:35.
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 19:55.


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