mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Pretend to be MVDSV for ktpro.
This commit is contained in:
parent
f7cfd5bed7
commit
6ac017860a
1 changed files with 18 additions and 0 deletions
|
@ -506,6 +506,7 @@ static builtin_t builtins[] = {
|
|||
{"QWE:forceddemoframe", PF_forcedemoframe, QWE 103},
|
||||
{0}
|
||||
};
|
||||
#define LAST_QWE_BUILTIN 103
|
||||
|
||||
static struct {
|
||||
const char *name;
|
||||
|
@ -549,6 +550,22 @@ qwe_user_cmd (void)
|
|||
return false;
|
||||
}
|
||||
|
||||
static int
|
||||
qwe_load_finish (progs_t *pr)
|
||||
{
|
||||
edict_t *ent;
|
||||
ddef_t *targetname;
|
||||
|
||||
targetname = PR_FindField (pr, "targetname");
|
||||
ent = EDICT_NUM (pr, 0);
|
||||
SVstring (ent, netname) = PR_SetString (pr, PACKAGE_VERSION);//FIXME
|
||||
if (targetname)
|
||||
E_STRING (ent, targetname->ofs) = PR_SetString (pr, "MVDSV");
|
||||
SVfloat (ent, impulse) = 0;//QWE_VERSION;//FIXME
|
||||
SVfloat (ent, items) = LAST_QWE_BUILTIN;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
qwe_load (progs_t *pr)
|
||||
{
|
||||
|
@ -564,6 +581,7 @@ qwe_load (progs_t *pr)
|
|||
|
||||
sv_cbuf->unknown_command = qwe_console_cmd;
|
||||
ucmd_unknown = qwe_user_cmd;
|
||||
PR_AddLoadFinishFunc (pr, qwe_load_finish);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue