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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
LinLinLin
Senior Member
Join Date: Sep 2021
Plugin ID:
8305
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A hud to show some information on client screen.
    Old 11-27-2022 , 13:34   [L4D2]HUD with player list & kill list info like cs
    Reply With Quote #1

    Introduction:
    • A plugin whcih make L4D2 has the kill info like cs. Look at the attachment of picture you will know the final effect.

    Requirement:
    • L4DToolZ.ext
    • l4d2_ems_hud.inc
    hud.inc is already in the .7z file, you need install the L4DToolz extension and set the "sv_maxplayer" cvar to let plugin get the corrcet maxplayer count.

    Feature:
    • show the current player/max player on the top of left.
    • show your server host name in the middle of the top.
    • player will be list in the left side of the hud base on how many special they kill.
    • player in left side will blink when they dead.
    • kill list like cs in the right top whcih will show who dead and what the weapon is and is headshot or kill behind wall.

    Cvar:
    Code:
    "l4d2_max_player_list" 
    -description: how much player can be list in the left side of hud. max is 8.
    -default: 8
    
    "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


    Note:
    • becasuse ems hud position is base on the size of your game screen. i make this plugin in 1600*900 so if you playe the game under this size the hud will get narrow and couldn't show the entire info.
    • my hud.inc in 7z only can be used in sm 1.11.
    • a slot only can have 127 character.

    Specials Thank:
    • sorall who provides the inc of hud which can use the whole slot of ems hud.

    Update:
    Code:
    [2023-4-16]: 1.0.3
    1. fixed bug when player leave cause the player_list not correct.
    2. making no number in kill_list when victim is a bot.
    
    
    [2022-12-1]: 1.0.2
    1. add new cvar to select which part to show on screen.
    2. use enum struct to make code more object-oriented.
    enum struct HUD
    {
    	int slot;
    	int flag;
    	float pos[4];
    	char info[128];
    	void Place()
    	{
    		HUDSetLayout(this.slot, HUD_FLAG_TEXT|this.flag, this.info);
    		HUDPlace(this.slot, this.pos[0], this.pos[1], this.pos[2], this.pos[3]);
    	}
    }
    Attached Thumbnails
    Click image for larger version

Name:	`P`(8JYA%DPDVWV4UZ6(5DN.jpg
Views:	2383
Size:	80.1 KB
ID:	198187   Click image for larger version

Name:	SR5O{H$D2NIR@Z{M~F@8%JC.jpg
Views:	2068
Size:	92.7 KB
ID:	198191  
    Attached Files
    File Type: 7z l4d2_hud_kill_list.7z (14.8 KB, 544 views)

    Last edited by LinLinLin; 04-15-2023 at 14:17.
    LinLinLin is offline
     



    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 00:10.


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