Added code so csqc can see if a player has been ignored/vignored.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4374 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
71207fce9b
commit
95188faec2
1 changed files with 10 additions and 0 deletions
|
@ -2469,7 +2469,17 @@ static void QCBUILTIN PF_cs_getplayerkey (pubprogfuncs_t *prinst, struct globalv
|
|||
ret = buffer;
|
||||
sprintf(ret, "%i", (int)cl.players[pnum].entertime);
|
||||
}
|
||||
else if (!strcmp(keyname, "ignored")) //checks to see if a player has locally been set to ignored (for text chat)
|
||||
{
|
||||
ret = buffer;
|
||||
sprintf(ret, "%i", (int)cl.players[pnum].ignored);
|
||||
}
|
||||
#ifdef VOICECHAT
|
||||
else if (!strcmp(keyname, "vignored")) //checks to see this player's voicechat is ignored.
|
||||
{
|
||||
ret = buffer;
|
||||
sprintf(ret, "%i", (int)cl.players[pnum].vignored);
|
||||
}
|
||||
else if (!strcmp(keyname, "voipspeaking"))
|
||||
{
|
||||
ret = buffer;
|
||||
|
|
Loading…
Reference in a new issue