mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
Give is more fun on dedicated servers now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@710 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d36eac6baf
commit
ab3644ddf4
1 changed files with 17 additions and 2 deletions
|
@ -348,7 +348,14 @@ void SV_Give_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SV_SetPlayer ())
|
if (!SV_SetPlayer ())
|
||||||
|
{
|
||||||
|
int oldself;
|
||||||
|
oldself = pr_global_struct->self;
|
||||||
|
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, sv_player);
|
||||||
|
Con_Printf("Result: %s\n", svprogfuncs->EvaluateDebugString(svprogfuncs, Cmd_Args()));
|
||||||
|
pr_global_struct->self = oldself;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!svprogfuncs)
|
if (!svprogfuncs)
|
||||||
return;
|
return;
|
||||||
|
@ -383,7 +390,15 @@ void SV_Give_f (void)
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
sv_player->v.ammo_cells = v;
|
sv_player->v.ammo_cells = v;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
int oldself;
|
||||||
|
oldself = pr_global_struct->self;
|
||||||
|
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, sv_player);
|
||||||
|
Con_Printf("Result: %s\n", svprogfuncs->EvaluateDebugString(svprogfuncs, Cmd_Args()));
|
||||||
|
pr_global_struct->self = oldself;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -876,7 +891,7 @@ void SV_Status_f (void)
|
||||||
Con_Printf ("cpu utilization : %3i%%\n",(int)cpu);
|
Con_Printf ("cpu utilization : %3i%%\n",(int)cpu);
|
||||||
Con_Printf ("avg response time: %i ms\n",(int)avg);
|
Con_Printf ("avg response time: %i ms\n",(int)avg);
|
||||||
Con_Printf ("packets/frame : %5.2f\n", pak); //not relevent as a limit.
|
Con_Printf ("packets/frame : %5.2f\n", pak); //not relevent as a limit.
|
||||||
|
|
||||||
// min fps lat drp
|
// min fps lat drp
|
||||||
if (columns < 80)
|
if (columns < 80)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue