mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add a message into the chat buffer whenever a player is killed, as well as define some dummy names for the fake AI players
git-svn-id: https://svn.eduke32.com/eduke32@146 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4a380c2b4a
commit
834d2c9a9b
3 changed files with 13 additions and 25 deletions
|
@ -355,4 +355,6 @@ extern void updatenames(void);
|
|||
extern void sendboardname(void);
|
||||
extern void sendquit(void);
|
||||
|
||||
extern void adduserquote(char *daquote);
|
||||
|
||||
#endif // __funct_h__
|
||||
|
|
|
@ -7933,7 +7933,8 @@ void checkcommandline(int argc,char **argv)
|
|||
ud.m_respawn_monsters = ud.respawn_monsters = 1;
|
||||
ud.m_respawn_items = ud.respawn_items = 1;
|
||||
ud.m_respawn_inventory = ud.respawn_inventory = 1;
|
||||
|
||||
for(j=numplayers;j<ud.multimode;j++)
|
||||
Bsprintf(ud.user_name[j],"PLAYER %d",j+1);
|
||||
break;
|
||||
case 'r':
|
||||
case 'R':
|
||||
|
|
|
@ -3450,40 +3450,25 @@ void processinput(short snum)
|
|||
ps[p->frag_ps].frag++;
|
||||
frags[p->frag_ps][snum]++;
|
||||
|
||||
if(ud.user_name[p->frag_ps][0])
|
||||
if(snum == screenpeek)
|
||||
{
|
||||
if(snum == screenpeek)
|
||||
{
|
||||
Bsprintf(fta_quotes[115],"KILLED BY %s",&ud.user_name[p->frag_ps][0]);
|
||||
FTA(115,p);
|
||||
}
|
||||
else
|
||||
{
|
||||
Bsprintf(fta_quotes[116],"KILLED %s",&ud.user_name[snum][0]);
|
||||
FTA(116,&ps[p->frag_ps]);
|
||||
}
|
||||
Bsprintf(fta_quotes[115],"KILLED BY %s",&ud.user_name[p->frag_ps][0]);
|
||||
FTA(115,p);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(snum == screenpeek)
|
||||
{
|
||||
Bsprintf(fta_quotes[115],"KILLED BY PLAYER %d",p->frag_ps);
|
||||
FTA(115,p);
|
||||
}
|
||||
else
|
||||
{
|
||||
Bsprintf(fta_quotes[116],"KILLED PLAYER %d",snum);
|
||||
FTA(116,&ps[p->frag_ps]);
|
||||
}
|
||||
Bsprintf(fta_quotes[116],"KILLED %s",&ud.user_name[snum][0]);
|
||||
FTA(116,&ps[p->frag_ps]);
|
||||
}
|
||||
Bsprintf(tempbuf,"%s WAS KILLED BY %s",&ud.user_name[snum][0],&ud.user_name[p->frag_ps][0]);
|
||||
adduserquote(tempbuf);
|
||||
}
|
||||
else p->fraggedself++;
|
||||
|
||||
if(myconnectindex == connecthead)
|
||||
{
|
||||
unsigned char tmpbuf[2048];
|
||||
Bsprintf(tmpbuf,"frag %d killed %d\n",p->frag_ps+1,snum+1);
|
||||
sendscore(tmpbuf);
|
||||
Bsprintf(tempbuf,"frag %d killed %d\n",p->frag_ps+1,snum+1);
|
||||
sendscore(tempbuf);
|
||||
// printf(tempbuf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue