VM_fabs, // #43 float(float f) fabs (QUAKE)
NULL, // #44 vector(entity e, float speed) aim (QUAKE)
VM_cvar, // #45 float(string s) cvar (QUAKE)
-VM_localcmd_local, // #46 void(string s) localcmd (QUAKE)
+VM_localcmd, // #46 void(string s) localcmd (QUAKE)
VM_nextent, // #47 entity(entity e) nextent (QUAKE)
VM_CL_particle, // #48 void(vector o, vector d, float color, float count) particle (QUAKE)
VM_changeyaw, // #49 void() ChangeYaw (QUAKE)
float random(void) = #12; // Returns a random number > 0 and < 1
void cmd(string command, ...) = #13;
+void localcmd(string command, ...) = #13;
// cvar cmds
VM_vectoyaw, // #10
VM_vectoangles, // #11
VM_random, // #12
-VM_localcmd_local, // #13
+VM_localcmd, // #13
VM_cvar, // #14
VM_cvar_set, // #15
VM_dprint, // #16
/*
=================
-VM_localcmd_local
+VM_localcmd
-Sends text over to the client's execution buffer
+Appends text to the command buffer
[localcmd (string, ...) or]
cmd (string, ...)
=================
*/
-void VM_localcmd_local(prvm_prog_t *prog)
+void VM_localcmd(prvm_prog_t *prog)
{
char string[VM_TEMPSTRING_MAXSIZE];
- VM_SAFEPARMCOUNTRANGE(1, 8, VM_localcmd_local);
- VM_VarString(prog, 0, string, sizeof(string));
- Cbuf_AddText(cmd_local, string);
-}
-
-/*
-=================
-VM_localcmd_server
-
-Sends text over to the server's execution buffer
-
-[localcmd (string, ...) or]
-cmd (string, ...)
-=================
-*/
-void VM_localcmd_server(prvm_prog_t *prog)
-{
- char string[VM_TEMPSTRING_MAXSIZE];
- VM_SAFEPARMCOUNTRANGE(1, 8, VM_localcmd_server);
+ VM_SAFEPARMCOUNTRANGE(1, 8, VM_localcmd);
VM_VarString(prog, 0, string, sizeof(string));
Cbuf_AddText(cmd_local, string);
}
void VM_random (prvm_prog_t *prog);
void VM_localsound(prvm_prog_t *prog);
void VM_break (prvm_prog_t *prog);
-void VM_localcmd_local(prvm_prog_t *prog);
-void VM_localcmd_server(prvm_prog_t *prog);
+void VM_localcmd(prvm_prog_t *prog);
void VM_cvar (prvm_prog_t *prog);
void VM_cvar_string(prvm_prog_t *prog);
void VM_cvar_type (prvm_prog_t *prog);
VM_fabs, // #43 float(float f) fabs (QUAKE)
VM_SV_aim, // #44 vector(entity e, float speed) aim (QUAKE)
VM_cvar, // #45 float(string s) cvar (QUAKE)
-VM_localcmd_server, // #46 void(string s) localcmd (QUAKE)
+VM_localcmd, // #46 void(string s) localcmd (QUAKE)
VM_nextent, // #47 entity(entity e) nextent (QUAKE)
VM_SV_particle, // #48 void(vector o, vector d, float color, float count) particle (QUAKE)
VM_changeyaw, // #49 void() ChangeYaw (QUAKE)