![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include <stddef.h>
#include "qtypes.h"
#include "qdefs.h"
#include "common.h"
#include "zone.h"
#include "pr_comp.h"
#include "progdefs.h"
#include "clprogdefs.h"
#include "prvm_offsets.h"
Go to the source code of this file.
Data Structures | |
struct | prvm_edict_private_t |
struct | prvm_edict_t |
union | prvm_eval_t |
struct | prvm_prog_fieldoffsets_t |
struct | prvm_prog_funcoffsets_t |
struct | prvm_prog_garbagecollection_state_t |
struct | prvm_prog_globaloffsets_t |
struct | prvm_prog_t |
struct | prvm_required_field_t |
struct | prvm_stack_t |
struct | prvm_stringbuffer_t |
Typedefs | |
typedef void(* | prvm_builtin_t) (struct prvm_prog_s *prog) |
Enumerations | |
enum | prvm_prog_garbagecollection_state_stage_t { PRVM_GC_START = 0 , PRVM_GC_GLOBALS_MARK , PRVM_GC_FIELDS_MARK , PRVM_GC_KNOWNSTRINGS_SWEEP , PRVM_GC_RESET } |
enum | prvm_progindex_t { PRVM_PROG_SERVER , PRVM_PROG_CLIENT , PRVM_PROG_MENU , PRVM_PROG_MAX } |
Variables | |
prvm_eval_t | prvm_badvalue |
prvm_prog_t | prvm_prog_list [PRVM_PROG_MAX] |
int | prvm_type_size [8] |
for consistency : I think a goal of this sub-project is to make the new vm mostly independent from the old one, thus if it's necessary, I copy everything | |
prvm_builtin_t | vm_cl_builtins [] |
const int | vm_cl_numbuiltins |
prvm_builtin_t | vm_m_builtins [] |
const char * | vm_m_extensions [] |
const int | vm_m_numbuiltins |
prvm_builtin_t | vm_sv_builtins [] |
const char * | vm_sv_extensions [] |
client also uses this | |
const int | vm_sv_numbuiltins |
#define CLVM_prog (&prvm_prog_list[PRVM_PROG_CLIENT]) |
Definition at line 767 of file progsvm.h.
Referenced by CL_Cache_TraceLineSurfaces(), CL_CheckBottom(), CL_GenericHitSuperContentsMask(), CL_GetModelFromEdict(), CL_Input(), CL_LinkEdict(), CL_movestep(), CL_SetupWorldModel(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CL_UpdateWorld(), CL_VM_ConsoleCommand(), CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_GetEntitySoundOrigin(), CL_VM_Init(), CL_VM_InputEvent(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), CL_VM_Parse_TempEntity(), CL_VM_PreventInformationLeaks(), CL_VM_ShutDown(), CL_VM_TransformView(), CL_VM_UpdateCoopDeathmatchGlobals(), CL_VM_UpdateDmgGlobals(), CL_VM_UpdateIntermissionState(), CL_VM_UpdateShowingScoresState(), CL_VM_UpdateView(), CSQC_AddPrintText(), CSQC_AddRenderEdict(), CSQC_Predraw(), CSQC_ReadEntities(), CSQC_SetGlobals(), CSQC_Think(), CSQC_UpdateNetworkTimes(), getmatrix(), getmodel(), PHYS_NudgeOutOfSolid(), PRVM_Crash(), PRVM_IsEdictRelevant(), PRVM_Prog_Load(), PRVM_ProgFromString(), R_DrawEntityBBoxes_Callback(), R_RenderScene(), Sbar_ShowFPS(), SCR_DrawScreen(), SND_Spatialize_WithSfx(), VM_getsoundtime(), and VM_nudgeoutofsolid().
#define KNOWNSTRINGFLAG_ENGINE 1 |
Definition at line 510 of file progsvm.h.
Referenced by PRVM_ChangeEngineString(), PRVM_GarbageCollection(), and PRVM_SetEngineString().
#define KNOWNSTRINGFLAG_GCMARK 2 |
Definition at line 511 of file progsvm.h.
Referenced by PRVM_AllocString(), PRVM_GarbageCollection(), PRVM_GetString(), and PRVM_SetEngineString().
#define KNOWNSTRINGFLAG_GCPRUNE 4 |
Definition at line 512 of file progsvm.h.
Referenced by PRVM_GarbageCollection().
#define PRVM_alledictedict | ( | ed, | |
fieldname ) |
#define PRVM_alledictfloat | ( | ed, | |
fieldname ) |
#define PRVM_alledictfunction | ( | ed, | |
fieldname ) |
#define PRVM_alledictstring | ( | ed, | |
fieldname ) |
Definition at line 138 of file progsvm.h.
Referenced by PRVM_ED_CallSpawnFunction().
#define PRVM_alledictvector | ( | ed, | |
fieldname ) |
#define PRVM_allfunction | ( | funcname | ) |
Definition at line 146 of file progsvm.h.
Referenced by PRVM_GameCommand(), uri_to_string_callback(), and VM_uri_get().
#define PRVM_allglobaledict | ( | fieldname | ) |
Definition at line 144 of file progsvm.h.
Referenced by CLVM_ExecuteProgram(), PRVM_ED_CallSpawnFunction(), SVVM_ExecuteProgram(), VM_error(), and VM_objerror().
#define PRVM_allglobalfloat | ( | fieldname | ) |
Definition at line 141 of file progsvm.h.
Referenced by PRVM_ED_CallSpawnFunction().
#define PRVM_allglobalfunction | ( | fieldname | ) |
#define PRVM_allglobalstring | ( | fieldname | ) |
#define PRVM_allglobalvector | ( | fieldname | ) |
#define PRVM_Alloc | ( | buffersize | ) |
Definition at line 818 of file progsvm.h.
Referenced by PRVM_AllocationOrigin(), PRVM_AllocString(), and PRVM_NewKnownString().
#define PRVM_clientedictedict | ( | ed, | |
fieldname ) |
Definition at line 187 of file progsvm.h.
Referenced by CL_GetTagMatrix(), CL_movestep(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), VM_CL_droptofloor(), and VM_CL_setattachment().
#define PRVM_clientedictfloat | ( | ed, | |
fieldname ) |
Definition at line 184 of file progsvm.h.
Referenced by CL_Cache_TraceLineSurfaces(), CL_GenericHitSuperContentsMask(), CL_GetEntityMatrix(), CL_GetExtendedTagInfo(), CL_GetModelFromEdict(), CL_GetTagIndex(), CL_GetTagMatrix(), CL_LinkEdict(), CL_movestep(), CL_Trace_Toss(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CL_VM_Init(), CLVM_count_edicts(), CSQC_AddRenderEdict(), CSQC_ReadEntities(), CSQC_Think(), PRVM_IsEdictRelevant(), VM_CL_droptofloor(), VM_CL_findradius(), VM_CL_makestatic(), VM_CL_R_AddEntities(), VM_CL_runplayerphysics(), VM_CL_setattachment(), VM_CL_setmodel(), VM_CL_setmodelindex(), VM_CL_V_CalcRefdef(), and VM_CL_walkmove().
#define PRVM_clientedictfunction | ( | ed, | |
fieldname ) |
Definition at line 188 of file progsvm.h.
Referenced by CL_VM_TransformView(), CSQC_Predraw(), CSQC_Think(), and PRVM_IsEdictRelevant().
#define PRVM_clientedictstring | ( | ed, | |
fieldname ) |
Definition at line 186 of file progsvm.h.
Referenced by CL_VM_Init(), CLVM_count_edicts(), PRVM_IsEdictRelevant(), VM_CL_setmodel(), and VM_CL_setmodelindex().
#define PRVM_clientedictvector | ( | ed, | |
fieldname ) |
Definition at line 185 of file progsvm.h.
Referenced by CL_Cache_TraceLineSurfaces(), CL_CheckBottom(), CL_GetEntityMatrix(), CL_LinkEdict(), CL_movestep(), CL_Trace_Toss(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CL_VM_GetEntitySoundOrigin(), CL_VM_Init(), CSQC_AddRenderEdict(), SetMinMaxSizePRVM(), VM_CL_checkbottom(), VM_CL_droptofloor(), VM_CL_findradius(), VM_CL_makestatic(), VM_CL_runplayerphysics(), VM_CL_setorigin(), VM_CL_trailparticles(), and VM_CL_V_CalcRefdef().
#define PRVM_clientfunction | ( | funcname | ) |
Definition at line 194 of file progsvm.h.
Referenced by CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_Init(), CL_VM_InputEvent(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), CL_VM_Parse_TempEntity(), CL_VM_ShutDown(), CL_VM_UpdateView(), CSQC_AddPrintText(), CSQC_ReadEntities(), PRVM_Crash(), VM_CL_R_AddDynamicLight(), VM_CL_R_AddEntities(), VM_CL_R_AddEntity(), and VM_CL_R_RenderScene().
#define PRVM_clientglobaledict | ( | fieldname | ) |
Definition at line 192 of file progsvm.h.
Referenced by CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_Init(), CL_VM_InputEvent(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), CL_VM_Parse_TempEntity(), CL_VM_ShutDown(), CL_VM_TransformView(), CL_VM_UpdateView(), CSQC_Predraw(), CSQC_ReadEntities(), CSQC_Think(), VM_CL_droptofloor(), and VM_CL_walkmove().
#define PRVM_clientglobalfloat | ( | fieldname | ) |
Definition at line 189 of file progsvm.h.
Referenced by CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_Init(), CL_VM_InputEvent(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), CL_VM_Parse_TempEntity(), CL_VM_PreventInformationLeaks(), CL_VM_SetTraceGlobals(), CL_VM_ShutDown(), CL_VM_TransformView(), CL_VM_UpdateCoopDeathmatchGlobals(), CL_VM_UpdateDmgGlobals(), CL_VM_UpdateIntermissionState(), CL_VM_UpdateShowingScoresState(), CL_VM_UpdateView(), CSQC_AddRenderEdict(), CSQC_ReadEntities(), CSQC_SetGlobals(), CSQC_Think(), CSQC_UpdateNetworkTimes(), VM_CL_boxparticles(), VM_CL_getinputstate(), VM_CL_gettaginfo(), VM_CL_ParticleThemeFromGlobals(), VM_CL_ParticleThemeToGlobals(), VM_CL_R_AddEntities(), VM_CL_runplayerphysics(), VM_CL_sound(), VM_CL_SpawnParticle(), and VM_CL_SpawnParticleDelayed().
#define PRVM_clientglobalfunction | ( | fieldname | ) |
#define PRVM_clientglobalstring | ( | fieldname | ) |
Definition at line 191 of file progsvm.h.
Referenced by CL_VM_Init(), and VM_CL_gettaginfo().
#define PRVM_clientglobalvector | ( | fieldname | ) |
Definition at line 190 of file progsvm.h.
Referenced by CL_GetEntityMatrix(), CL_VM_TransformView(), CL_VM_UpdateDmgGlobals(), CSQC_SetGlobals(), VM_CL_boxparticles(), VM_CL_GetEntity(), VM_CL_getinputstate(), VM_CL_getlight(), VM_CL_gettaginfo(), VM_CL_makestatic(), VM_CL_makevectors(), VM_CL_ParticleThemeFromGlobals(), VM_CL_ParticleThemeToGlobals(), VM_CL_R_AddDynamicLight(), VM_CL_runplayerphysics(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonerel(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_CL_SpawnParticle(), VM_CL_SpawnParticleDelayed(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonerel(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), and VM_SV_skel_set_bone().
#define PRVM_CSQC_SIMPLE 2 |
Definition at line 239 of file progsvm.h.
Referenced by CL_CheckRequiredFuncs(), CL_UpdateWorld(), PRVM_Prog_Load(), and SCR_DrawScreen().
#define PRVM_drawedictedict | ( | ed, | |
fieldname ) |
#define PRVM_drawedictfloat | ( | ed, | |
fieldname ) |
#define PRVM_drawedictfunction | ( | ed, | |
fieldname ) |
#define PRVM_drawedictstring | ( | ed, | |
fieldname ) |
#define PRVM_drawedictvector | ( | ed, | |
fieldname ) |
#define PRVM_drawfunction | ( | funcname | ) |
#define PRVM_drawglobaledict | ( | fieldname | ) |
#define PRVM_drawglobalfloat | ( | fieldname | ) |
Definition at line 153 of file progsvm.h.
Referenced by getdrawfont().
#define PRVM_drawglobalfunction | ( | fieldname | ) |
#define PRVM_drawglobalstring | ( | fieldname | ) |
#define PRVM_drawglobalvector | ( | fieldname | ) |
Definition at line 154 of file progsvm.h.
Referenced by getdrawfontscale().
#define PRVM_E_FLOAT | ( | e, | |
o ) |
Definition at line 891 of file progsvm.h.
Referenced by VM_findchainflags(), VM_findchainfloat(), VM_findflags(), VM_findfloat(), and VM_SV_UpdateCustomStats().
#define PRVM_E_STRING | ( | e, | |
o ) |
Definition at line 894 of file progsvm.h.
Referenced by VM_find(), VM_findchain(), and VM_SV_UpdateCustomStats().
#define PRVM_ED_FindFieldOffset_FromStruct | ( | st, | |
field ) |
#define PRVM_ED_FindGlobalOffset_FromStruct | ( | st, | |
field ) |
Definition at line 842 of file progsvm.h.
Referenced by SV_VM_Setup().
#define PRVM_EDICT | ( | n | ) |
Definition at line 866 of file progsvm.h.
Referenced by CSQC_ReadEntities().
#define PRVM_EDICT_MARK_SETORIGIN_CAUGHT -2 |
Definition at line 79 of file progsvm.h.
Referenced by SV_Impact(), VM_CL_setorigin(), and VM_SV_setorigin().
#define PRVM_EDICT_MARK_WAIT_FOR_SETORIGIN -1 |
Definition at line 78 of file progsvm.h.
Referenced by SV_Impact(), VM_CL_setorigin(), and VM_SV_setorigin().
#define PRVM_EDICT_NUM | ( | n | ) |
Definition at line 867 of file progsvm.h.
Referenced by CL_GetTagMatrix(), CL_VM_GetEntitySoundOrigin(), CL_VM_TransformView(), CLVM_count_edicts(), FindViewthing(), MVM_count_edicts(), NetConn_BuildStatusResponse(), PRVM_ED_Alloc(), PRVM_ED_EdictGet_f(), PRVM_ED_EdictSet_f(), PRVM_ED_LoadFromFile(), PRVM_ED_ParseEpair(), PRVM_ED_PrintNum(), PRVM_Fields_f(), PRVM_IsEdictReferenced(), PRVM_IsStringReferenced(), PRVM_LeakTest(), PRVM_MarkReferencedEdicts(), PRVM_UpdateBreakpoints(), R_DrawEntityBBoxes(), R_DrawEntityBBoxes_Callback(), SV_ApplyClientMove(), SV_ConnectClient(), SV_CreateBaseline(), SV_DropClient(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), SV_EntitiesInBox(), SV_GetTagMatrix(), SV_Loadgame_f(), SV_MarkWriteEntityStateToClient(), SV_Physics(), SV_PushMove(), SV_ReadClientMove(), SV_Savegame_to(), SV_SendServerinfo(), SV_SpawnServer(), SV_Status_f(), SV_UpdateToReliableMessages(), SV_WriteEntitiesToClient(), SVVM_count_edicts(), VM_find(), VM_findflags(), VM_findfloat(), VM_nextent(), VM_SV_checkclient(), VM_SV_newcheckclient(), VM_SV_spawnclient(), World_EntitiesInBox(), World_LinkEdict_AreaGrid(), and World_UnlinkAll().
#define PRVM_EDICT_TO_PROG | ( | e | ) |
Definition at line 875 of file progsvm.h.
Referenced by CL_movestep(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CSQC_Predraw(), CSQC_ReadEntities(), CSQC_Think(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), PRVM_ED_ParseEpair(), Sbar_ShowFPS(), SV_ApplyClientMove(), SV_CheckContentsTransition(), SV_Color_f(), SV_DropClient(), SV_Ent_Remove_f(), SV_FlyMove(), SV_Impact(), SV_Kill_f(), SV_LinkEdict_TouchAreaGrid_Call(), SV_movestep(), SV_Physics(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Pusher(), SV_Physics_Step(), SV_Physics_Toss(), SV_PlayerPhysics(), SV_PushEntity(), SV_PushMove(), SV_ReadClientMessage(), SV_RunThink(), SV_SaveSpawnparms(), SV_Spawn_f(), SV_SpawnServer(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UnstickEntity(), SV_VM_ConsoleCommand(), SV_WalkMove(), SV_WriteEntitiesToClient(), VM_CL_droptofloor(), VM_CL_findbox(), VM_CL_findradius(), VM_CL_setattachment(), VM_CL_tracebox(), VM_CL_traceline(), VM_ClearTraceGlobals(), VM_findchainflags(), VM_findchainfloat(), VM_SetTraceGlobals(), VM_SV_droptofloor(), VM_SV_findbox(), VM_SV_findradius(), VM_SV_setattachment(), VM_SV_tracebox(), and VM_SV_traceline().
#define PRVM_EDICTFIELDEDICT | ( | ed, | |
fieldoffset ) |
Definition at line 213 of file progsvm.h.
Referenced by PRVM_IsEdictReferenced(), VM_CL_findbox(), VM_CL_findradius(), VM_findchain(), VM_findchainflags(), VM_findchainfloat(), VM_SV_findbox(), and VM_SV_findradius().
#define PRVM_EDICTFIELDFLOAT | ( | ed, | |
fieldoffset ) |
#define PRVM_EDICTFIELDFUNCTION | ( | ed, | |
fieldoffset ) |
#define PRVM_EDICTFIELDSTRING | ( | ed, | |
fieldoffset ) |
Definition at line 212 of file progsvm.h.
Referenced by PRVM_IsStringReferenced().
#define PRVM_EDICTFIELDVALUE | ( | ed, | |
fieldoffset ) |
Definition at line 209 of file progsvm.h.
Referenced by PRVM_UpdateBreakpoints(), and while().
#define PRVM_EDICTFIELDVECTOR | ( | ed, | |
fieldoffset ) |
#define PRVM_Free | ( | buffer | ) |
Definition at line 819 of file progsvm.h.
Referenced by BufStr_Del(), PRVM_FreeString(), VM_fclose(), and VM_search_end().
#define PRVM_G_EDICT | ( | o | ) |
Definition at line 884 of file progsvm.h.
Referenced by VM_changepitch(), VM_CL_checkbottom(), VM_CL_checkpvs(), VM_CL_copyentity(), VM_CL_gettagindex(), VM_CL_gettaginfo(), VM_CL_makestatic(), VM_CL_R_AddEntity(), VM_CL_runplayerphysics(), VM_CL_setattachment(), VM_CL_setmodel(), VM_CL_setmodelindex(), VM_CL_setorigin(), VM_CL_setsize(), VM_CL_skel_build(), VM_CL_sound(), VM_CL_tracebox(), VM_CL_traceline(), VM_CL_tracetoss(), VM_CL_trailparticles(), VM_CL_V_CalcRefdef(), VM_getentityfieldstring(), VM_getsoundtime(), VM_getsurfaceclippedpoint(), VM_getsurfacenearpoint(), VM_getsurfacenormal(), VM_getsurfacenumpoints(), VM_getsurfacenumtriangles(), VM_getsurfacepoint(), VM_getsurfacepointattribute(), VM_getsurfacetexture(), VM_getsurfacetriangle(), VM_M_copyentity(), VM_nudgeoutofsolid(), VM_parseentitydata(), VM_physics_addforce(), VM_physics_addtorque(), VM_physics_enable(), VM_putentityfieldstring(), VM_remove(), VM_SV_aim(), VM_SV_checkbottom(), VM_SV_checkpvs(), VM_SV_clientcommand(), VM_SV_copyentity(), VM_SV_gettagindex(), VM_SV_gettaginfo(), VM_SV_makestatic(), VM_SV_setattachment(), VM_SV_setmodel(), VM_SV_setmodelindex(), VM_SV_setorigin(), VM_SV_setsize(), VM_SV_setspawnparms(), VM_SV_skel_build(), VM_SV_sound(), VM_SV_tracebox(), VM_SV_traceline(), VM_SV_tracetoss(), VM_wasfreed(), and VM_writetofile().
#define PRVM_G_EDICTNUM | ( | o | ) |
Definition at line 885 of file progsvm.h.
Referenced by VM_CL_te_beam(), VM_CL_te_lightning1(), VM_CL_te_lightning2(), VM_CL_te_lightning3(), VM_eprint(), VM_etof(), VM_etos(), VM_find(), VM_findflags(), VM_findfloat(), VM_M_WriteEntity(), VM_nextent(), VM_SV_centerprint(), VM_SV_clienttype(), VM_SV_dropclient(), VM_SV_setcolor(), VM_SV_sprint(), VM_SV_stuffcmd(), VM_SV_te_beam(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_trailparticles(), and VM_SV_WriteEntity().
#define PRVM_G_FLOAT | ( | o | ) |
Definition at line 882 of file progsvm.h.
Referenced by CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_Init(), CL_VM_InputEvent(), CL_VM_UpdateView(), CSQC_ReadEntities(), EntityFrameCSQC_WriteFrame(), MP_Draw(), PRVM_ConsoleCommand(), SV_CheckContentsTransition(), SV_MarkWriteEntityStateToClient(), uri_to_string_callback(), VM_acos(), VM_altstr_count(), VM_altstr_get(), VM_altstr_ins(), VM_altstr_set(), VM_argv(), VM_argv_end_index(), VM_argv_start_index(), VM_asin(), VM_atan(), VM_atan2(), VM_bitshift(), VM_bound(), VM_buf_copy(), VM_buf_create(), VM_buf_cvarlist(), VM_buf_del(), VM_buf_getsize(), VM_buf_implode(), VM_buf_loadfile(), VM_buf_sort(), VM_buf_writefile(), VM_bufstr_add(), VM_bufstr_find(), VM_bufstr_free(), VM_bufstr_get(), VM_bufstr_set(), VM_ceil(), VM_checkextension(), VM_chr(), VM_chr2str(), VM_cin_getstate(), VM_cin_open(), VM_cin_setstate(), VM_CL_ambientsound(), VM_CL_boxparticles(), VM_CL_checkbottom(), VM_CL_checkpvs(), VM_CL_droptofloor(), VM_CL_effect(), VM_CL_findradius(), VM_CL_frameduration(), VM_CL_frameforname(), VM_CL_GetEntity(), VM_CL_getinputstate(), VM_CL_getlight(), VM_CL_getplayerkey(), VM_CL_getstatf(), VM_CL_getstati(), VM_CL_getstats(), VM_CL_gettagindex(), VM_CL_gettaginfo(), VM_CL_InitParticleSpawner(), VM_CL_isdemo(), VM_CL_lightstyle(), VM_CL_modelnameforindex(), VM_CL_particle(), VM_CL_particleeffectnum(), VM_CL_ParticleTheme(), VM_CL_ParticleThemeFree(), VM_CL_ParticleThemeSave(), VM_CL_pointcontents(), VM_CL_pointparticles(), VM_CL_pointsound(), VM_CL_precache_model(), VM_CL_R_AddDynamicLight(), VM_CL_R_AddEntities(), VM_CL_R_PolygonBegin(), VM_CL_R_PolygonVertex(), VM_CL_R_SetView(), VM_CL_ReadAngle(), VM_CL_ReadByte(), VM_CL_ReadChar(), VM_CL_ReadCoord(), VM_CL_ReadFloat(), VM_CL_ReadLong(), VM_CL_ReadShort(), VM_CL_setcursormode(), VM_CL_setmodelindex(), VM_CL_setpause(), VM_CL_setsensitivityscale(), VM_CL_skel_build(), VM_CL_skel_copybones(), VM_CL_skel_create(), VM_CL_skel_delete(), VM_CL_skel_find_bone(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonename(), VM_CL_skel_get_boneparent(), VM_CL_skel_get_bonerel(), VM_CL_skel_get_numbones(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_CL_sound(), VM_CL_SpawnParticle(), VM_CL_SpawnParticleDelayed(), VM_CL_te_blood(), VM_CL_te_bloodshower(), VM_CL_te_customflash(), VM_CL_te_explosion2(), VM_CL_te_flamejet(), VM_CL_te_particlecube(), VM_CL_te_particlerain(), VM_CL_te_particlesnow(), VM_CL_te_spark(), VM_CL_tracebox(), VM_CL_traceline(), VM_CL_trailparticles(), VM_CL_V_CalcRefdef(), VM_CL_videoplaying(), VM_CL_walkmove(), VM_clientcount(), VM_clientstate(), VM_cos(), VM_crc16(), VM_cvar(), VM_cvar_type(), VM_drawcharacter(), VM_drawcolorcodedstring(), VM_drawfill(), VM_drawline(), VM_drawpic(), VM_drawrotpic(), VM_drawsetcliparea(), VM_drawstring(), VM_drawsubpic(), VM_entityfieldname(), VM_entityfieldtype(), VM_etof(), VM_fabs(), VM_fclose(), VM_fgets(), VM_findchainflags(), VM_findchainfloat(), VM_findflags(), VM_findfloat(), VM_findfont(), VM_findkeysforcommand(), VM_floor(), VM_fopen(), VM_fputs(), VM_ftoe(), VM_ftos(), VM_gecko_create(), VM_gecko_keyevent(), VM_getentityfieldstring(), VM_getkeybind(), VM_getostype(), VM_getsoundtime(), VM_getsurfaceclippedpoint(), VM_getsurfacenearpoint(), VM_getsurfacenormal(), VM_getsurfacenumpoints(), VM_getsurfacenumtriangles(), VM_getsurfacepoint(), VM_getsurfacepointattribute(), VM_getsurfacetexture(), VM_getsurfacetriangle(), VM_gettime(), VM_iscachedpic(), VM_isfunction(), VM_isserver(), VM_itof(), VM_keynumtostring(), VM_loadfont(), VM_loadfromfile(), VM_localsound(), VM_log(), VM_M_crypto_getidstatus(), VM_M_crypto_getmyidfp(), VM_M_crypto_getmyidstatus(), VM_M_crypto_getmykeyfp(), VM_M_getgamedirinfo(), VM_M_getkeydest(), VM_M_getmousetarget(), VM_M_getresolution(), VM_M_getserverlistindexforkey(), VM_M_getserverlistnumber(), VM_M_getserverliststat(), VM_M_getserverliststring(), VM_M_refreshserverlist(), VM_M_setkeydest(), VM_M_setmousetarget(), VM_M_setserverlistmasknumber(), VM_M_setserverlistmaskstring(), VM_M_setserverlistsort(), VM_M_WriteAngle(), VM_M_WriteByte(), VM_M_WriteChar(), VM_M_WriteCoord(), VM_M_WriteDest(), VM_M_WriteLong(), VM_M_WriteShort(), VM_matchpattern(), VM_max(), VM_min(), VM_modulo(), VM_netaddress_resolve(), VM_nudgeoutofsolid(), VM_numentityfields(), VM_physics_enable(), VM_pow(), VM_precache_pic(), VM_putentityfieldstring(), VM_random(), VM_registercvar(), VM_rint(), VM_search_begin(), VM_search_end(), VM_search_getfilename(), VM_search_getsize(), VM_setbindmaps(), VM_setkeybind(), VM_sin(), VM_soundlength(), VM_sprint(), VM_sqrt(), VM_stof(), VM_str2chr(), VM_strconv(), VM_strftime(), VM_stringtokeynum(), VM_stringwidth(), VM_strlen(), VM_strlennocol(), VM_strncasecmp(), VM_strncmp(), VM_strpad(), VM_strstrofs(), VM_substring(), VM_SV_AddStat(), VM_SV_ambientsound(), VM_SV_checkbottom(), VM_SV_checkpvs(), VM_SV_clienttype(), VM_SV_droptofloor(), VM_SV_effect(), VM_SV_findradius(), VM_SV_frameduration(), VM_SV_frameforname(), VM_SV_gettagindex(), VM_SV_gettaginfo(), VM_SV_lightstyle(), VM_SV_modelnameforindex(), VM_SV_MoveToGoal(), VM_SV_particle(), VM_SV_particleeffectnum(), VM_SV_pointcontents(), VM_SV_pointparticles(), VM_SV_pointsound(), VM_SV_precache_sound(), VM_SV_setcolor(), VM_SV_setmodelindex(), VM_SV_setpause(), VM_SV_skel_build(), VM_SV_skel_copybones(), VM_SV_skel_create(), VM_SV_skel_delete(), VM_SV_skel_find_bone(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonename(), VM_SV_skel_get_boneparent(), VM_SV_skel_get_bonerel(), VM_SV_skel_get_numbones(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), VM_SV_skel_set_bone(), VM_SV_sound(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion2(), VM_SV_te_flamejet(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_spark(), VM_SV_tracebox(), VM_SV_traceline(), VM_SV_trailparticles(), VM_SV_walkmove(), VM_SV_WriteAngle(), VM_SV_WriteByte(), VM_SV_WriteChar(), VM_SV_WriteCoord(), VM_SV_WriteLong(), VM_SV_WritePicture(), VM_SV_WriteShort(), VM_tan(), VM_tokenize(), VM_tokenize_console(), VM_tokenizebyseparator(), VM_uri_get(), VM_vectoyaw(), VM_vlen(), VM_wasfreed(), VM_writetofile(), and WriteDest().
#define PRVM_G_INT | ( | o | ) |
Definition at line 883 of file progsvm.h.
Referenced by CL_VM_Event_Sound(), CL_VM_Init(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), CSQC_ReadEntities(), EntityFrameCSQC_WriteFrame(), PRVM_ConsoleCommand(), PRVM_GameCommand(), SV_ReadClientMessage(), uri_to_string_callback(), VM_altstr_get(), VM_altstr_ins(), VM_altstr_prepare(), VM_altstr_set(), VM_argv(), VM_buf_implode(), VM_bufstr_add(), VM_bufstr_get(), VM_chr(), VM_chr2str(), VM_CL_findbox(), VM_CL_findradius(), VM_CL_getextresponse(), VM_CL_getplayerkey(), VM_CL_getstats(), VM_CL_modelnameforindex(), VM_CL_ReadPicture(), VM_CL_ReadString(), VM_CL_serverkey(), VM_CL_skel_get_bonename(), VM_cvar_defstring(), VM_cvar_description(), VM_cvar_string(), VM_digest_hex(), VM_entityfieldname(), VM_etos(), VM_fgets(), VM_find(), VM_findchain(), VM_findchainflags(), VM_findchainfloat(), VM_findflags(), VM_findfloat(), VM_findkeysforcommand(), VM_ftoe(), VM_ftos(), VM_getentityfieldstring(), VM_getkeybind(), VM_getsurfacetexture(), VM_infoadd(), VM_infoget(), VM_itof(), VM_keynumtostring(), VM_M_crypto_getencryptlevel(), VM_M_crypto_getidfp(), VM_M_crypto_getkeyfp(), VM_M_crypto_getmyidfp(), VM_M_crypto_getmykeyfp(), VM_M_getgamedirinfo(), VM_M_getserverlistnumber(), VM_M_getserverliststring(), VM_netaddress_resolve(), VM_precache_file(), VM_precache_pic(), VM_precache_sound(), VM_search_getfilename(), VM_sprintf(), VM_strcat(), VM_strconv(), VM_strdecolorize(), VM_strftime(), VM_strireplace(), VM_strpad(), VM_strreplace(), VM_strtolower(), VM_strtoupper(), VM_strunzone(), VM_strzone(), VM_substring(), VM_SV_AddStat(), VM_SV_findbox(), VM_SV_findradius(), VM_SV_getextresponse(), VM_SV_modelnameforindex(), VM_SV_precache_model(), VM_SV_serverkey(), VM_SV_skel_get_bonename(), VM_uncolorstring(), VM_uri_escape(), VM_uri_get(), VM_uri_unescape(), VM_vtos(), and VM_whichpack().
#define PRVM_G_STRING | ( | o | ) |
Definition at line 887 of file progsvm.h.
Referenced by VM_altstr_count(), VM_altstr_get(), VM_altstr_ins(), VM_altstr_prepare(), VM_altstr_set(), VM_buf_create(), VM_buf_cvarlist(), VM_buf_implode(), VM_buf_loadfile(), VM_bufstr_add(), VM_bufstr_find(), VM_bufstr_set(), VM_callfunction(), VM_changelevel(), VM_checkextension(), VM_cin_close(), VM_cin_getstate(), VM_cin_open(), VM_cin_restart(), VM_cin_setstate(), VM_CL_ambientsound(), VM_CL_effect(), VM_CL_frameforname(), VM_CL_getplayerkey(), VM_CL_gettagindex(), VM_CL_lightstyle(), VM_CL_loadcubemap(), VM_CL_particleeffectnum(), VM_CL_pointsound(), VM_CL_precache_model(), VM_CL_R_AddDynamicLight(), VM_CL_R_PolygonBegin(), VM_CL_registercmd(), VM_CL_serverkey(), VM_CL_setattachment(), VM_CL_setmodel(), VM_CL_skel_find_bone(), VM_CL_sound(), VM_cvar_set(), VM_digest_hex(), VM_drawcolorcodedstring(), VM_drawpic(), VM_drawrotpic(), VM_drawstring(), VM_drawsubpic(), VM_find(), VM_findchain(), VM_findfont(), VM_findkeysforcommand(), VM_fopen(), VM_freepic(), VM_getimagesize(), VM_infoadd(), VM_infoget(), VM_isfunction(), VM_loadfont(), VM_loadfromdata(), VM_loadfromfile(), VM_localsound(), VM_M_crypto_getencryptlevel(), VM_M_crypto_getidfp(), VM_M_crypto_getidstatus(), VM_M_crypto_getkeyfp(), VM_M_getserverlistindexforkey(), VM_M_registercommand(), VM_M_setserverlistmaskstring(), VM_M_WriteString(), VM_matchpattern(), VM_netaddress_resolve(), VM_parseentitydata(), VM_precache_pic(), VM_precache_sound(), VM_putentityfieldstring(), VM_registercvar(), VM_search_begin(), VM_setkeybind(), VM_soundlength(), VM_sprintf(), VM_str2chr(), VM_strdecolorize(), VM_stringtokeynum(), VM_stringwidth(), VM_strireplace(), VM_strlen(), VM_strlennocol(), VM_strncasecmp(), VM_strncmp(), VM_strreplace(), VM_strstrofs(), VM_strtolower(), VM_strtoupper(), VM_substring(), VM_SV_ambientsound(), VM_SV_clientcommand(), VM_SV_effect(), VM_SV_frameforname(), VM_SV_gettagindex(), VM_SV_lightstyle(), VM_SV_particleeffectnum(), VM_SV_pointsound(), VM_SV_precache_model(), VM_SV_precache_sound(), VM_SV_registercommand(), VM_SV_serverkey(), VM_SV_setattachment(), VM_SV_setmodel(), VM_SV_skel_find_bone(), VM_SV_sound(), VM_SV_WritePicture(), VM_SV_WriteString(), VM_SV_WriteUnterminatedString(), VM_tokenize(), VM_tokenize_console(), VM_tokenizebyseparator(), VM_uncolorstring(), VM_uri_get(), VM_VarString(), and VM_whichpack().
#define PRVM_G_VECTOR | ( | o | ) |
Definition at line 886 of file progsvm.h.
Referenced by CL_VM_DrawHud(), CL_VM_Event_Sound(), CL_VM_TransformView(), SV_Physics_Step(), VM_CL_ambientsound(), VM_CL_boxparticles(), VM_CL_checkpvs(), VM_CL_effect(), VM_CL_findbox(), VM_CL_findradius(), VM_CL_GetEntity(), VM_CL_getlight(), VM_CL_getmousepos(), VM_CL_gettaginfo(), VM_CL_makevectors(), VM_CL_particle(), VM_CL_pointcontents(), VM_CL_pointparticles(), VM_CL_pointsound(), VM_CL_project(), VM_CL_R_AddDynamicLight(), VM_CL_R_PolygonVertex(), VM_CL_R_SetView(), VM_CL_RotateMoves(), VM_CL_setlistener(), VM_CL_setorigin(), VM_CL_setsize(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonerel(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_CL_SpawnParticle(), VM_CL_SpawnParticleDelayed(), VM_CL_te_beam(), VM_CL_te_blood(), VM_CL_te_bloodshower(), VM_CL_te_customflash(), VM_CL_te_explosion(), VM_CL_te_explosion2(), VM_CL_te_explosionquad(), VM_CL_te_explosionrgb(), VM_CL_te_flamejet(), VM_CL_te_gunshot(), VM_CL_te_gunshotquad(), VM_CL_te_knightspike(), VM_CL_te_lavasplash(), VM_CL_te_lightning1(), VM_CL_te_lightning2(), VM_CL_te_lightning3(), VM_CL_te_particlecube(), VM_CL_te_particlerain(), VM_CL_te_particlesnow(), VM_CL_te_plasmaburn(), VM_CL_te_smallflash(), VM_CL_te_spark(), VM_CL_te_spike(), VM_CL_te_spikequad(), VM_CL_te_superspike(), VM_CL_te_superspikequad(), VM_CL_te_tarexplosion(), VM_CL_te_teleport(), VM_CL_te_wizspike(), VM_CL_tracebox(), VM_CL_traceline(), VM_CL_trailparticles(), VM_CL_unproject(), VM_drawcharacter(), VM_drawcolorcodedstring(), VM_drawfill(), VM_drawline(), VM_drawpic(), VM_drawrotpic(), VM_drawstring(), VM_drawsubpic(), VM_gecko_get_texture_extent(), VM_getbindmaps(), VM_getimagesize(), VM_getsurfaceclippedpoint(), VM_getsurfacenearpoint(), VM_getsurfacenormal(), VM_getsurfacepoint(), VM_getsurfacepointattribute(), VM_getsurfacetriangle(), VM_M_getmousepos(), VM_M_getresolution(), VM_makevectors(), VM_normalize(), VM_physics_addforce(), VM_physics_addtorque(), VM_randomvec(), VM_setbindmaps(), VM_stov(), VM_stringwidth(), VM_SV_aim(), VM_SV_ambientsound(), VM_SV_checkpvs(), VM_SV_effect(), VM_SV_findbox(), VM_SV_findradius(), VM_SV_getlight(), VM_SV_gettaginfo(), VM_SV_particle(), VM_SV_pointcontents(), VM_SV_pointparticles(), VM_SV_pointsound(), VM_SV_setorigin(), VM_SV_setsize(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonerel(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), VM_SV_skel_set_bone(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_tracebox(), VM_SV_traceline(), VM_SV_trailparticles(), VM_vectoangles(), VM_vectorvectors(), VM_vectoyaw(), VM_vlen(), and VM_vtos().
#define PRVM_gameedictedict | ( | ed, | |
fieldname ) |
Definition at line 163 of file progsvm.h.
Referenced by R_DrawEntityBBoxes().
#define PRVM_gameedictfloat | ( | ed, | |
fieldname ) |
Definition at line 160 of file progsvm.h.
Referenced by animatemodel(), VM_changepitch(), VM_changeyaw(), VM_GenerateFrameGroupBlend(), VM_UpdateEdictSkeleton(), and while().
#define PRVM_gameedictfunction | ( | ed, | |
fieldname ) |
Definition at line 164 of file progsvm.h.
Referenced by while().
#define PRVM_gameedictstring | ( | ed, | |
fieldname ) |
Definition at line 162 of file progsvm.h.
Referenced by VM_SV_droptofloor().
#define PRVM_gameedictvector | ( | ed, | |
fieldname ) |
Definition at line 161 of file progsvm.h.
Referenced by VM_changepitch(), VM_changeyaw(), and VM_SV_droptofloor().
#define PRVM_gamefunction | ( | funcname | ) |
#define PRVM_gameglobaledict | ( | fieldname | ) |
Definition at line 168 of file progsvm.h.
Referenced by PRVM_ConsoleCommand(), VM_changeyaw(), VM_ClearTraceGlobals(), VM_SetTraceGlobals(), and while().
#define PRVM_gameglobalfloat | ( | fieldname | ) |
Definition at line 165 of file progsvm.h.
Referenced by PRVM_ConsoleCommand(), VM_ClearTraceGlobals(), VM_SetTraceGlobals(), and while().
#define PRVM_gameglobalfunction | ( | fieldname | ) |
#define PRVM_gameglobalstring | ( | fieldname | ) |
Definition at line 167 of file progsvm.h.
Referenced by VM_ClearTraceGlobals(), and VM_SetTraceGlobals().
#define PRVM_gameglobalvector | ( | fieldname | ) |
Definition at line 166 of file progsvm.h.
Referenced by VM_ClearTraceGlobals(), VM_makevectors(), VM_SetTraceGlobals(), and VM_vectorvectors().
#define PRVM_GetProg | ( | n | ) |
#define PRVM_GLOBALFIELDEDICT | ( | fieldoffset | ) |
Definition at line 219 of file progsvm.h.
Referenced by PRVM_MarkReferencedEdicts().
#define PRVM_GLOBALFIELDFLOAT | ( | fieldoffset | ) |
Definition at line 216 of file progsvm.h.
Referenced by Cvar_UpdateAutoCvar().
#define PRVM_GLOBALFIELDFUNCTION | ( | fieldoffset | ) |
#define PRVM_GLOBALFIELDSTRING | ( | fieldoffset | ) |
Definition at line 218 of file progsvm.h.
Referenced by Cvar_UpdateAutoCvar(), and PRVM_IsStringReferenced().
#define PRVM_GLOBALFIELDVALUE | ( | fieldoffset | ) |
Definition at line 215 of file progsvm.h.
Referenced by PRVM_Global_f(), PRVM_Prog_Load(), PRVM_UpdateBreakpoints(), and while().
#define PRVM_GLOBALFIELDVECTOR | ( | fieldoffset | ) |
Definition at line 217 of file progsvm.h.
Referenced by Cvar_UpdateAutoCvar().
#define PRVM_LOCALSTACK_SIZE 16384 |
Definition at line 249 of file progsvm.h.
Referenced by PRVM_EnterFunction().
#define PRVM_MAX_OPENFILES 256 |
Definition at line 251 of file progsvm.h.
Referenced by PRVM_LeakTest(), VM_buf_writefile(), VM_fclose(), VM_fgets(), VM_Files_CloseAll(), VM_Files_Init(), VM_fopen(), VM_fputs(), and VM_GetFileHandle().
#define PRVM_MAX_OPENSEARCHES 128 |
Definition at line 252 of file progsvm.h.
Referenced by PRVM_LeakTest(), VM_search_begin(), VM_search_end(), VM_search_getfilename(), VM_search_getsize(), VM_Search_Init(), and VM_Search_Reset().
#define PRVM_MAX_STACK_DEPTH 1024 |
Definition at line 248 of file progsvm.h.
Referenced by PRVM_EnterFunction().
#define PRVM_menuedictedict | ( | ed, | |
fieldname ) |
#define PRVM_menuedictfloat | ( | ed, | |
fieldname ) |
#define PRVM_menuedictfunction | ( | ed, | |
fieldname ) |
#define PRVM_menuedictstring | ( | ed, | |
fieldname ) |
#define PRVM_menuedictvector | ( | ed, | |
fieldname ) |
#define PRVM_menufunction | ( | funcname | ) |
Definition at line 206 of file progsvm.h.
Referenced by MP_Draw(), MP_GetServerListEntryCategory(), MP_Init(), MP_KeyEvent(), MP_NewMap(), MP_Shutdown(), and MP_ToggleMenu().
#define PRVM_menuglobaledict | ( | fieldname | ) |
#define PRVM_menuglobalfloat | ( | fieldname | ) |
#define PRVM_menuglobalfunction | ( | fieldname | ) |
#define PRVM_menuglobalstring | ( | fieldname | ) |
#define PRVM_menuglobalvector | ( | fieldname | ) |
#define PRVM_NEXT_EDICT | ( | e | ) |
Definition at line 873 of file progsvm.h.
Referenced by SV_CleanupEnts(), SV_Ent_Remove_All_f(), SV_Physics(), SV_PrepareEntitiesForSending(), VM_findchain(), VM_findchainflags(), VM_findchainfloat(), and VM_SV_aim().
#define PRVM_NUM_FOR_EDICT | ( | e | ) |
Definition at line 870 of file progsvm.h.
Referenced by CL_LinkEdict(), CLVM_free_edict(), CLVM_init_edict(), PRVM_ED_Print(), PRVM_ED_Write(), PRVM_IsEdictReferenced(), PRVM_IsEdictRelevant(), SV_CheckVelocity(), SV_LinkEdict(), SV_PushMove(), SV_SendServerinfo(), SV_StartDemoRecording(), SV_StartSound(), SV_StopDemoRecording(), SV_UnstickEntity(), SV_UpdateToReliableMessages(), SVVM_free_edict(), SVVM_init_edict(), VM_CL_gettagindex(), VM_CL_gettaginfo(), VM_CL_setattachment(), VM_CL_sound(), VM_findchain(), VM_getentityfieldstring(), VM_getsoundtime(), VM_parseentitydata(), VM_putentityfieldstring(), VM_remove(), VM_SV_clientcommand(), VM_SV_gettagindex(), VM_SV_gettaginfo(), VM_SV_setattachment(), VM_SV_setspawnparms(), VM_writetofile(), World_LinkEdict_AreaGrid(), and WriteDest().
#define PRVM_OP_STATE 1 |
Definition at line 238 of file progsvm.h.
Referenced by CL_VM_Init(), SV_VM_Setup(), and while().
#define PRVM_PROG_TO_EDICT | ( | n | ) |
Definition at line 877 of file progsvm.h.
Referenced by CL_movestep(), CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), CLVM_ExecuteProgram(), SV_movestep(), SV_Physics_Follow(), SV_Physics_Toss(), SV_PushMove(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_WriteClientdataToMessage(), SVVM_ExecuteProgram(), VM_changeyaw(), VM_CL_droptofloor(), VM_CL_walkmove(), VM_error(), VM_ftoe(), VM_objerror(), VM_SV_checkclient(), VM_SV_droptofloor(), VM_SV_makestatic(), VM_SV_MoveToGoal(), VM_SV_walkmove(), while(), and WriteDest().
#define PRVM_ProgLoaded | ( | n | ) |
#define PRVM_serveredictedict | ( | ed, | |
fieldname ) |
Definition at line 175 of file progsvm.h.
Referenced by R_DrawEntityBBoxes(), SV_ApplyClientMove(), SV_FlyMove(), SV_GetTagMatrix(), SV_movestep(), SV_Physics_Follow(), SV_Physics_Toss(), SV_PrepareEntityForSending(), SV_PushEntity(), SV_PushMove(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UpdateToReliableMessages(), SV_WalkMove(), SV_WriteClientdataToMessage(), VM_SV_droptofloor(), VM_SV_MoveToGoal(), and VM_SV_setattachment().
#define PRVM_serveredictfloat | ( | ed, | |
fieldname ) |
Definition at line 172 of file progsvm.h.
Referenced by PHYS_TestEntityPosition(), PRVM_IsEdictRelevant(), R_DrawEntityBBoxes_Callback(), SV_AirMove(), SV_ApplyClientMove(), SV_CanSeeBox(), SV_CheckContentsTransition(), SV_CheckWater(), SV_CheckWaterTransition(), SV_CleanupEnts(), SV_Color_f(), SV_CreateBaseline(), SV_DisableCheats_c(), SV_ExecuteClientMoves(), SV_FixCheckBottom(), SV_Fly_f(), SV_FlyMove(), SV_GenericHitSuperContentsMask(), SV_GetEntityMatrix(), SV_GetExtendedTagInfo(), SV_GetModelFromEdict(), SV_GetPitchSign(), SV_GetTagIndex(), SV_GetTagMatrix(), SV_Give_f(), SV_God_f(), SV_Gravity(), SV_Impact(), SV_Kill_f(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid(), SV_movestep(), SV_NewChaseDir(), SV_Noclip_f(), SV_Notarget_f(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_NoThink(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Pusher(), SV_Physics_Step(), SV_Physics_Toss(), SV_PlayerPhysics(), SV_PModel_f(), SV_PointSuperContents(), SV_PrepareEntityForSending(), SV_PushEntity(), SV_PushMove(), SV_RunThink(), SV_Savegame_f(), SV_Say(), SV_SendServerinfo(), SV_SetIdealPitch(), SV_SpawnServer(), SV_StartDemoRecording(), SV_StepDirection(), SV_StopDemoRecording(), SV_Trace_Toss(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UpdateToReliableMessages(), SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), SV_Viewprev_f(), SV_WalkMove(), SV_WaterJump(), SV_WriteClientdataToMessage(), SVVM_count_edicts(), SVVM_free_edict(), SVVM_init_edict(), SVVM_load_edict(), VM_physics_addforce(), VM_physics_addtorque(), VM_physics_enable(), VM_SV_aim(), VM_SV_checkclient(), VM_SV_droptofloor(), VM_SV_findradius(), VM_SV_makestatic(), VM_SV_MoveToGoal(), VM_SV_newcheckclient(), VM_SV_setattachment(), VM_SV_setcolor(), VM_SV_setmodel(), VM_SV_setmodelindex(), VM_SV_walkmove(), and World_LinkEdict().
#define PRVM_serveredictfunction | ( | ed, | |
fieldname ) |
Definition at line 176 of file progsvm.h.
Referenced by EntityFrame4_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_LostAllFrames(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), PRVM_IsEdictRelevant(), SV_CheckContentsTransition(), SV_Impact(), SV_LinkEdict_TouchAreaGrid(), SV_LinkEdict_TouchAreaGrid_Call(), SV_Physics_Pusher(), SV_Physics_Step(), SV_PrepareEntityForSending(), SV_PushMove(), and SV_RunThink().
#define PRVM_serveredictstring | ( | ed, | |
fieldname ) |
Definition at line 174 of file progsvm.h.
Referenced by FindViewthing(), NetConn_BuildStatusResponse(), PRVM_IsEdictReferenced(), PRVM_IsEdictRelevant(), SV_CheckVelocity(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), SV_Name(), SV_Playermodel_f(), SV_Playerskin_f(), SV_PrepareEntityForSending(), SV_Savegame_to(), SV_SendServerinfo(), SV_SpawnServer(), SV_Status_f(), SV_UnstickEntity(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), SVVM_count_edicts(), SVVM_free_edict(), SVVM_init_edict(), VM_SV_setmodel(), and VM_SV_setmodelindex().
#define PRVM_serveredictvector | ( | ed, | |
fieldname ) |
Definition at line 173 of file progsvm.h.
Referenced by DropPunchAngle(), PHYS_NudgeOutOfSolid(), PHYS_TestEntityPosition(), PHYS_UnstickEntityReturnOffset(), SetMinMaxSize(), SV_Accelerate(), SV_AirAccelerate(), SV_AirMove(), SV_ApplyClientMove(), SV_CanSeeBox(), SV_CheckBottom(), SV_CheckVelocity(), SV_CheckWater(), SV_CheckWaterTransition(), SV_CreateBaseline(), SV_EntitiesInBox(), SV_FlyMove(), SV_GetEntityMatrix(), SV_Impact(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid_Call(), SV_movestep(), SV_NewChaseDir(), SV_NudgeOutOfSolid_PivotIsKnownGood(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_NoThink(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Follow(), SV_Physics_Step(), SV_Physics_Toss(), SV_PlayerPhysics(), SV_PointSuperContents(), SV_PrepareEntityForSending(), SV_PushEntity(), SV_PushMove(), SV_SetIdealPitch(), SV_Spawn_f(), SV_SpawnServer(), SV_StartSound(), SV_StepDirection(), SV_Trace_Toss(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UnstickEntity(), SV_UserFriction(), SV_WalkMove(), SV_WallFriction(), SV_WaterJump(), SV_WaterMove(), SV_WriteClientdataToMessage(), SV_WriteDemoMessage(), SV_WriteEntitiesToClient(), SVVM_free_edict(), VM_CL_checkpvs(), VM_getsurfaceclippedpoint(), VM_SV_aim(), VM_SV_checkclient(), VM_SV_checkpvs(), VM_SV_droptofloor(), VM_SV_findradius(), VM_SV_makestatic(), VM_SV_newcheckclient(), and VM_SV_setorigin().
#define PRVM_serverfunction | ( | funcname | ) |
Definition at line 182 of file progsvm.h.
Referenced by PRVM_Crash(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), SV_Color_f(), SV_ConnectClient(), SV_DropClient(), SV_Frame(), SV_Kill_f(), SV_Physics(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_PlayerPhysics(), SV_ReadClientMessage(), SV_SaveSpawnparms(), SV_Spawn_f(), SV_SpawnServer(), SV_ThreadFunc(), and SV_VM_Shutdown().
#define PRVM_serverglobaledict | ( | fieldname | ) |
Definition at line 180 of file progsvm.h.
Referenced by EntityFrameCSQC_WriteFrame(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), SV_CheckContentsTransition(), SV_Color_f(), SV_ConnectClient(), SV_DropClient(), SV_Impact(), SV_Kill_f(), SV_LinkEdict_TouchAreaGrid(), SV_LinkEdict_TouchAreaGrid_Call(), SV_MarkWriteEntityStateToClient(), SV_Physics(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Pusher(), SV_Physics_Step(), SV_PlayerPhysics(), SV_PushMove(), SV_ReadClientMessage(), SV_RunThink(), SV_SaveSpawnparms(), SV_Spawn_f(), SV_SpawnServer(), VM_SV_checkclient(), VM_SV_droptofloor(), VM_SV_makestatic(), VM_SV_MoveToGoal(), VM_SV_walkmove(), and WriteDest().
#define PRVM_serverglobalfloat | ( | fieldname | ) |
Definition at line 177 of file progsvm.h.
Referenced by animatemodel(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), SV_CheckContentsTransition(), SV_Color_f(), SV_ConnectClient(), SV_DropClient(), SV_ExecuteClientMoves(), SV_Frame(), SV_Impact(), SV_Kill_f(), SV_LinkEdict_TouchAreaGrid_Call(), SV_MarkWriteEntityStateToClient(), SV_Physics(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Pusher(), SV_Physics_Step(), SV_PlayerPhysics(), SV_PushMove(), SV_ReadClientMessage(), SV_RunThink(), SV_Savegame_f(), SV_Savegame_to(), SV_SaveSpawnparms(), SV_Spawn_f(), SV_SpawnServer(), SV_ThreadFunc(), SV_VM_Shutdown(), SV_WriteClientdataToMessage(), VM_SV_gettaginfo(), and VM_SV_setspawnparms().
#define PRVM_serverglobalfunction | ( | fieldname | ) |
#define PRVM_serverglobalstring | ( | fieldname | ) |
Definition at line 179 of file progsvm.h.
Referenced by NetConn_BuildStatusResponse(), SV_Impact(), SV_LinkEdict_TouchAreaGrid_Call(), SV_SendServerinfo(), SV_SpawnServer(), and VM_SV_gettaginfo().
#define PRVM_serverglobalvector | ( | fieldname | ) |
Definition at line 178 of file progsvm.h.
Referenced by SV_Impact(), SV_LinkEdict_TouchAreaGrid_Call(), VM_SV_aim(), and VM_SV_gettaginfo().
#define STRINGBUFFER_QCFLAGS 1 |
Definition at line 497 of file progsvm.h.
Referenced by SV_Savegame_to(), and VM_buf_create().
#define STRINGBUFFER_SAVED 1 |
Definition at line 496 of file progsvm.h.
Referenced by SV_Loadgame_f(), and SV_Savegame_to().
#define STRINGBUFFER_TEMP 128 |
Definition at line 498 of file progsvm.h.
Referenced by BufStr_FindCreateReplace(), and SV_Loadgame_f().
#define SVVM_prog (&prvm_prog_list[PRVM_PROG_SERVER]) |
Definition at line 766 of file progsvm.h.
Referenced by CLVM_ExecuteProgram(), DropPunchAngle(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_LostAllFrames(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteUpdate(), getmatrix(), getmodel(), NetConn_BuildStatusResponse(), PHYS_NudgeOutOfSolid(), PHYS_TraceBox(), PRVM_Crash(), PRVM_GarbageCollection(), PRVM_IsEdictReferenced(), PRVM_IsEdictRelevant(), PRVM_ProgFromString(), R_DrawEntityBBoxes(), R_RenderScene(), Sbar_ShowFPS(), SV_Accelerate(), SV_AirAccelerate(), SV_AirMove(), SV_ApplyClientMove(), SV_CanSeeBox(), SV_CheckBottom(), SV_CheckContentsTransition(), SV_CheckVelocity(), SV_CheckWater(), SV_CheckWaterTransition(), SV_CleanupEnts(), SV_Color_f(), SV_ConnectClient(), SV_CreateBaseline(), SV_DisableCheats_c(), SV_DropClient(), SV_Ent_Create_f(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), SV_EntitiesInBox(), SV_ExecuteClientMoves(), SV_FixCheckBottom(), SV_Fly_f(), SV_FlyMove(), SV_Frame(), SV_GenericHitSuperContentsMask(), SV_GetModelFromEdict(), SV_Give_f(), SV_God_f(), SV_Gravity(), SV_Impact(), SV_Kill_f(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid(), SV_LinkEdict_TouchAreaGrid_Call(), SV_Loadgame_f(), SV_MarkWriteEntityStateToClient(), SV_movestep(), SV_Name(), SV_NewChaseDir(), SV_Noclip_f(), SV_Notarget_f(), SV_NudgeOutOfSolid_PivotIsKnownGood(), SV_Physics(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_NoThink(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Follow(), SV_Physics_Pusher(), SV_Physics_Step(), SV_Physics_Toss(), SV_Playermodel_f(), SV_PlayerPhysics(), SV_Playerskin_f(), SV_PModel_f(), SV_PointSuperContents(), SV_PrepareEntitiesForSending(), SV_PrepareEntityForSending(), SV_PushEntity(), SV_PushMove(), SV_ReadClientMessage(), SV_ReadClientMove(), SV_RunThink(), SV_Savegame_f(), SV_Savegame_to(), SV_SaveSpawnparms(), SV_Say(), SV_SendServerinfo(), SV_SetIdealPitch(), SV_Spawn_f(), SV_SpawnServer(), SV_StartDemoRecording(), SV_StartSound(), SV_Status_f(), SV_StepDirection(), SV_StopDemoRecording(), SV_ThreadFunc(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UnstickEntity(), SV_UpdateToReliableMessages(), SV_UserFriction(), SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), SV_Viewprev_f(), SV_VM_ConsoleCommand(), SV_VM_Setup(), SV_VM_Shutdown(), SV_WalkMove(), SV_WallFriction(), SV_WaterJump(), SV_WaterMove(), SV_WriteClientdataToMessage(), SV_WriteDemoMessage(), SV_WriteEntitiesToClient(), SVVM_ExecuteProgram(), VM_getsoundtime(), VM_nudgeoutofsolid(), and VM_SV_UpdateCustomStats().
Enumerator | |
---|---|
PRVM_GC_START | |
PRVM_GC_GLOBALS_MARK | |
PRVM_GC_FIELDS_MARK | |
PRVM_GC_KNOWNSTRINGS_SWEEP | |
PRVM_GC_RESET |
Definition at line 514 of file progsvm.h.
enum prvm_progindex_t |
Enumerator | |
---|---|
PRVM_PROG_SERVER | |
PRVM_PROG_CLIENT | |
PRVM_PROG_MENU | |
PRVM_PROG_MAX |
void CLVM_ExecuteProgram | ( | prvm_prog_t * | prog, |
func_t | fnum, | ||
const char * | errormessage ) |
Definition at line 1086 of file prvm_exec.c.
References prvm_prog_t::break_statement, CACHE_CHANGING, CACHE_UNCHANGING, mfunction_t::callcount, Con_DPrintf(), sizebuf_t::cursize, prvm_prog_t::depth, developer_insane, DO_DECLARE, prvm_prog_t::error_cmd, ev_void, prvm_prog_t::functions, cvar_t::integer, NULL, prvm_prog_t::numfunctions, PRVM_allglobaledict, prvm_coverage, PRVM_ED_Print(), PRVM_EnterFunction(), PRVM_FunctionCoverageEvent(), PRVM_GetString(), PRVM_PROG_TO_EDICT, prvm_timeprofiling, prvm_traceqc, mfunction_t::s_name, self, prvm_prog_t::statements, SV_FlushBroadcastMessages(), SVVM_prog, Sys_DirtyTime(), prvm_prog_t::tempstringsbuf, mfunction_t::totaltime, prvm_prog_t::trace, prvm_prog_t::watch_field_type, prvm_prog_t::watch_global_type, and prvm_prog_t::xfunction.
Referenced by CL_VM_Init().
void CLVM_init_cmd | ( | prvm_prog_t * | prog | ) |
Definition at line 5656 of file clvm_cmds.c.
References NULL, prvm_prog_t::polygonbegin_guess2d, prvm_prog_t::polygonbegin_model, and VM_Cmd_Init().
Referenced by CL_VM_Init().
void CLVM_reset_cmd | ( | prvm_prog_t * | prog | ) |
Definition at line 5663 of file clvm_cmds.c.
References cl, NULL, prvm_prog_t::polygonbegin_guess2d, prvm_prog_t::polygonbegin_model, VM_Cmd_Reset(), client_state_t::world, and World_End().
Referenced by CL_VM_Init().
const char * PRVM_AllocationOrigin | ( | prvm_prog_t * | prog | ) |
Definition at line 223 of file prvm_edict.c.
References buf, prvm_prog_t::depth, prvm_prog_t::leaktest_active, NULL, PRVM_Alloc, and PRVM_ShortStackTrace().
Referenced by PRVM_AllocString(), PRVM_ED_ClearEdict(), VM_buf_create(), VM_fopen(), and VM_search_begin().
int PRVM_AllocString | ( | prvm_prog_t * | prog, |
size_t | bufferlength, | ||
char ** | pointer ) |
Definition at line 3459 of file prvm_edict.c.
References prvm_prog_t::firstfreeknownstring, i, KNOWNSTRINGFLAG_GCMARK, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_origin, prvm_prog_t::leaktest_active, NULL, pointer, PRVM_Alloc, PRVM_AllocationOrigin(), PRVM_KNOWNSTRINGBASE, and PRVM_NewKnownString().
Referenced by PRVM_ED_CallSpawnFunction(), PRVM_ED_ParseEpair(), and VM_strzone().
void PRVM_Breakpoint | ( | prvm_prog_t * | prog, |
int | stack_index, | ||
const char * | text ) |
Definition at line 3000 of file prvm_edict.c.
References Con_Printf(), cvar_t::integer, prvm_prog_t::name, prvm_breakpointdump, PRVM_PrintState(), SV_Savegame_to(), and va().
Referenced by PRVM_Watchpoint(), and while().
void PRVM_CallProfile_f | ( | struct cmd_state_s * | cmd | ) |
Referenced by PRVM_Init().
const char * PRVM_ChangeEngineString | ( | prvm_prog_t * | prog, |
int | i, | ||
const char * | s ) |
Definition at line 3345 of file prvm_edict.c.
References prvm_prog_t::error_cmd, i, KNOWNSTRINGFLAG_ENGINE, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_flags, prvm_prog_t::numknownstrings, and PRVM_KNOWNSTRINGBASE.
Referenced by Cvar_UpdateAutoCvar().
void PRVM_ChildProfile_f | ( | struct cmd_state_s * | cmd | ) |
Referenced by PRVM_Init().
Definition at line 750 of file prvm_exec.c.
References CLVM_prog, Con_Printf(), CSQC_Shutdown(), depth, i, cvar_t::integer, prvm_prog_t::name, PRVM_clientfunction, prvm_errordump, PRVM_GetProg, PRVM_PrintState(), PRVM_PROG_MAX, PRVM_Prog_Reset(), PRVM_serverfunction, SV_Savegame_to(), SV_Shutdown(), SVVM_prog, and va().
Referenced by Host_Error(), and MVM_error_cmd().
prvm_edict_t * PRVM_ED_Alloc | ( | prvm_prog_t * | prog | ) |
Definition at line 269 of file prvm_edict.c.
References prvm_prog_t::error_cmd, i, prvm_prog_t::limit_edicts, prvm_prog_t::max_edicts, prvm_prog_t::name, prvm_prog_t::num_edicts, PRVM_ED_CanAlloc(), PRVM_ED_ClearEdict(), PRVM_EDICT_NUM, PRVM_MEM_IncreaseEdicts(), and prvm_prog_t::reserved_edicts.
Referenced by CSQC_ReadEntities(), PRVM_ED_LoadFromFile(), SV_Ent_Create_f(), VM_CL_spawn(), and VM_spawn().
void PRVM_ED_CallPostspawnFunction | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent ) |
Definition at line 1484 of file prvm_edict.c.
References prvm_prog_t::ExecuteProgram, prvm_edict_t::free, PRVM_EDICT_TO_PROG, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, sv, server_t::time, and time.
Referenced by PRVM_ED_LoadFromFile(), and SV_Ent_Create_f().
void PRVM_ED_CallPrespawnFunction | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent ) |
Definition at line 1389 of file prvm_edict.c.
References prvm_prog_t::ExecuteProgram, PRVM_EDICT_TO_PROG, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, sv, server_t::time, and time.
Referenced by PRVM_ED_LoadFromFile(), and SV_Ent_Create_f().
qbool PRVM_ED_CallSpawnFunction | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent, | ||
const char * | data, | ||
const char * | start ) |
Definition at line 1400 of file prvm_edict.c.
References classname, Con_DPrint(), Con_Print(), data, developer, prvm_prog_t::ExecuteProgram, prvm_edict_t::free, prvm_prog_t::functions, cvar_t::integer, NULL, PRVM_alledictstring, PRVM_allglobaledict, PRVM_allglobalfloat, PRVM_AllocString(), PRVM_ED_FindFunction(), PRVM_ED_FindGlobalEval(), PRVM_ED_Free(), PRVM_ED_Print(), PRVM_EDICT_TO_PROG, PRVM_GetString(), PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, prvm_eval_t::string, sv, server_t::time, time, and va().
Referenced by PRVM_ED_LoadFromFile(), and SV_Ent_Create_f().
qbool PRVM_ED_CanAlloc | ( | prvm_prog_t * | prog, |
prvm_edict_t * | e ) |
Definition at line 243 of file prvm_edict.c.
References prvm_edict_t::free, prvm_edict_t::freetime, host, cvar_t::integer, prvm_reuseedicts_always_allow, prvm_reuseedicts_neverinsameframe, prvm_reuseedicts_startuptime, host_static_t::realtime, prvm_prog_t::starttime, and cvar_t::value.
Referenced by PRVM_ED_Alloc(), and SV_Physics().
void PRVM_ED_ClearEdict | ( | prvm_prog_t * | prog, |
prvm_edict_t * | e ) |
Definition at line 210 of file prvm_edict.c.
References prvm_edict_private_t::allocation_origin, prvm_prog_t::entityfields, prvm_edict_t::fields, prvm_edict_t::fp, prvm_edict_t::free, prvm_edict_t::freetime, host, prvm_prog_t::init_edict, Mem_Free, prvm_edict_t::priv, PRVM_AllocationOrigin(), host_static_t::realtime, and prvm_edict_t::required.
Referenced by PRVM_ED_Alloc(), SV_ConnectClient(), SV_DropClient(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), and SV_SpawnServer().
mdef_t * PRVM_ED_FieldAtOfs | ( | prvm_prog_t * | prog, |
unsigned int | ofs ) |
Definition at line 357 of file prvm_edict.c.
References prvm_prog_t::fielddefs, i, NULL, prvm_prog_t::numfielddefs, mdef_t::ofs, and ofs.
Referenced by PRVM_UglyValueString(), PRVM_ValueString(), and while().
mdef_t * PRVM_ED_FindField | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 376 of file prvm_edict.c.
References prvm_prog_t::fielddefs, i, name, NULL, prvm_prog_t::numfielddefs, PRVM_GetString(), and mdef_t::s_name.
Referenced by PRVM_ED_EdictGet_f(), PRVM_ED_EdictSet_f(), PRVM_ED_FindFieldOffset(), PRVM_ED_ParseEdict(), PRVM_ED_ParseEpair(), PRVM_UpdateBreakpoints(), and SV_Ent_Create_f().
int PRVM_ED_FindFieldOffset | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 134 of file prvm_edict.c.
References mdef_t::ofs, and PRVM_ED_FindField().
mfunction_t * PRVM_ED_FindFunction | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 425 of file prvm_edict.c.
References prvm_prog_t::functions, i, name, NULL, prvm_prog_t::numfunctions, PRVM_GetString(), and mfunction_t::s_name.
Referenced by CL_CheckRequiredFuncs(), MP_CheckRequiredFuncs(), PRVM_ED_CallSpawnFunction(), PRVM_ED_FindFunctionOffset(), PRVM_ED_ParseEpair(), PRVM_PrintFunctionStatements(), PRVM_UpdateBreakpoints(), VM_callfunction(), and VM_isfunction().
func_t PRVM_ED_FindFunctionOffset | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 152 of file prvm_edict.c.
References f, prvm_prog_t::functions, and PRVM_ED_FindFunction().
mdef_t * PRVM_ED_FindGlobal | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 395 of file prvm_edict.c.
References prvm_prog_t::globaldefs, i, name, NULL, prvm_prog_t::numglobaldefs, PRVM_GetString(), and mdef_t::s_name.
Referenced by PRVM_ED_FindGlobalEval(), PRVM_ED_FindGlobalOffset(), PRVM_ED_GlobalGet_f(), PRVM_ED_ParseGlobals(), PRVM_Global_f(), PRVM_GlobalSet_f(), and PRVM_UpdateBreakpoints().
prvm_eval_t * PRVM_ED_FindGlobalEval | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 414 of file prvm_edict.c.
References prvm_prog_t::fp, prvm_prog_t::globals, name, NULL, mdef_t::ofs, and PRVM_ED_FindGlobal().
Referenced by PRVM_ED_CallSpawnFunction().
int PRVM_ED_FindGlobalOffset | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 143 of file prvm_edict.c.
References mdef_t::ofs, and PRVM_ED_FindGlobal().
void PRVM_ED_Free | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ed ) |
Definition at line 314 of file prvm_edict.c.
References prvm_edict_private_t::allocation_origin, prvm_prog_t::edicts, prvm_edict_t::free, prvm_prog_t::free_edict, prvm_edict_t::freetime, host, Mem_Free, NULL, prvm_edict_t::priv, host_static_t::realtime, prvm_edict_t::required, and prvm_prog_t::reserved_edicts.
Referenced by PRVM_ED_CallSpawnFunction(), PRVM_ED_LoadFromFile(), SV_Ent_Create_f(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), VM_CL_makestatic(), VM_objerror(), VM_remove(), and VM_SV_makestatic().
void PRVM_ED_LoadFromFile | ( | prvm_prog_t * | prog, |
const char * | data ) |
Definition at line 1511 of file prvm_edict.c.
References COM_ParseToken_Simple(), com_token, Con_DPrintf(), data, prvm_prog_t::edicts, prvm_prog_t::entityfields, prvm_prog_t::error_cmd, prvm_edict_t::fields, prvm_edict_t::fp, prvm_edict_t::free, host, prvm_prog_t::load_edict, prvm_prog_t::loadintoworld, prvm_prog_t::name, prvm_prog_t::num_edicts, PRVM_ED_Alloc(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), PRVM_ED_Free(), PRVM_ED_ParseEdict(), PRVM_EDICT_NUM, prvm_reuseedicts_always_allow, host_static_t::realtime, and SV_LinkEdict().
Referenced by SV_SpawnServer(), VM_loadfromdata(), and VM_loadfromfile().
const char * PRVM_ED_ParseEdict | ( | prvm_prog_t * | prog, |
const char * | data, | ||
prvm_edict_t * | ent, | ||
qbool | saveload ) |
Definition at line 1281 of file prvm_edict.c.
References COM_ParseToken_Console(), COM_ParseToken_Simple(), com_token, Con_DPrintf(), Con_Printf(), data, developer_entityparsing, dp_strlcpy, dpsnprintf(), prvm_prog_t::error_cmd, prvm_edict_t::free, prvm_edict_t::freetime, host, cvar_t::integer, n, prvm_prog_t::name, PRVM_ED_FindField(), PRVM_ED_ParseEpair(), host_static_t::realtime, cvar_t::string, and sv_entfields_noescapes.
Referenced by PRVM_ED_LoadFromFile(), SV_Loadgame_f(), and VM_parseentitydata().
qbool PRVM_ED_ParseEpair | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent, | ||
mdef_t * | key, | ||
const char * | s, | ||
qbool | parsebackslash ) |
Definition at line 991 of file prvm_edict.c.
References prvm_eval_t::_float, prvm_eval_t::_int, Con_DPrintf(), Con_Printf(), DEF_SAVEGLOBAL, prvm_eval_t::edict, ev_entity, ev_field, ev_float, ev_function, ev_string, ev_vector, prvm_edict_t::fields, prvm_edict_t::fp, prvm_prog_t::fp, prvm_eval_t::function, prvm_prog_t::functions, prvm_prog_t::globals, i, int(), ISWHITESPACE, prvm_prog_t::limit_edicts, prvm_prog_t::max_edicts, prvm_prog_t::name, mdef_t::ofs, PRVM_AllocString(), PRVM_ED_FindField(), PRVM_ED_FindFunction(), PRVM_EDICT_NUM, PRVM_EDICT_TO_PROG, PRVM_GetString(), PRVM_MEM_IncreaseEdicts(), mdef_t::s_name, prvm_eval_t::string, strlen(), mdef_t::type, and prvm_eval_t::vector.
Referenced by PRVM_ED_EdictSet_f(), PRVM_ED_ParseEdict(), PRVM_ED_ParseGlobals(), PRVM_GlobalSet_f(), SV_Ent_Create_f(), and VM_putentityfieldstring().
void PRVM_ED_ParseGlobals | ( | prvm_prog_t * | prog, |
const char * | data ) |
Definition at line 940 of file prvm_edict.c.
References COM_ParseToken_Simple(), com_token, Con_DPrintf(), Con_Printf(), data, developer_entityparsing, dp_strlcpy, prvm_prog_t::error_cmd, cvar_t::integer, MAX_INPUTLINE, prvm_prog_t::name, NULL, PRVM_ED_FindGlobal(), and PRVM_ED_ParseEpair().
Referenced by SV_Loadgame_f().
void PRVM_ED_Print | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ed, | ||
const char * | wildcard_fieldname ) |
Definition at line 657 of file prvm_edict.c.
References Con_Print(), Con_Printf(), dp_strlcat, dpsnprintf(), prvm_prog_t::fielddefs, prvm_edict_t::fields, prvm_edict_t::fp, prvm_edict_t::free, i, prvm_eval_t::ivector, matchpattern(), MAX_INPUTLINE, name, prvm_prog_t::name, prvm_prog_t::numfielddefs, mdef_t::ofs, PRVM_GetString(), PRVM_NUM_FOR_EDICT, prvm_type_size, PRVM_ValueString(), mdef_t::s_name, strlen(), mdef_t::type, and type.
Referenced by CLVM_ExecuteProgram(), PRVM_ED_CallSpawnFunction(), PRVM_ED_PrintNum(), PRVM_LeakTest(), SVVM_ExecuteProgram(), VM_error(), and VM_objerror().
void PRVM_ED_PrintEdicts_f | ( | struct cmd_state_s * | cmd | ) |
void PRVM_ED_PrintNum | ( | prvm_prog_t * | prog, |
int | ent, | ||
const char * | wildcard_fieldname ) |
Definition at line 788 of file prvm_edict.c.
References PRVM_ED_Print(), and PRVM_EDICT_NUM.
Referenced by PRVM_ED_PrintEdict_f(), PRVM_ED_PrintEdicts_f(), and VM_eprint().
void PRVM_ED_Write | ( | prvm_prog_t * | prog, |
struct qfile_s * | f, | ||
prvm_edict_t * | ed ) |
Referenced by SV_Savegame_to(), and VM_writetofile().
void PRVM_ED_WriteGlobals | ( | prvm_prog_t * | prog, |
struct qfile_s * | f ) |
Referenced by SV_Savegame_to().
unsigned int PRVM_EDICT_NUM_ERROR | ( | prvm_prog_t * | prog, |
unsigned int | n, | ||
const char * | filename, | ||
int | fileline ) |
Definition at line 3275 of file prvm_edict.c.
References prvm_prog_t::error_cmd, n, and prvm_prog_t::name.
void PRVM_ExplicitCoverageEvent | ( | prvm_prog_t * | prog, |
mfunction_t * | func, | ||
int | statement ) |
Definition at line 924 of file prvm_exec.c.
References Con_Printf(), prvm_prog_t::explicit_covered, prvm_prog_t::name, prvm_prog_t::numexplicitcoveragestatements, and PRVM_WhereAmI().
Referenced by VM_coverage().
void PRVM_FreeString | ( | prvm_prog_t * | prog, |
int | num ) |
Definition at line 3481 of file prvm_edict.c.
References prvm_prog_t::error_cmd, prvm_prog_t::firstfreeknownstring, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_flags, prvm_prog_t::knownstrings_origin, prvm_prog_t::leaktest_active, min, prvm_prog_t::name, NULL, PRVM_Free, and PRVM_KNOWNSTRINGBASE.
Referenced by VM_strunzone().
prvm_prog_t * PRVM_FriendlyProgFromString | ( | const char * | str | ) |
for console commands (prints error if name unknown and returns NULL, prints error if prog not loaded and returns NULL)
Definition at line 184 of file prvm_edict.c.
References Con_Printf(), prvm_prog_t::loaded, NULL, and PRVM_ProgFromString().
Referenced by PRVM_Breakpoint_f(), PRVM_CallProfile_f(), PRVM_ChildProfile_f(), PRVM_ED_Count_f(), PRVM_ED_EdictGet_f(), PRVM_ED_EdictSet_f(), PRVM_ED_GlobalGet_f(), PRVM_ED_PrintEdict_f(), PRVM_ED_PrintEdicts_f(), PRVM_EdictWatchpoint_f(), PRVM_Fields_f(), PRVM_GameCommand(), PRVM_Global_f(), PRVM_Globals_f(), PRVM_GlobalSet_f(), PRVM_GlobalWatchpoint_f(), PRVM_PrintFunction_f(), and PRVM_Profile_f().
void PRVM_GarbageCollection | ( | prvm_prog_t * | prog | ) |
Definition at line 3757 of file prvm_edict.c.
References cl, Con_DPrintf(), prvm_prog_t::edictsfields, prvm_prog_t::entityfields, ev_string, prvm_prog_t::fielddefs, prvm_prog_garbagecollection_state_t::fields_mark_progress, prvm_prog_garbagecollection_state_t::fields_mark_progress_entity, prvm_prog_t::firstfreeknownstring, server_t::frametime, prvm_prog_t::gc, prvm_prog_t::globaldefs, prvm_prog_t::globals, prvm_prog_garbagecollection_state_t::globals_mark_progress, cvar_t::integer, prvm_prog_t::ip, KNOWNSTRINGFLAG_ENGINE, KNOWNSTRINGFLAG_GCMARK, KNOWNSTRINGFLAG_GCPRUNE, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_flags, prvm_prog_garbagecollection_state_t::knownstrings_sweep_progress, Mem_Free, min, prvm_prog_t::name, NULL, prvm_prog_t::num_edicts, prvm_prog_t::numfielddefs, prvm_prog_t::numglobaldefs, prvm_prog_t::numknownstrings, mdef_t::ofs, prvm_garbagecollection_enable, prvm_garbagecollection_notify, prvm_garbagecollection_scan_limit, prvm_garbagecollection_strings, PRVM_GC_FIELDS_MARK, PRVM_GC_GLOBALS_MARK, PRVM_GC_KNOWNSTRINGS_SWEEP, PRVM_GC_RESET, PRVM_GC_START, PRVM_GetString(), PRVM_KNOWNSTRINGBASE, client_state_t::realframetime, mdef_t::s_name, prvm_prog_garbagecollection_state_t::stage, sv, SVVM_prog, and mdef_t::type.
Referenced by CL_VM_DrawHud(), CL_VM_UpdateView(), MP_Draw(), and SV_Physics().
const char * PRVM_GetString | ( | prvm_prog_t * | prog, |
int | num ) |
Definition at line 3283 of file prvm_edict.c.
References sizebuf_t::cursize, sizebuf_t::data, cvar_t::integer, KNOWNSTRINGFLAG_GCMARK, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_flags, sizebuf_t::maxsize, prvm_prog_t::numknownstrings, PRVM_KNOWNSTRINGBASE, prvm_stringdebug, prvm_prog_t::strings, prvm_prog_t::stringssize, prvm_prog_t::tempstringsbuf, and VM_Warning().
Referenced by CLVM_ExecuteProgram(), FindViewthing(), NetConn_BuildStatusResponse(), PRVM_CallProfile(), PRVM_ED_CallSpawnFunction(), PRVM_ED_FindField(), PRVM_ED_FindFunction(), PRVM_ED_FindGlobal(), PRVM_ED_ParseEpair(), PRVM_ED_Print(), PRVM_ED_Write(), PRVM_ED_WriteGlobals(), PRVM_Fields_f(), PRVM_FunctionCoverageEvent(), PRVM_GarbageCollection(), PRVM_Globals_f(), PRVM_GlobalString(), PRVM_GlobalStringNoContents(), PRVM_IsEdictReferenced(), PRVM_IsEdictRelevant(), PRVM_MarkReferencedEdicts(), PRVM_PrintStatement(), PRVM_Profile(), PRVM_Prog_Load(), PRVM_ShortStackTrace(), PRVM_StackTrace(), PRVM_UglyValueString(), PRVM_ValueString(), PRVM_WhereAmI(), SV_CheckVelocity(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), SV_PrepareEntityForSending(), SV_Savegame_to(), SV_SendServerinfo(), SV_SpawnServer(), SV_Status_f(), SV_UnstickEntity(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), SVVM_ExecuteProgram(), VM_error(), VM_objerror(), VM_SV_droptofloor(), and while().
char * PRVM_GlobalString | ( | prvm_prog_t * | prog, |
int | ofs, | ||
char * | line, | ||
size_t | linelength ) |
Definition at line 602 of file prvm_edict.c.
References dpsnprintf(), prvm_prog_t::fp, prvm_prog_t::globals, MAX_INPUTLINE, ofs, PRVM_ED_GlobalAtOfs(), PRVM_GetString(), PRVM_ValueString(), mdef_t::s_name, and mdef_t::type.
Referenced by PRVM_PrintStatement().
char * PRVM_GlobalStringNoContents | ( | prvm_prog_t * | prog, |
int | ofs, | ||
char * | line, | ||
size_t | linelength ) |
Definition at line 628 of file prvm_edict.c.
References dpsnprintf(), ofs, PRVM_ED_GlobalAtOfs(), PRVM_GetString(), and mdef_t::s_name.
Definition at line 3198 of file prvm_edict.c.
References CF_SHARED, Cmd_AddCommand(), Con_DPrintf(), Cvar_RegisterVariable(), i, prvm_backtraceforwarnings, PRVM_Breakpoint_f(), prvm_breakpointdump, PRVM_CallProfile_f(), PRVM_ChildProfile_f(), prvm_coverage, PRVM_ED_Count_f(), PRVM_ED_EdictGet_f(), PRVM_ED_EdictSet_f(), PRVM_ED_GlobalGet_f(), PRVM_ED_PrintEdict_f(), PRVM_ED_PrintEdicts_f(), PRVM_EdictWatchpoint_f(), prvm_errordump, PRVM_Fields_f(), PRVM_GameCommand_Client_f(), PRVM_GameCommand_Menu_f(), PRVM_GameCommand_Server_f(), prvm_gameplayfix_div0is0, prvm_garbagecollection_enable, prvm_garbagecollection_notify, prvm_garbagecollection_scan_limit, prvm_garbagecollection_strings, PRVM_Global_f(), PRVM_Globals_f(), PRVM_GlobalSet_f(), PRVM_GlobalWatchpoint_f(), prvm_language, prvm_leaktest, prvm_leaktest_follow_targetname, prvm_leaktest_ignore_classnames, PRVM_PrintFunction_f(), PRVM_Profile_f(), prvm_reuseedicts_neverinsameframe, prvm_reuseedicts_startuptime, prvm_runawaycheck, prvm_statementprofiling, prvm_stringdebug, prvm_timeprofiling, prvm_traceqc, sv_entfields_noescapes, Sys_CheckParm(), vm_m_extensions, and vm_sv_extensions.
Referenced by Host_Init().
void PRVM_Init_Exec | ( | prvm_prog_t * | prog | ) |
Definition at line 892 of file prvm_exec.c.
References prvm_prog_t::depth, and prvm_prog_t::localstack_used.
Referenced by PRVM_Prog_Load().
void PRVM_MEM_IncreaseEdicts | ( | prvm_prog_t * | prog | ) |
Definition at line 105 of file prvm_edict.c.
References prvm_prog_t::begin_increase_edicts, prvm_prog_t::edictprivate, prvm_prog_t::edictprivate_size, prvm_prog_t::edicts, prvm_prog_t::edictsfields, prvm_prog_t::end_increase_edicts, prvm_prog_t::entityfields, prvm_prog_t::entityfieldsarea, prvm_edict_t::fields, prvm_edict_t::fp, prvm_prog_t::fp, i, prvm_prog_t::limit_edicts, prvm_prog_t::max_edicts, Mem_Realloc, min, prvm_edict_t::priv, prvm_prog_t::progs_mempool, and prvm_edict_t::required.
Referenced by PRVM_ED_Alloc(), PRVM_ED_ParseEpair(), and SV_Loadgame_f().
void PRVM_PrintFunction_f | ( | struct cmd_state_s * | cmd | ) |
Referenced by PRVM_Init().
void PRVM_PrintFunctionStatements | ( | prvm_prog_t * | prog, |
const char * | name ) |
Definition at line 374 of file prvm_exec.c.
References Con_Printf(), mfunction_t::first_statement, prvm_prog_t::functions, i, cvar_t::integer, mfunction_t::locals, name, prvm_prog_t::name, prvm_prog_t::numfunctions, prvm_prog_t::numstatements, mfunction_t::parm_start, prvm_coverage, PRVM_ED_FindFunction(), PRVM_PrintStatement(), prvm_prog_t::statement_profile, prvm_prog_t::statements, and prvm_prog_t::xfunction.
Referenced by PRVM_PrintFunction_f().
void PRVM_PrintState | ( | prvm_prog_t * | prog, |
int | stack_index ) |
Definition at line 726 of file prvm_exec.c.
References Con_Printf(), depth, prvm_prog_t::depth, prvm_stack_t::f, mfunction_t::first_statement, i, PRVM_PrintStatement(), PRVM_StackTrace(), prvm_stack_t::s, prvm_prog_t::stack, prvm_prog_t::statements, prvm_prog_t::statestring, prvm_prog_t::xfunction, and prvm_prog_t::xstatement.
Referenced by PRVM_Breakpoint(), PRVM_Crash(), and VM_Warning().
void PRVM_Profile | ( | prvm_prog_t * | prog, |
int | maxfunctions, | ||
double | mintime, | ||
int | sortby ) |
Definition at line 539 of file prvm_exec.c.
References mfunction_t::builtinsprofile, mfunction_t::builtinsprofile_total, mfunction_t::callcount, Con_Printf(), f, mfunction_t::first_statement, prvm_prog_t::functions, i, cvar_t::integer, max, prvm_prog_t::name, NULL, prvm_prog_t::numfunctions, mfunction_t::profile, mfunction_t::profile_total, PRVM_GetString(), prvm_timeprofiling, mfunction_t::s_name, mfunction_t::tbprofile, mfunction_t::tprofile, and mfunction_t::tprofile_total.
Referenced by PRVM_ChildProfile_f(), PRVM_Profile_f(), and while().
void PRVM_Profile_f | ( | struct cmd_state_s * | cmd | ) |
Referenced by PRVM_Init().
void PRVM_Prog_Init | ( | prvm_prog_t * | prog, |
struct cmd_state_s * | cmd ) |
Initializing a vm: Call InitProg with the num Set up the fields marked with [INIT] in the prog struct Load a program with LoadProgs NB: Load expects to be called right after Reset (which is called by Init)
Referenced by CL_VM_Init(), MP_Init(), and SV_VM_Setup().
void PRVM_Prog_Load | ( | prvm_prog_t * | prog, |
const char * | filename, | ||
unsigned char * | data, | ||
fs_offset_t | size, | ||
void | CheckRequiredFuncsprvm_prog_t *prog, const char *filename, | ||
int | numrequiredfields, | ||
prvm_required_field_t * | required_field, | ||
int | numrequiredglobals, | ||
prvm_required_field_t * | required_global ) |
Definition at line 2024 of file prvm_edict.c.
References prvm_eval_t::_float, a, b, dprograms_v7_t::blockscompressed, buf, CF_PRIVATE, CLVM_prog, Con_DPrintf(), Con_Printf(), CON_WARN, prvm_prog_t::console_cmd, dprograms_t::crc, CRC_Block(), Crypto_LoadKeys(), csqc_progname, cvar(), Cvar_FindVar(), Cvar_Get(), data, DEF_SAVEGLOBAL, dpsnprintf(), dprograms_t::entityfields, prvm_prog_t::entityfields, prvm_prog_t::error_cmd, ev_float, ev_string, ev_vector, prvm_prog_t::explicit_profile, f, prvm_prog_t::fielddefs, prvm_prog_t::filecrc, mfunction_t::first_statement, prvm_prog_t::flag, prvm_prog_t::fp, FS_Close(), FS_LoadFile(), FS_OpenRealFile(), FS_Printf(), prvm_prog_t::functions, prvm_prog_t::globaldefs, prvm_prog_t::globals, host, Host_LockSession(), i, prvm_prog_t::init_cmd, prvm_prog_t::inittime, int(), prvm_prog_t::ip, ISWHITESPACE, prvm_prog_t::knownstrings, prvm_prog_t::knownstrings_flags, prvm_prog_t::limit_edicts, LittleLong, LittleShort, prvm_prog_t::loaded, mfunction_t::locals, MAX_INPUTLINE, prvm_prog_t::maxknownstrings, Mem_Alloc, Mem_ExpandableArray_NewArray(), Mem_Free, name, prvm_prog_t::name, NULL, dprograms_v7_t::numbodylessfuncs, prvm_prog_t::numexplicitcoveragestatements, dprograms_t::numfielddefs, prvm_prog_t::numfielddefs, dprograms_t::numfunctions, prvm_prog_t::numfunctions, dprograms_t::numglobaldefs, prvm_prog_t::numglobaldefs, dprograms_t::numglobals, prvm_prog_t::numglobals, prvm_prog_t::numknownstrings, mfunction_t::numparms, dprograms_t::numstatements, prvm_prog_t::numstatements, dprograms_t::numstrings, prvm_prog_t::numstrings, dprograms_v7_t::numtypes, mdef_t::ofs, ofs, dprograms_t::ofs_fielddefs, dprograms_t::ofs_functions, dprograms_t::ofs_globaldefs, dprograms_t::ofs_globals, dprograms_t::ofs_statements, dprograms_t::ofs_strings, mstatement_t::op, OP_ADD_F, OP_ADD_FI, OP_ADD_I, OP_ADD_IF, OP_ADD_PIW, OP_ADD_V, OP_ADDRESS, OP_AND_F, OP_AND_FI, OP_AND_I, OP_AND_IF, OP_BITAND_F, OP_BITAND_FI, OP_BITAND_I, OP_BITAND_IF, OP_BITOR_F, OP_BITOR_FI, OP_BITOR_I, OP_BITOR_IF, OP_BOUNDCHECK, OP_CALL0, OP_CALL1, OP_CALL2, OP_CALL3, OP_CALL4, OP_CALL5, OP_CALL6, OP_CALL7, OP_CALL8, OP_CONV_FTOI, OP_CONV_ITOF, OP_DIV_F, OP_DIV_FI, OP_DIV_I, OP_DIV_IF, OP_DIV_U, OP_DIV_VF, OP_DONE, OP_EQ_E, OP_EQ_F, OP_EQ_FI, OP_EQ_FNC, OP_EQ_I, OP_EQ_IF, OP_EQ_S, OP_EQ_V, OP_GE_F, OP_GE_FI, OP_GE_I, OP_GE_IF, OP_GLOAD_ENT, OP_GLOAD_F, OP_GLOAD_FLD, OP_GLOAD_FNC, OP_GLOAD_I, OP_GLOAD_S, OP_GLOAD_V, OP_GLOBALADDRESS, OP_GOTO, OP_GSTOREP_ENT, OP_GSTOREP_F, OP_GSTOREP_FLD, OP_GSTOREP_FNC, OP_GSTOREP_I, OP_GSTOREP_S, OP_GSTOREP_V, OP_GT_F, OP_GT_FI, OP_GT_I, OP_GT_IF, OP_IF, OP_IFNOT, OP_LE_F, OP_LE_FI, OP_LE_I, OP_LE_IF, OP_LE_U, OP_LOAD_ENT, OP_LOAD_F, OP_LOAD_FLD, OP_LOAD_FNC, OP_LOAD_I, OP_LOAD_P, OP_LOAD_S, OP_LOAD_V, OP_LOADA_ENT, OP_LOADA_F, OP_LOADA_FLD, OP_LOADA_FNC, OP_LOADA_I, OP_LOADA_S, OP_LOADA_V, OP_LOADP_ENT, OP_LOADP_F, OP_LOADP_FLD, OP_LOADP_FNC, OP_LOADP_I, OP_LOADP_S, OP_LOADP_V, OP_LSHIFT_I, OP_LT_F, OP_LT_FI, OP_LT_I, OP_LT_IF, OP_LT_U, OP_MUL_F, OP_MUL_FI, OP_MUL_FV, OP_MUL_I, OP_MUL_IF, OP_MUL_V, OP_MUL_VF, OP_MUL_VI, OP_NE_E, OP_NE_F, OP_NE_FI, OP_NE_FNC, OP_NE_I, OP_NE_IF, OP_NE_S, OP_NE_V, OP_NOT_ENT, OP_NOT_F, OP_NOT_FNC, OP_NOT_I, OP_NOT_S, OP_NOT_V, OP_OR_F, OP_OR_FI, OP_OR_I, OP_OR_IF, OP_RETURN, OP_RSHIFT_I, OP_RSHIFT_U, OP_STATE, OP_STORE_ENT, OP_STORE_F, OP_STORE_FLD, OP_STORE_FNC, OP_STORE_I, OP_STORE_P, OP_STORE_S, OP_STORE_V, OP_STOREP_ENT, OP_STOREP_F, OP_STOREP_FLD, OP_STOREP_FNC, OP_STOREP_I, OP_STOREP_S, OP_STOREP_V, OP_SUB_F, OP_SUB_FI, OP_SUB_I, OP_SUB_IF, OP_SUB_V, mstatement_t::operand, dfunction_t::parm_size, mfunction_t::parm_size, mfunction_t::parm_start, prvm_prog_t::profiletime, PROG_SECONDARYVERSION16, PROG_SECONDARYVERSION32, PROG_VERSION, prvm_prog_t::progs_crc, prvm_prog_t::progs_entityfields, prvm_prog_t::progs_mempool, prvm_prog_t::progs_numfielddefs, prvm_prog_t::progs_numfunctions, prvm_prog_t::progs_numglobaldefs, prvm_prog_t::progs_numglobals, prvm_prog_t::progs_numstatements, prvm_prog_t::progs_numstrings, prvm_prog_t::progs_version, PRVM_CSQC_SIMPLE, PRVM_FindOffsets(), PRVM_GetString(), PRVM_GLOBALFIELDVALUE, PRVM_Init_Exec(), prvm_language, PRVM_LoadLNO(), PRVM_MEM_Alloc(), PRVM_PO_Load(), PRVM_PO_Lookup(), PRVM_PO_UnparseString(), prvm_prog_list, PRVM_SetEngineString(), PRVM_UpdateBreakpoints(), host_static_t::realtime, remapglobal, mfunction_t::s_file, mdef_t::s_name, mfunction_t::s_name, dprograms_v7_t::secondaryversion, size, prvm_prog_t::starttime, prvm_prog_t::statement_profile, prvm_prog_t::statements, cvar_t::string, prvm_eval_t::string, prvm_prog_t::stringbuffersarray, prvm_prog_t::strings, prvm_prog_t::stringssize, strlen(), Sys_DirtyTime(), mdef_t::type, prvm_required_field_t::type, type, va(), value, prvm_eval_t::vector, VectorClear, and dprograms_t::version.
Referenced by CL_VM_Init(), MP_Init(), and SV_VM_Setup().
void PRVM_Prog_Reset | ( | prvm_prog_t * | prog | ) |
Definition at line 1944 of file prvm_edict.c.
References prvm_prog_t::break_statement, sizebuf_t::cursize, sizebuf_t::data, ev_void, prvm_prog_t::loaded, Mem_Free, Mem_FreePool, prvm_prog_t::po, prvm_prog_t::progs_mempool, PRVM_LeakTest(), PRVM_PO_Destroy(), prvm_prog_t::reset_cmd, prvm_prog_t::tempstringsbuf, prvm_prog_t::watch_field_type, and prvm_prog_t::watch_global_type.
Referenced by CL_VM_ShutDown(), MP_Shutdown(), PRVM_Crash(), PRVM_Prog_Init(), and SV_VM_Shutdown().
prvm_prog_t * PRVM_ProgFromString | ( | const char * | str | ) |
Definition at line 166 of file prvm_edict.c.
References CLVM_prog, NULL, and SVVM_prog.
Referenced by PRVM_Breakpoint_f(), PRVM_EdictWatchpoint_f(), PRVM_FriendlyProgFromString(), and PRVM_GlobalWatchpoint_f().
int PRVM_SetEngineString | ( | prvm_prog_t * | prog, |
const char * | s ) |
Definition at line 3390 of file prvm_edict.c.
References Con_DPrintf(), sizebuf_t::data, developer_insane, prvm_prog_t::error_cmd, prvm_prog_t::firstfreeknownstring, i, cvar_t::integer, KNOWNSTRINGFLAG_ENGINE, KNOWNSTRINGFLAG_GCMARK, prvm_prog_t::knownstrings, sizebuf_t::maxsize, prvm_prog_t::numknownstrings, PRVM_KNOWNSTRINGBASE, PRVM_NewKnownString(), prvm_prog_t::strings, prvm_prog_t::stringssize, and prvm_prog_t::tempstringsbuf.
Referenced by CL_VM_Init(), PRVM_Prog_Load(), PRVM_SetTempString(), SV_Name(), SV_Playermodel_f(), SV_Playerskin_f(), SV_SpawnServer(), SV_UpdateToReliableMessages(), SVVM_init_edict(), VM_CL_modelnameforindex(), VM_CL_setmodel(), VM_CL_setmodelindex(), VM_SV_modelnameforindex(), VM_SV_setmodel(), and VM_SV_setmodelindex().
int PRVM_SetTempString | ( | prvm_prog_t * | prog, |
const char * | s, | ||
size_t | slen ) |
Takes an strlen (not a buffer size).
Definition at line 3423 of file prvm_edict.c.
References Con_DPrintf(), sizebuf_t::cursize, sizebuf_t::data, developer_insane, prvm_prog_t::error_cmd, cvar_t::integer, max, sizebuf_t::maxsize, Mem_Alloc, Mem_Free, prvm_prog_t::name, NULL, prvm_prog_t::progs_mempool, PRVM_SetEngineString(), size, prvm_prog_t::tempstringsbuf, and VM_TEMPSTRING_MAXSIZE.
Referenced by CL_VM_Event_Sound(), CL_VM_Parse_CenterPrint(), CL_VM_Parse_Print(), CL_VM_Parse_StuffCmd(), PRVM_ConsoleCommand(), PRVM_GameCommand(), SV_ReadClientMessage(), uri_to_string_callback(), VM_altstr_get(), VM_altstr_ins(), VM_altstr_prepare(), VM_altstr_set(), VM_buf_implode(), VM_bufstr_get(), VM_chr(), VM_chr2str(), VM_CL_getextresponse(), VM_CL_getplayerkey(), VM_CL_getstats(), VM_CL_gettaginfo(), VM_CL_ReadPicture(), VM_CL_ReadString(), VM_CL_serverkey(), VM_CL_skel_get_bonename(), VM_cvar_defstring(), VM_cvar_description(), VM_cvar_string(), VM_digest_hex(), VM_entityfieldname(), VM_etos(), VM_fgets(), VM_findkeysforcommand(), VM_ftos(), VM_getentityfieldstring(), VM_getkeybind(), VM_getsurfacetexture(), VM_infoadd(), VM_infoget(), VM_keynumtostring(), VM_M_crypto_getencryptlevel(), VM_M_crypto_getidfp(), VM_M_crypto_getkeyfp(), VM_M_crypto_getmyidfp(), VM_M_crypto_getmykeyfp(), VM_M_getgamedirinfo(), VM_M_getserverliststring(), VM_netaddress_resolve(), VM_search_getfilename(), VM_SetTraceGlobals(), VM_sprintf(), VM_strcat(), VM_strconv(), VM_strdecolorize(), VM_strftime(), VM_strireplace(), VM_strpad(), VM_strreplace(), VM_strtolower(), VM_strtoupper(), VM_substring(), VM_SV_getextresponse(), VM_SV_gettaginfo(), VM_SV_serverkey(), VM_SV_skel_get_bonename(), VM_tokenize(), VM_tokenize_console(), VM_tokenizebyseparator(), VM_uncolorstring(), VM_uri_escape(), VM_uri_unescape(), VM_vtos(), and VM_whichpack().
void PRVM_ShortStackTrace | ( | prvm_prog_t * | prog, |
char * | buf, | ||
size_t | bufsize ) |
Definition at line 464 of file prvm_exec.c.
References buf, prvm_prog_t::depth, dp_stpecpy(), dp_strlcpy, dpsnprintf(), f, prvm_stack_t::f, i, max, prvm_prog_t::name, PRVM_GetString(), prvm_stack_t::s, prvm_prog_t::stack, va(), prvm_prog_t::xfunction, and prvm_prog_t::xstatement.
Referenced by PRVM_AllocationOrigin().
void PRVM_StackTrace | ( | prvm_prog_t * | prog | ) |
Definition at line 436 of file prvm_exec.c.
References Con_Print(), Con_Printf(), prvm_prog_t::depth, f, prvm_stack_t::f, i, PRVM_GetString(), prvm_stack_t::s, prvm_prog_t::stack, prvm_prog_t::statement_columnnums, prvm_prog_t::statement_linenums, prvm_prog_t::xfunction, and prvm_prog_t::xstatement.
Referenced by PRVM_PrintState(), and VM_stackdump().
char * PRVM_UglyValueString | ( | prvm_prog_t * | prog, |
etype_t | type, | ||
prvm_eval_t * | val, | ||
char * | line, | ||
size_t | linelength ) |
Definition at line 513 of file prvm_edict.c.
References prvm_eval_t::_float, prvm_eval_t::_int, DEF_SAVEGLOBAL, dp_strlcpy, dpsnprintf(), prvm_eval_t::edict, ev_entity, ev_field, ev_float, ev_function, ev_string, ev_vector, ev_void, f, prvm_eval_t::function, prvm_prog_t::functions, i, int(), NULL, prvm_prog_t::progs_numfunctions, PRVM_ED_FieldAtOfs(), PRVM_FLOAT_LOSSLESS_FORMAT, PRVM_GetString(), PRVM_PRIi, PRVM_VECTOR_LOSSLESS_FORMAT, mdef_t::s_name, prvm_eval_t::string, type, and prvm_eval_t::vector.
Referenced by PRVM_ED_EdictGet_f(), PRVM_ED_GlobalGet_f(), PRVM_ED_Write(), PRVM_ED_WriteGlobals(), PRVM_Watchpoint(), and VM_getentityfieldstring().
void PRVM_Watchpoint | ( | prvm_prog_t * | prog, |
int | stack_index, | ||
const char * | text, | ||
etype_t | type, | ||
prvm_eval_t * | o, | ||
prvm_eval_t * | n ) |
Definition at line 3009 of file prvm_edict.c.
References buf, DEF_SAVEGLOBAL, dpsnprintf(), ev_vector, n, PRVM_Breakpoint(), PRVM_UglyValueString(), and type.
Referenced by while().
void SVVM_ExecuteProgram | ( | prvm_prog_t * | prog, |
func_t | fnum, | ||
const char * | errormessage ) |
Definition at line 1183 of file prvm_exec.c.
References prvm_prog_t::break_statement, CACHE_CHANGING, CACHE_UNCHANGING, mfunction_t::callcount, Con_DPrintf(), sizebuf_t::cursize, prvm_prog_t::depth, developer_insane, DO_DECLARE, prvm_prog_t::error_cmd, ev_void, prvm_prog_t::functions, cvar_t::integer, NULL, prvm_prog_t::numfunctions, PRVM_allglobaledict, prvm_coverage, PRVM_ED_Print(), PRVM_EnterFunction(), PRVM_FunctionCoverageEvent(), PRVM_GetString(), PRVM_PROG_TO_EDICT, prvm_timeprofiling, prvm_traceqc, mfunction_t::s_name, self, prvm_prog_t::statements, SV_FlushBroadcastMessages(), SVVM_prog, Sys_DirtyTime(), prvm_prog_t::tempstringsbuf, mfunction_t::totaltime, prvm_prog_t::trace, prvm_prog_t::watch_field_type, prvm_prog_t::watch_global_type, and prvm_prog_t::xfunction.
Referenced by SV_VM_Setup().
void SVVM_init_cmd | ( | prvm_prog_t * | prog | ) |
void SVVM_reset_cmd | ( | prvm_prog_t * | prog | ) |
Definition at line 3923 of file svvm_cmds.c.
References sv, VM_Cmd_Reset(), server_t::world, and World_End().
Referenced by SV_VM_Setup().
void VM_Cmd_Init | ( | prvm_prog_t * | prog | ) |
Definition at line 5265 of file prvm_cmds.c.
References VM_Files_Init(), and VM_Search_Init().
Referenced by CLVM_init_cmd(), MVM_init_cmd(), and SVVM_init_cmd().
void VM_Cmd_Reset | ( | prvm_prog_t * | prog | ) |
Definition at line 5274 of file prvm_cmds.c.
References animatemodel_reset(), CL_PurgeOwner(), MENUOWNER, VM_Files_CloseAll(), and VM_Search_Reset().
Referenced by CLVM_reset_cmd(), MVM_reset_cmd(), and SVVM_reset_cmd().
void VM_FrameBlendFromFrameGroupBlend | ( | struct frameblend_s * | frameblend, |
const struct framegroupblend_s * | framegroupblend, | ||
const struct model_s * | model, | ||
double | curtime ) |
Referenced by CL_GetEntityLocalTagMatrix(), CL_RelinkStaticEntities(), CL_UpdateRenderEntity(), CSQC_AddRenderEdict(), SV_GetEntityLocalTagMatrix(), SV_GetTagMatrix(), SV_LinkEdict(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), VM_CL_gettaginfo(), VM_CL_skel_build(), VM_SV_gettaginfo(), and VM_SV_skel_build().
void VM_GenerateFrameGroupBlend | ( | prvm_prog_t * | prog, |
struct framegroupblend_s * | framegroupblend, | ||
const prvm_edict_t * | ed ) |
void VM_RemoveEdictSkeleton | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ed ) |
Definition at line 261 of file prvm_cmds.c.
References Mem_Free, prvm_edict_t::priv, and prvm_edict_t::server.
Referenced by CLVM_free_edict(), SVVM_free_edict(), and VM_UpdateEdictSkeleton().
void VM_UpdateEdictSkeleton | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ed, | ||
const struct model_s * | edmodel, | ||
const struct frameblend_s * | frameblend ) |
void VM_Warning | ( | prvm_prog_t * | prog, |
const char * | fmt, | ||
... ) |
Definition at line 25 of file prvm_cmds.c.
References Con_Printf(), CON_WARN, dpvsnprintf(), host, cvar_t::integer, MAX_INPUTLINE, prvm_prog_t::name, sys_t::outfd, prvm_backtraceforwarnings, PRVM_PrintState(), host_static_t::realtime, and sys.
Referenced by PRVM_GetString(), VM_bprint(), VM_buf_copy(), VM_buf_cvarlist(), VM_buf_del(), VM_buf_getsize(), VM_buf_implode(), VM_buf_loadfile(), VM_buf_sort(), VM_buf_writefile(), VM_bufstr_add(), VM_bufstr_find(), VM_bufstr_free(), VM_bufstr_get(), VM_bufstr_set(), VM_changelevel(), VM_changepitch(), VM_changeyaw(), VM_CL_checkpvs(), VM_CL_copyentity(), VM_CL_droptofloor(), VM_CL_getstatf(), VM_CL_getstati(), VM_CL_getstats(), VM_CL_gettagindex(), VM_CL_gettaginfo(), VM_CL_lightstyle(), VM_CL_makestatic(), VM_CL_ParticleTheme(), VM_CL_ParticleThemeFree(), VM_CL_ParticleThemeSave(), VM_CL_pointsound(), VM_CL_precache_model(), VM_CL_R_PolygonEnd(), VM_CL_R_PolygonVertex(), VM_CL_R_SetView(), VM_CL_ResetParticle(), VM_CL_setattachment(), VM_CL_setmodel(), VM_CL_setmodelindex(), VM_CL_setorigin(), VM_CL_setsize(), VM_CL_sound(), VM_CL_SpawnParticle(), VM_CL_SpawnParticleDelayed(), VM_CL_tracetoss(), VM_CL_walkmove(), VM_cvar_set(), VM_drawcharacter(), VM_drawcolorcodedstring(), VM_drawfill(), VM_drawpic(), VM_drawrotpic(), VM_drawstring(), VM_drawsubpic(), VM_entityfieldname(), VM_entityfieldtype(), VM_fclose(), VM_fgets(), VM_fopen(), VM_fputs(), VM_getentityfieldstring(), VM_getsoundtime(), VM_gettime(), VM_loadfont(), VM_loadfromfile(), VM_localsound(), VM_M_getserverlistnumber(), VM_M_getserverliststat(), VM_M_getserverliststring(), VM_M_setserverlistmasknumber(), VM_M_setserverlistmaskstring(), VM_matchpattern(), VM_modulo(), VM_nudgeoutofsolid(), VM_physics_addforce(), VM_physics_addtorque(), VM_physics_enable(), VM_precache_sound(), VM_putentityfieldstring(), VM_registercvar(), VM_remove(), VM_search_begin(), VM_search_end(), VM_search_getfilename(), VM_search_getsize(), VM_sprint(), VM_sprintf(), VM_SV_AddStat(), VM_SV_aim(), VM_SV_centerprint(), VM_SV_checkpvs(), VM_SV_copyentity(), VM_SV_dropclient(), VM_SV_droptofloor(), VM_SV_effect(), VM_SV_gettagindex(), VM_SV_gettaginfo(), VM_SV_makestatic(), VM_SV_modelnameforindex(), VM_SV_pointsound(), VM_SV_setattachment(), VM_SV_setmodel(), VM_SV_setmodelindex(), VM_SV_setorigin(), VM_SV_setsize(), VM_SV_sound(), VM_SV_sprint(), VM_SV_stuffcmd(), VM_SV_tracetoss(), VM_SV_walkmove(), VM_uri_get(), VM_VarString(), VM_writetofile(), while(), and WriteDest().
|
extern |
Definition at line 31 of file prvm_edict.c.
|
extern |
Definition at line 27 of file prvm_edict.c.
Referenced by Cvar_IsAutoCvar(), Cvar_UpdateAutoCvar(), PRVM_Breakpoint_f(), PRVM_EdictWatchpoint_f(), PRVM_GlobalWatchpoint_f(), PRVM_Prog_Load(), and PRVM_UpdateBreakpoints().
|
extern |
for consistency : I think a goal of this sub-project is to make the new vm mostly independent from the old one, thus if it's necessary, I copy everything
Definition at line 29 of file prvm_edict.c.
Referenced by PRVM_ED_Print(), PRVM_ED_Write(), PRVM_Fields_f(), and VM_getentityfieldstring().
|
extern |
Definition at line 5003 of file clvm_cmds.c.
Referenced by CL_VM_Init().
|
extern |
Definition at line 5654 of file clvm_cmds.c.
Referenced by CL_VM_Init().
|
extern |
Definition at line 1070 of file mvm_cmds.c.
Referenced by MP_Init().
|
extern |
Definition at line 13 of file mvm_cmds.c.
Referenced by MP_Init(), and PRVM_Init().
|
extern |
Definition at line 1745 of file mvm_cmds.c.
Referenced by MP_Init().
|
extern |
Definition at line 3265 of file svvm_cmds.c.
Referenced by SV_VM_Setup().
|
extern |
client also uses this
Definition at line 11 of file svvm_cmds.c.
Referenced by CL_VM_Init(), PRVM_Init(), and SV_VM_Setup().
|
extern |
Definition at line 3916 of file svvm_cmds.c.
Referenced by SV_VM_Setup().