Allow up to 8 players client-side:

- Allow 5-8th players to have nametags & score items
- Increase size of revive_icons array to 8 (fixes a crash)

This does not fix 8 players server-side, but right now the code I have for server-side is spaghetti so I'm not going to burden y'all with that.
This commit is contained in:
ToasterPanic 2025-02-08 21:41:46 +00:00
parent ae943832f7
commit c196eca97f
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ var struct revive_s {
float draw;
float timer;
float state;
} revive_icons[4]; // MAX_CLIENTS
} revive_icons[8]; // MAX_CLIENTS
float weaponframetime;
float weapon2frametime;

View file

@ -1654,7 +1654,7 @@ void() HUD_Scores =
Draw_String([g_width/2 + (header_x_pos - getTextWidth("Headshots", scoreboard_text_size)/2), 180], "Headshots", [scoreboard_text_size, scoreboard_text_size], TEXTCOLOR, 1, 0);
header_x_pos += header_x_increment;
for (int i = 0; i < 4; i = i + 1)
for (int i = 0; i < 8; i = i + 1)
{
float player_number = getplayerkeyfloat(i, "client_index");
entity client = findfloat(world, playernum, player_number);