![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "prvm_cmds.h"
#include "clvm_cmds.h"
#include "menu.h"
#include "csprogs.h"
Go to the source code of this file.
Macros | |
#define | MSG_ALL 2 |
#define | MSG_BROADCAST 0 |
#define | MSG_INIT 3 |
#define | MSG_ONE 1 |
Variables | |
prvm_builtin_t | vm_m_builtins [] |
const char * | vm_m_extensions [] |
const int | vm_m_numbuiltins = sizeof(vm_m_builtins) / sizeof(prvm_builtin_t) |
#define MSG_ALL 2 |
Definition at line 690 of file mvm_cmds.c.
Referenced by VM_M_WriteDest().
#define MSG_BROADCAST 0 |
Definition at line 688 of file mvm_cmds.c.
Referenced by VM_M_WriteDest().
#define MSG_INIT 3 |
Definition at line 691 of file mvm_cmds.c.
Referenced by VM_M_WriteDest().
#define MSG_ONE 1 |
Definition at line 689 of file mvm_cmds.c.
Referenced by VM_M_WriteDest().
qbool MP_ConsoleCommand | ( | const char * | text, |
size_t | textlen ) |
Definition at line 56 of file mvm_cmds.c.
References prvm_prog_t::funcoffsets, mp_abort, and PRVM_ConsoleCommand().
void MVM_init_cmd | ( | prvm_prog_t * | prog | ) |
Definition at line 1747 of file mvm_cmds.c.
References r_refdef_scene_t::ambientintensity, r_refdef_scene_t::entities, MAX_EDICTS, r_refdef_scene_t::maxentities, r_refdef_scene_t::maxtempentities, Mem_Alloc, NULL, prvm_prog_t::polygonbegin_guess2d, prvm_prog_t::polygonbegin_model, prvm_prog_t::progs_mempool, R_GetScenePointer(), RST_MENU, r_refdef_scene_t::tempentities, and VM_Cmd_Init().
Referenced by MP_Init().
void MVM_reset_cmd | ( | prvm_prog_t * | prog | ) |
Definition at line 1769 of file mvm_cmds.c.
References NULL, prvm_prog_t::polygonbegin_guess2d, prvm_prog_t::polygonbegin_model, and VM_Cmd_Reset().
Referenced by MP_Init().
void VM_cin_close | ( | prvm_prog_t * | prog | ) |
Definition at line 982 of file mvm_cmds.c.
References CL_CloseVideo(), CL_GetVideoByName(), name, OFS_PARM0, PRVM_G_STRING, VM_CheckEmptyString(), VM_cin_close(), and VM_SAFEPARMCOUNT.
Referenced by VM_cin_close().
void VM_cin_getstate | ( | prvm_prog_t * | prog | ) |
Definition at line 1025 of file mvm_cmds.c.
References CL_GetVideoByName(), int(), name, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_STRING, clvideo_t::state, VM_CheckEmptyString(), VM_cin_getstate(), and VM_SAFEPARMCOUNT.
Referenced by VM_cin_getstate().
void VM_cin_open | ( | prvm_prog_t * | prog | ) |
Definition at line 956 of file mvm_cmds.c.
References CL_OpenVideo(), MENUOWNER, name, OFS_PARM0, OFS_PARM1, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_STRING, VM_CheckEmptyString(), VM_cin_open(), and VM_SAFEPARMCOUNT.
Referenced by VM_cin_open().
void VM_cin_restart | ( | prvm_prog_t * | prog | ) |
Definition at line 1049 of file mvm_cmds.c.
References CL_GetVideoByName(), CL_RestartVideo(), name, OFS_PARM0, PRVM_G_STRING, VM_CheckEmptyString(), VM_cin_restart(), and VM_SAFEPARMCOUNT.
Referenced by VM_cin_restart().
void VM_cin_setstate | ( | prvm_prog_t * | prog | ) |
Definition at line 1000 of file mvm_cmds.c.
References CL_GetVideoByName(), CL_SetVideoState(), CLVIDEO_STATECOUNT, CLVIDEO_UNUSED, name, OFS_PARM0, OFS_PARM1, PRVM_G_FLOAT, PRVM_G_STRING, VM_CheckEmptyString(), VM_cin_setstate(), and VM_SAFEPARMCOUNT.
Referenced by VM_cin_setstate().
|
static |
Definition at line 671 of file mvm_cmds.c.
References VM_M_addwantedserverlistkey(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_addwantedserverlistkey().
|
static |
Definition at line 785 of file mvm_cmds.c.
References prvm_prog_t::entityfields, prvm_edict_t::fields, prvm_edict_t::fp, OFS_PARM0, OFS_PARM1, PRVM_G_EDICT, VM_M_copyentity(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_copyentity().
|
static |
Definition at line 855 of file mvm_cmds.c.
References addr, Crypto_RetrieveHostKey(), dpsnprintf(), LHNETADDRESS_FromString(), NULL, OFS_NULL, OFS_PARM0, OFS_RETURN, PRVM_G_INT, PRVM_G_STRING, PRVM_SetTempString(), VM_CheckEmptyString(), VM_M_crypto_getencryptlevel(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getencryptlevel().
|
static |
Definition at line 823 of file mvm_cmds.c.
References addr, Crypto_RetrieveHostKey(), FP64_SIZE, LHNETADDRESS_FromString(), NULL, OFS_NULL, OFS_PARM0, OFS_RETURN, PRVM_G_INT, PRVM_G_STRING, PRVM_SetTempString(), strlen(), VM_CheckEmptyString(), VM_M_crypto_getidfp(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getidfp().
|
static |
Definition at line 839 of file mvm_cmds.c.
References addr, Crypto_RetrieveHostKey(), LHNETADDRESS_FromString(), NULL, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_STRING, VM_CheckEmptyString(), VM_M_crypto_getidstatus(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getidstatus().
|
static |
Definition at line 807 of file mvm_cmds.c.
References addr, Crypto_RetrieveHostKey(), FP64_SIZE, LHNETADDRESS_FromString(), NULL, OFS_NULL, OFS_PARM0, OFS_RETURN, PRVM_G_INT, PRVM_G_STRING, PRVM_SetTempString(), strlen(), VM_CheckEmptyString(), VM_M_crypto_getkeyfp(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getkeyfp().
|
static |
Definition at line 902 of file mvm_cmds.c.
References Crypto_RetrieveLocalKey(), FP64_SIZE, i, NULL, OFS_NULL, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_INT, PRVM_SetTempString(), strlen(), VM_M_crypto_getmyidfp(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getmyidfp().
|
static |
Definition at line 924 of file mvm_cmds.c.
References Crypto_RetrieveLocalKey(), i, NULL, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, VM_M_crypto_getmyidstatus(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getmyidstatus().
|
static |
Definition at line 880 of file mvm_cmds.c.
References Crypto_RetrieveLocalKey(), FP64_SIZE, i, NULL, OFS_NULL, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_INT, PRVM_SetTempString(), strlen(), VM_M_crypto_getmykeyfp(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_crypto_getmykeyfp().
|
static |
Definition at line 212 of file mvm_cmds.c.
References fs_all_gamedirs, fs_all_gamedirs_count, int(), name, OFS_NULL, OFS_PARM0, OFS_PARM1, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_INT, PRVM_SetTempString(), strlen(), and VM_SAFEPARMCOUNT.
|
static |
Definition at line 148 of file mvm_cmds.c.
References key_dest, key_game, key_menu, key_menu_grabbed, key_message, OFS_RETURN, PRVM_G_FLOAT, VM_M_getkeydest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_getkeydest().
|
static |
Definition at line 795 of file mvm_cmds.c.
References viddef_mode_t::height, in_client_mouse, in_mouse_x, in_mouse_y, in_windowmouse_x, in_windowmouse_y, cvar_t::integer, key_consoleactive, key_dest, key_menu, key_menu_grabbed, viddef_t::mode, OFS_RETURN, PRVM_G_VECTOR, VectorSet, vid, vid_conheight, vid_conwidth, VM_M_getmousepos(), VM_SAFEPARMCOUNT, and viddef_mode_t::width.
Referenced by VM_M_getmousepos().
|
static |
Definition at line 95 of file mvm_cmds.c.
References in_client_mouse, OFS_RETURN, PRVM_G_FLOAT, VM_M_getmousetarget(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_getmousetarget().
|
static |
Definition at line 181 of file mvm_cmds.c.
References prvm_prog_t::argc, vid_mode_t::height, int(), OFS_PARM0, OFS_PARM1, OFS_RETURN, vid_mode_t::pixelheight_denom, vid_mode_t::pixelheight_num, PRVM_G_FLOAT, PRVM_G_VECTOR, r, VID_GetDesktopMode(), video_resolutions, video_resolutions_count, video_resolutions_hardcoded, video_resolutions_hardcoded_count, VM_M_getresolution(), VM_SAFEPARMCOUNTRANGE, vid_mode_t::width, and video_resolution_t::width.
Referenced by VM_M_getresolution().
|
static |
Definition at line 620 of file mvm_cmds.c.
References OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_STRING, VM_CheckEmptyString(), VM_M_getserverlistindexforkey(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_getserverlistindexforkey().
|
static |
Definition at line 523 of file mvm_cmds.c.
References int(), OFS_NULL, OFS_PARM0, OFS_PARM1, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_INT, serverlist_callbackentry, VM_M_getserverlistnumber(), VM_SAFEPARMCOUNT, and VM_Warning().
Referenced by VM_M_getserverlistnumber().
|
static |
Definition at line 249 of file mvm_cmds.c.
References int(), masterquerycount, masterreplycount, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, serverquerycount, serverreplycount, type, VM_M_getserverliststat(), VM_SAFEPARMCOUNT, and VM_Warning().
Referenced by VM_M_getserverliststat().
|
static |
Definition at line 457 of file mvm_cmds.c.
References int(), prvm_prog_t::name, OFS_NULL, OFS_PARM0, OFS_PARM1, OFS_RETURN, PRVM_G_FLOAT, PRVM_G_INT, PRVM_SetTempString(), serverlist_callbackentry, VM_M_getserverliststring(), VM_SAFEPARMCOUNT, and VM_Warning().
Referenced by VM_M_getserverliststring().
|
static |
Definition at line 604 of file mvm_cmds.c.
References prvm_prog_t::argc, OFS_PARM0, PRVM_G_FLOAT, VM_M_refreshserverlist(), and VM_SAFEPARMCOUNTRANGE.
Referenced by VM_M_refreshserverlist().
|
static |
Definition at line 1064 of file mvm_cmds.c.
References CF_CLIENT, Cmd_AddCommand(), NULL, OFS_PARM0, PRVM_G_STRING, VM_M_registercommand(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_registercommand().
|
static |
Definition at line 295 of file mvm_cmds.c.
References VM_M_resetserverlistmasks(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_resetserverlistmasks().
|
static |
Definition at line 444 of file mvm_cmds.c.
References NULL, VM_M_resortserverlist(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_resortserverlist().
|
static |
Definition at line 114 of file mvm_cmds.c.
References prvm_prog_t::error_cmd, key_dest, key_game, key_menu, key_menu_grabbed, OFS_PARM0, PRVM_G_FLOAT, VM_M_setkeydest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_setkeydest().
|
static |
Definition at line 71 of file mvm_cmds.c.
References prvm_prog_t::error_cmd, in_client_mouse, OFS_PARM0, PRVM_G_FLOAT, VM_M_setmousetarget(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_setmousetarget().
|
static |
Definition at line 376 of file mvm_cmds.c.
References int(), mask, OFS_PARM0, OFS_PARM1, OFS_PARM2, OFS_PARM3, PRVM_G_FLOAT, SERVERLIST_ANDMASKCOUNT, SERVERLIST_ORMASKCOUNT, VM_M_setserverlistmasknumber(), VM_SAFEPARMCOUNT, and VM_Warning().
Referenced by VM_M_setserverlistmasknumber().
|
static |
Definition at line 311 of file mvm_cmds.c.
References dp_strlcpy, int(), mask, OFS_PARM0, OFS_PARM1, OFS_PARM2, OFS_PARM3, PRVM_G_FLOAT, PRVM_G_STRING, SERVERLIST_ANDMASKCOUNT, SERVERLIST_ORMASKCOUNT, VM_M_setserverlistmaskstring(), VM_SAFEPARMCOUNT, and VM_Warning().
Referenced by VM_M_setserverlistmaskstring().
|
static |
Definition at line 589 of file mvm_cmds.c.
References int(), OFS_PARM0, OFS_PARM1, PRVM_G_FLOAT, VM_M_setserverlistsort(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_setserverlistsort().
|
static |
Definition at line 752 of file mvm_cmds.c.
References MSG_WriteAngle(), OFS_PARM0, server_t::protocol, PRVM_G_FLOAT, sv, VM_M_WriteAngle(), VM_M_WriteDest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteAngle().
|
static |
Definition at line 728 of file mvm_cmds.c.
References MSG_WriteByte(), OFS_PARM0, PRVM_G_FLOAT, VM_M_WriteByte(), VM_M_WriteDest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteByte().
|
static |
Definition at line 734 of file mvm_cmds.c.
References MSG_WriteChar(), OFS_PARM0, PRVM_G_FLOAT, VM_M_WriteChar(), VM_M_WriteDest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteChar().
|
static |
Definition at line 758 of file mvm_cmds.c.
References MSG_WriteCoord(), OFS_PARM0, server_t::protocol, PRVM_G_FLOAT, sv, VM_M_WriteCoord(), VM_M_WriteDest(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteCoord().
|
static |
Definition at line 693 of file mvm_cmds.c.
References server_t::active, server_static_t::clients, server_t::datagram, prvm_prog_t::error_cmd, int(), server_static_t::maxclients, MSG_ALL, MSG_BROADCAST, MSG_INIT, MSG_ONE, prvm_prog_t::name, NULL, OFS_PARM1, OFS_PARM2, PRVM_G_FLOAT, server_t::reliable_datagram, server_t::signon, sv, and svs.
Referenced by VM_M_WriteAngle(), VM_M_WriteByte(), VM_M_WriteChar(), VM_M_WriteCoord(), VM_M_WriteEntity(), VM_M_WriteLong(), VM_M_WriteShort(), and VM_M_WriteString().
|
static |
Definition at line 770 of file mvm_cmds.c.
References MSG_WriteShort(), OFS_PARM0, PRVM_G_EDICTNUM, VM_M_WriteDest(), VM_M_WriteEntity(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteEntity().
|
static |
Definition at line 746 of file mvm_cmds.c.
References MSG_WriteLong(), OFS_PARM0, PRVM_G_FLOAT, VM_M_WriteDest(), VM_M_WriteLong(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteLong().
|
static |
Definition at line 740 of file mvm_cmds.c.
References MSG_WriteShort(), OFS_PARM0, PRVM_G_FLOAT, VM_M_WriteDest(), VM_M_WriteShort(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteShort().
|
static |
Definition at line 764 of file mvm_cmds.c.
References MSG_WriteString(), OFS_PARM0, PRVM_G_STRING, VM_M_WriteDest(), VM_M_WriteString(), and VM_SAFEPARMCOUNT.
Referenced by VM_M_WriteString().
prvm_builtin_t vm_m_builtins[] |
Definition at line 1070 of file mvm_cmds.c.
Referenced by MP_Init().
const char* vm_m_extensions[] |
Definition at line 13 of file mvm_cmds.c.
Referenced by MP_Init(), and PRVM_Init().
const int vm_m_numbuiltins = sizeof(vm_m_builtins) / sizeof(prvm_builtin_t) |
Definition at line 1745 of file mvm_cmds.c.
Referenced by MP_Init().