Added 3 builtins which fte already supports
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2661 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
babd9f0f20
commit
f6a8eb23f7
2 changed files with 15 additions and 0 deletions
|
@ -119,6 +119,15 @@ BUILTIN(void, CL_GetStats, (int pnum, unsigned int *stats, int maxstats));
|
|||
#define ARGNAMES ,pnum,info
|
||||
BUILTINR(int, GetPlayerInfo, (int pnum, plugclientinfo_t *info));
|
||||
#undef ARGNAMES
|
||||
#define ARGNAMES
|
||||
BUILTINR(int, LocalPlayerNumber, (void));
|
||||
#undef ARGNAMES
|
||||
#define ARGNAMES ,info,infolen
|
||||
BUILTIN(void, GetServerInfo, (char *info, int infolen));
|
||||
#undef ARGNAMES
|
||||
#define ARGNAMES ,key,value
|
||||
BUILTIN(void, SetUserInfo, (char *key, char *value));
|
||||
#undef ARGNAMES
|
||||
|
||||
#define ARGNAMES ,soundname
|
||||
BUILTIN(void, LocalSound, (char *soundname));
|
||||
|
@ -310,6 +319,9 @@ void Plug_InitStandardBuiltins(void)
|
|||
//random things
|
||||
CHECKBUILTIN(CL_GetStats);
|
||||
CHECKBUILTIN(GetPlayerInfo);
|
||||
CHECKBUILTIN(LocalPlayerNumber);
|
||||
CHECKBUILTIN(GetServerInfo);
|
||||
CHECKBUILTIN(SetUserInfo);
|
||||
CHECKBUILTIN(LocalSound);
|
||||
CHECKBUILTIN(Menu_Control);
|
||||
CHECKBUILTIN(Key_GetKeyCode);
|
||||
|
|
|
@ -133,6 +133,9 @@ EBUILTIN(void, GetPluginName, (int plugnum, char *buffer, int bufsize));
|
|||
EBUILTIN(void, LocalSound, (char *soundname));
|
||||
EBUILTIN(void, CL_GetStats, (int pnum, unsigned int *stats, int maxstats));
|
||||
EBUILTIN(int, GetPlayerInfo, (int pnum, plugclientinfo_t *info));
|
||||
EBUILTIN(int, LocalPlayerNumber, (void));
|
||||
EBUILTIN(void, GetServerInfo, (char *info, int infolen));
|
||||
EBUILTIN(void, SetUserInfo, (char *key, char *value));
|
||||
|
||||
EBUILTIN(void, Menu_Control, (int mnum));
|
||||
#define MENU_CLEAR 0
|
||||
|
|
Loading…
Reference in a new issue