From f6a8eb23f73144d60ab143f3ed85c485e0f214c2 Mon Sep 17 00:00:00 2001
From: Spoike <acceptthis@users.sourceforge.net>
Date: Mon, 17 Sep 2007 20:54:26 +0000
Subject: [PATCH] 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
---
 plugins/plugin.c | 12 ++++++++++++
 plugins/plugin.h |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/plugins/plugin.c b/plugins/plugin.c
index a723e0e51..0a9890f1f 100644
--- a/plugins/plugin.c
+++ b/plugins/plugin.c
@@ -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);
diff --git a/plugins/plugin.h b/plugins/plugin.h
index 7f60d396c..6c420829d 100644
--- a/plugins/plugin.h
+++ b/plugins/plugin.h
@@ -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