mirror of
https://github.com/nzp-team/quakec.git
synced 2025-04-15 06:21:16 +00:00
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:
parent
ae943832f7
commit
c196eca97f
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue