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]);
}
}