Skip to content

Commit

Permalink
CA/WIPEOUT: send player tracking info to client
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-qw committed Dec 7, 2023
1 parent 4f2335b commit dfd2508
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clan_arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ void CA_SendTeamInfo(gedict_t *t)
int kills;
int deaths;
int max_deaths;
int track_target;
gedict_t *p, *s;
char *tm, *nick;

Expand Down Expand Up @@ -751,10 +752,11 @@ void CA_SendTeamInfo(gedict_t *t)

kills = bound(0, (int)p->round_kills, 999);
deaths = bound(0, (int)p->round_deaths, 999);
track_target = p->track_target ? NUM_FOR_EDICT(p->track_target) : -1;

stuffcmd(t, "//cainfo %d %d %d %d %d %d %d \"%s\" %d %d %d %d %d %d %d %d %d\n", cl,
stuffcmd(t, "//cainfo %d %d %d %d %d %d %d \"%s\" %d %d %d %d %d %d %d %d %d %d\n", cl,
origin0, origin1, origin2, h, a, items, nick, shells, nails, rockets, cells,
camode, deadtype, timetospawn, kills, deaths);
camode, deadtype, timetospawn, kills, deaths, track_target);
}
}

Expand Down

0 comments on commit dfd2508

Please sign in to comment.