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:
Spoike 2013-05-26 01:05:58 +00:00
parent 71207fce9b
commit 95188faec2

View file

@ -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;