added key for flymode - serverinfo sv_allowflymode 1 to turn on the

jetpack for Mega2k.  This is NOT the final name for the key and you won't
be able to change it after I talk to Ambush (Mega2k should set it for you
I hope..)
This commit is contained in:
Joseph Carter 2000-05-15 01:42:30 +00:00
parent a7b5176e68
commit a323e4b5a7

View file

@ -549,10 +549,17 @@ void SV_UpdateClientStats (client_t *client)
// stuff the sigil bits into the high bits of items for sbar
stats[STAT_ITEMS] = (int)ent->v.items | ((int)pr_global_struct->serverflags << 28);
// Extensions to the QW 2.40 protocol for MegaTF --KB
// Extensions to the QW 2.40 protocol for Mega2k --KB
stats[STAT_VIEWHEIGHT] = (int)ent->v.view_ofs[2];
// FIXME: this should become a * key! --KB
if (ent->v.movetype == MOVETYPE_FLY && !atoi(Info_ValueForKey
(svs.info, "sv_allowflymode")))
ent->v.movetype = MOVETYPE_WALK;
stats[STAT_FLYMODE] = (ent->v.movetype == MOVETYPE_FLY);
for (i=0 ; i<MAX_CL_STATS ; i++)
if (stats[i] != client->stats[i])
{