centerprint builtin added, should be called cprint though, as it has no player parameter
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@892 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
26f7aec5b7
commit
b80ee23d89
1 changed files with 81 additions and 84 deletions
|
@ -264,7 +264,11 @@ static void PF_Fixme (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
PR_BIError (prinst, "bulitin not implemented");
|
PR_BIError (prinst, "bulitin not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void PF_csqc_centerprint (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
|
{
|
||||||
|
char *str = PF_VarString(prinst, 0, pr_globals);
|
||||||
|
SCR_CenterPrint(0, str);
|
||||||
|
}
|
||||||
|
|
||||||
static void PF_makevectors (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
static void PF_makevectors (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
{
|
{
|
||||||
|
@ -852,6 +856,8 @@ static void PF_cs_setsensativityscaler (progfuncs_t *prinst, struct globalvars_s
|
||||||
in_sensitivityscale = G_FLOAT(OFS_PARM0);
|
in_sensitivityscale = G_FLOAT(OFS_PARM0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define PF_FixTen PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme,PF_Fixme
|
||||||
|
|
||||||
//warning: functions that depend on globals are bad, mkay?
|
//warning: functions that depend on globals are bad, mkay?
|
||||||
builtin_t csqc_builtins[] = {
|
builtin_t csqc_builtins[] = {
|
||||||
//0
|
//0
|
||||||
|
@ -1044,88 +1050,28 @@ PF_CSQC_SetModelIndex,
|
||||||
PF_CSQC_ModelnameForIndex,
|
PF_CSQC_ModelnameForIndex,
|
||||||
|
|
||||||
PF_cs_setsensativityscaler,
|
PF_cs_setsensativityscaler,
|
||||||
PF_Fixme,
|
PF_csqc_centerprint,
|
||||||
PF_Fixme,
|
PF_print,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
|
|
||||||
//160
|
//160
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//170
|
//170
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//180
|
//180
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//190
|
//190
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//200
|
//200
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//210
|
//210
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//220
|
//220
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
|
@ -1141,22 +1087,74 @@ PF_strcasecmp,
|
||||||
PF_strncasecmp,
|
PF_strncasecmp,
|
||||||
|
|
||||||
//230
|
//230
|
||||||
PF_Fixme,
|
PF_FixTen,
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
PF_Fixme,
|
|
||||||
|
|
||||||
//240
|
//240
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//250
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//260
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//270
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//280
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//290
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//300
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//310
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//320
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//330
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//340
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//350
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//360
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//370
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//380
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//390
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//400
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//410
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//420
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//430
|
||||||
|
PF_FixTen,
|
||||||
|
|
||||||
|
//440
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Tokenize,
|
||||||
PF_Fixme,
|
PF_ArgV,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
|
|
||||||
|
@ -1164,8 +1162,7 @@ PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme,
|
PF_Fixme,
|
||||||
PF_Fixme
|
PF_Fixme,
|
||||||
|
|
||||||
};
|
};
|
||||||
int csqc_numbuiltins = sizeof(csqc_builtins)/sizeof(csqc_builtins[0]);
|
int csqc_numbuiltins = sizeof(csqc_builtins)/sizeof(csqc_builtins[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue