Small stuph.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@297 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1ba53e017e
commit
5fbe74b582
31 changed files with 884 additions and 528 deletions
|
@ -2617,6 +2617,8 @@ void SV_Impulse_f (void)
|
|||
|
||||
pr_global_struct->time = sv.time;
|
||||
|
||||
memset (&svs.clients[i].edict->v, 0, pr_edict_size-svprogparms.edictsize);
|
||||
|
||||
svs.clients[i].edict->v.netname = PR_SetString(svprogfuncs, "Console");
|
||||
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||
|
@ -2631,6 +2633,13 @@ void SV_Impulse_f (void)
|
|||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||
PR_ExecuteProgram (svprogfuncs, pr_global_struct->PlayerPreThink);
|
||||
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||
PR_ExecuteProgram (svprogfuncs, svs.clients[i].edict->v.think);
|
||||
{
|
||||
char buffer[256] = "self.ishuman";
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||
Con_Printf("Result: %s\n", svprogfuncs->EvaluateDebugString(svprogfuncs, buffer));
|
||||
}
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||
PR_ExecuteProgram (svprogfuncs, pr_global_struct->PlayerPostThink);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue