![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "progsvm.h"
#include "clprogdefs.h"
#include "csprogs.h"
#include "cl_collision.h"
#include "snd_main.h"
#include "clvm_cmds.h"
#include "prvm_cmds.h"
#include "prvm_offsets.h"
Go to the source code of this file.
#define CL_REQFIELDS (sizeof(cl_reqfields) / sizeof(prvm_required_field_t)) |
Definition at line 64 of file csprogs.c.
Referenced by CL_VM_Init().
#define CL_REQGLOBALS (sizeof(cl_reqglobals) / sizeof(prvm_required_field_t)) |
Definition at line 143 of file csprogs.c.
Referenced by CL_VM_Init().
#define CSQC_RETURNVAL prog->globals.fp[OFS_RETURN] |
Definition at line 34 of file csprogs.c.
Referenced by CL_VM_Event_Sound(), CL_VM_InputEvent(), and CL_VM_Parse_TempEntity().
#define PRVM_DECLARE_clientfieldedict | ( | x | ) |
#define PRVM_DECLARE_clientfieldedict | ( | x | ) |
#define PRVM_DECLARE_clientfieldfloat | ( | x | ) |
#define PRVM_DECLARE_clientfieldfloat | ( | x | ) |
#define PRVM_DECLARE_clientfieldfunction | ( | x | ) |
#define PRVM_DECLARE_clientfieldfunction | ( | x | ) |
#define PRVM_DECLARE_clientfieldstring | ( | x | ) |
#define PRVM_DECLARE_clientfieldstring | ( | x | ) |
#define PRVM_DECLARE_clientfieldvector | ( | x | ) |
#define PRVM_DECLARE_clientfieldvector | ( | x | ) |
#define PRVM_DECLARE_clientfunction | ( | x | ) |
#define PRVM_DECLARE_clientfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobaledict | ( | x | ) |
#define PRVM_DECLARE_clientglobalfloat | ( | x | ) |
#define PRVM_DECLARE_clientglobalfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobalfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobalstring | ( | x | ) |
#define PRVM_DECLARE_clientglobalvector | ( | x | ) |
#define PRVM_DECLARE_field | ( | x | ) |
#define PRVM_DECLARE_field | ( | x | ) |
#define PRVM_DECLARE_function | ( | x | ) |
#define PRVM_DECLARE_function | ( | x | ) |
#define PRVM_DECLARE_global | ( | x | ) |
#define PRVM_DECLARE_global | ( | x | ) |
#define PRVM_DECLARE_menufieldedict | ( | x | ) |
#define PRVM_DECLARE_menufieldedict | ( | x | ) |
#define PRVM_DECLARE_menufieldfloat | ( | x | ) |
#define PRVM_DECLARE_menufieldfloat | ( | x | ) |
#define PRVM_DECLARE_menufieldfunction | ( | x | ) |
#define PRVM_DECLARE_menufieldfunction | ( | x | ) |
#define PRVM_DECLARE_menufieldstring | ( | x | ) |
#define PRVM_DECLARE_menufieldstring | ( | x | ) |
#define PRVM_DECLARE_menufieldvector | ( | x | ) |
#define PRVM_DECLARE_menufieldvector | ( | x | ) |
#define PRVM_DECLARE_menufunction | ( | x | ) |
#define PRVM_DECLARE_menufunction | ( | x | ) |
#define PRVM_DECLARE_menuglobaledict | ( | x | ) |
#define PRVM_DECLARE_menuglobaledict | ( | x | ) |
#define PRVM_DECLARE_menuglobalfloat | ( | x | ) |
#define PRVM_DECLARE_menuglobalfloat | ( | x | ) |
#define PRVM_DECLARE_menuglobalfunction | ( | x | ) |
#define PRVM_DECLARE_menuglobalfunction | ( | x | ) |
#define PRVM_DECLARE_menuglobalstring | ( | x | ) |
#define PRVM_DECLARE_menuglobalstring | ( | x | ) |
#define PRVM_DECLARE_menuglobalvector | ( | x | ) |
#define PRVM_DECLARE_menuglobalvector | ( | x | ) |
#define PRVM_DECLARE_serverfieldedict | ( | x | ) |
#define PRVM_DECLARE_serverfieldedict | ( | x | ) |
#define PRVM_DECLARE_serverfieldfloat | ( | x | ) |
#define PRVM_DECLARE_serverfieldfloat | ( | x | ) |
#define PRVM_DECLARE_serverfieldfunction | ( | x | ) |
#define PRVM_DECLARE_serverfieldfunction | ( | x | ) |
#define PRVM_DECLARE_serverfieldstring | ( | x | ) |
#define PRVM_DECLARE_serverfieldstring | ( | x | ) |
#define PRVM_DECLARE_serverfieldvector | ( | x | ) |
#define PRVM_DECLARE_serverfieldvector | ( | x | ) |
#define PRVM_DECLARE_serverfunction | ( | x | ) |
#define PRVM_DECLARE_serverfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobaledict | ( | x | ) |
#define PRVM_DECLARE_serverglobaledict | ( | x | ) |
#define PRVM_DECLARE_serverglobalfloat | ( | x | ) |
#define PRVM_DECLARE_serverglobalfloat | ( | x | ) |
#define PRVM_DECLARE_serverglobalfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobalfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobalstring | ( | x | ) |
#define PRVM_DECLARE_serverglobalstring | ( | x | ) |
#define PRVM_DECLARE_serverglobalvector | ( | x | ) |
#define PRVM_DECLARE_serverglobalvector | ( | x | ) |
|
static |
Previous DP versions declined to load csprogs if it lacked any of: CSQC_Init, CSQC_InputEvent, CSQC_UpdateView, CSQC_ConsoleCommand whereas in FTE and QSS-based engines the minimum is either CSQC_UpdateView or CSQC_DrawHud (only called in CSQC_SIMPLE aka hud-only mode) and the other funcs are optional, so we now behave the same here.
Definition at line 54 of file csprogs.c.
References prvm_prog_t::error_cmd, prvm_prog_t::flag, prvm_prog_t::name, PRVM_CSQC_SIMPLE, and PRVM_ED_FindFunction().
Referenced by CL_VM_Init().
qbool CL_VM_ConsoleCommand | ( | const char * | text, |
size_t | textlen ) |
Definition at line 573 of file csprogs.c.
References cl, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, prvm_prog_t::funcoffsets, client_state_t::playerentity, PRVM_ConsoleCommand(), and client_state_t::time.
Referenced by Cmd_CL_Callback().
void CL_VM_DrawHud | ( | double | frametime | ) |
Definition at line 541 of file csprogs.c.
References cl, cl_deathscoreboard, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, CSQC_SetGlobals(), prvm_prog_t::ExecuteProgram, frametime, cvar_t::integer, client_state_t::islocalgame, key_dest, key_menu, OFS_PARM0, OFS_PARM1, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, PRVM_G_VECTOR, PRVM_GarbageCollection(), R_TimeReport(), sb_showscores, Sbar_DeathmatchOverlay(), self, STAT_HEALTH, client_state_t::stats, client_state_t::time, time, VectorSet, vid_conheight, and vid_conwidth.
Referenced by SCR_DrawScreen().
qbool CL_VM_Event_Sound | ( | int | sound_num, |
float | fvolume, | ||
int | channel, | ||
float | attenuation, | ||
int | ent, | ||
vec3_t | pos, | ||
int | flags, | ||
float | speed ) |
Definition at line 721 of file csprogs.c.
References CHAN_ENGINE2USER, cl, CLVM_prog, CSQC_RETURNVAL, client_state_t::csqc_server2csqcentitynumber, prvm_prog_t::ExecuteProgram, flags, prvm_prog_t::loaded, OFS_PARM0, OFS_PARM1, OFS_PARM2, OFS_PARM3, OFS_PARM4, OFS_PARM5, OFS_PARM6, OFS_PARM7, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, PRVM_G_INT, PRVM_G_VECTOR, PRVM_SetTempString(), r, self, client_state_t::sound_name, strlen(), client_state_t::time, time, and VectorCopy.
Referenced by CL_ParseStartSoundPacket().
Definition at line 1172 of file csprogs.c.
References CL_GetModelFromEdict(), CL_GetTagMatrix(), CLVM_prog, entnum, prvm_edict_t::free, Matrix4x4_OriginFromMatrix(), MAX_EDICTS, mod(), NULL, origin, PRVM_clientedictvector, PRVM_EDICT_NUM, r, VectorCopy, and VectorMAMAM.
Referenced by SND_Spatialize_WithSfx(), and VM_CL_sound().
Definition at line 1238 of file csprogs.c.
References cl, client_state_t::csqc_server2csqcentitynumber, MAX_EDICTS, and client_state_t::viewentity.
Referenced by SND_PickChannel(), and SND_Spatialize_WithSfx().
Definition at line 980 of file csprogs.c.
References absmax, absmin, prvm_prog_t::begin_increase_edicts, buf, prvm_prog_t::builtins, client_static_t::caughtcsprogsdata, client_static_t::caughtcsprogsdatasize, cl, CL_CheckRequiredFuncs(), CL_CutDemo(), CL_DisconnectEx(), CL_MAX_EDICTS, CL_PasteDemo(), CL_REQFIELDS, cl_reqfields, CL_REQGLOBALS, cl_reqglobals, CL_VM_UpdateCoopDeathmatchGlobals(), CL_WriteDemoMessage(), cls, CLVM_begin_increase_edicts(), CLVM_count_edicts(), CLVM_end_increase_edicts(), CLVM_ExecuteProgram(), CLVM_free_edict(), CLVM_init_cmd(), CLVM_init_edict(), CLVM_load_edict(), CLVM_prog, CLVM_reset_cmd(), cmd_local, Con_DPrintf(), CON_ERROR, Con_Printf(), CON_WARN, prvm_prog_t::count_edicts, CRC_Block(), CSQC_Init(), csqc_progcrc, csqc_progname, csqc_progsize, csqc_usedemoprogs, client_state_t::csqc_vidvars, Cvar_SetValueQuick(), sizebuf_t::data, client_static_t::demo_lastcsprogscrc, client_static_t::demo_lastcsprogssize, client_static_t::demoplayback, client_static_t::demorecording, csqc_vidvars_t::drawcrosshair, csqc_vidvars_t::drawenginesbar, prvm_prog_t::edictprivate_size, prvm_prog_t::edicts, prvm_prog_t::end_increase_edicts, prvm_prog_t::error_cmd, prvm_prog_t::ExecuteProgram, prvm_prog_t::extensionstring, prvm_prog_t::fieldoffsets, prvm_prog_t::flag, prvm_prog_t::free_edict, FS_LoadFile(), gamename, client_state_t::gametype, prvm_prog_t::globaloffsets, host, Host_Error(), i, prvm_prog_t::init_cmd, prvm_prog_t::init_edict, prvm_prog_t::inittime, cvar_t::integer, prvm_prog_t::limit_edicts, prvm_prog_t::load_edict, prvm_prog_t::loaded, MakeDownloadPacket(), mapname, prvm_prog_t::max_edicts, maxs, world_t::maxs, sizebuf_t::maxsize, Mem_AllocPool, Mem_Free, message, mins, world_t::mins, model, modelindex, prvm_prog_t::name, NET_MAXMESSAGE, NULL, prvm_prog_t::num_edicts, prvm_prog_t::numbuiltins, OFS_PARM0, OFS_PARM1, OFS_PARM2, player_localentnum, player_localnum, prvm_prog_t::progs_mempool, client_static_t::protocol, PRVM_clientedictfloat, PRVM_clientedictstring, PRVM_clientedictvector, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_clientglobalstring, PRVM_G_FLOAT, PRVM_G_INT, PRVM_OP_STATE, PRVM_Prog_Init(), PRVM_Prog_Load(), PRVM_SetEngineString(), client_state_t::realplayerentity, host_static_t::realtime, prvm_prog_t::reserved_edicts, prvm_prog_t::reset_cmd, self, solid, SOLID_BSP, cvar_t::string, tempmempool, client_state_t::time, time, va(), VectorCopy, client_state_t::viewentity, vm_cl_builtins, vm_cl_numbuiltins, vm_sv_extensions, client_state_t::world, client_state_t::worldbasename, client_state_t::worldmessage, and client_state_t::worldmodel.
Referenced by CL_SetupWorldModel().
Definition at line 459 of file csprogs.c.
References cl, CLVM_prog, CSQC_InputEvent(), CSQC_RETURNVAL, client_state_t::csqc_server2csqcentitynumber, prvm_prog_t::ExecuteProgram, prvm_prog_t::loaded, OFS_PARM0, OFS_PARM1, OFS_PARM2, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, r, self, client_state_t::time, time, x, and y.
Referenced by CL_Input(), and Key_Event().
void CL_VM_Parse_CenterPrint | ( | const char * | msg, |
size_t | msg_len ) |
Definition at line 689 of file csprogs.c.
References cl, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, sizebuf_t::cursize, prvm_prog_t::ExecuteProgram, prvm_prog_t::loaded, OFS_PARM0, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_INT, PRVM_SetTempString(), SCR_CenterPrint(), self, prvm_prog_t::tempstringsbuf, client_state_t::time, and time.
Referenced by CL_ParseServerMessage().
|
static |
Definition at line 644 of file csprogs.c.
References cl, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, sizebuf_t::cursize, prvm_prog_t::ExecuteProgram, OFS_PARM0, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_INT, PRVM_SetTempString(), self, prvm_prog_t::tempstringsbuf, client_state_t::time, and time.
Referenced by CSQC_AddPrintText().
void CL_VM_Parse_StuffCmd | ( | const char * | msg, |
size_t | msg_len ) |
Definition at line 604 of file csprogs.c.
References Cbuf_AddText(), cl, CLVM_prog, Cmd_ExecuteString(), cmd_local, csqc_progcrc, csqc_progsize, client_state_t::csqc_server2csqcentitynumber, sizebuf_t::cursize, prvm_prog_t::ExecuteProgram, cvar_t::flags, prvm_prog_t::loaded, OFS_PARM0, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_INT, PRVM_SetTempString(), self, src_local, prvm_prog_t::tempstringsbuf, client_state_t::time, and time.
Referenced by CL_ParseServerMessage().
Definition at line 579 of file csprogs.c.
References sizebuf_t::badread, cl, cl_message, CLVM_prog, CSQC_RETURNVAL, client_state_t::csqc_server2csqcentitynumber, prvm_prog_t::ExecuteProgram, prvm_prog_t::loaded, client_state_t::playerentity, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, r, sizebuf_t::readcount, self, client_state_t::time, and time.
Referenced by CL_ParseServerMessage().
Definition at line 36 of file csprogs.c.
References CLVM_prog, prvm_prog_t::loaded, PRVM_clientglobalfloat, trace_networkentity, and VM_ClearTraceGlobals().
Referenced by CL_Frame().
Definition at line 1154 of file csprogs.c.
References cl, CLVM_prog, Cmd_ClearCSQCCommands(), cmd_local, Con_DPrint(), CSQC_Shutdown(), prvm_prog_t::ExecuteProgram, prvm_prog_t::loaded, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_Prog_Reset(), self, client_state_t::time, and time.
Referenced by CL_ClearState(), and CL_DisconnectEx().
qbool CL_VM_TransformView | ( | int | entnum, |
matrix4x4_t * | viewmatrix, | ||
mplane_t * | clipplane, | ||
vec3_t | visorigin ) |
Definition at line 1196 of file csprogs.c.
References AnglesFromVectors(), cl, CLVM_prog, mplane_t::dist, entnum, prvm_prog_t::ExecuteProgram, forward, Matrix4x4_Concat(), Matrix4x4_FromVectors(), Matrix4x4_Invert_Full(), Matrix4x4_ToVectors(), Matrix4x4_TransformPositivePlane(), mplane_t::normal, mplane_t::normal_and_dist, OFS_PARM0, OFS_PARM1, OFS_RETURN, origin, PRVM_clientedictfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_clientglobalvector, PRVM_EDICT_NUM, PRVM_G_VECTOR, ret, self, client_state_t::time, time, trace_endpos, up, v_forward, v_right, v_up, VectorCopy, and VectorScale.
Referenced by R_Water_ProcessPlanes().
Definition at line 747 of file csprogs.c.
References CLVM_prog, coop, deathmatch, GAME_COOP, GAME_DEATHMATCH, prvm_prog_t::loaded, and PRVM_clientglobalfloat.
Referenced by CL_VM_Init().
Definition at line 222 of file csprogs.c.
References CLVM_prog, dmg_save, dmg_take, prvm_prog_t::loaded, PRVM_clientglobalfloat, PRVM_clientglobalvector, and VectorCopy.
Referenced by CL_VM_UpdateView(), and V_ParseDamage().
Definition at line 707 of file csprogs.c.
References CLVM_prog, intermission, prvm_prog_t::loaded, and PRVM_clientglobalfloat.
Referenced by CL_ParseServerMessage().
Definition at line 714 of file csprogs.c.
References CLVM_prog, prvm_prog_t::loaded, PRVM_clientglobalfloat, and sb_showscores.
Referenced by Sbar_DontShowScores_f(), and Sbar_ShowScores_f().
qbool CL_VM_UpdateView | ( | double | frametime | ) |
Definition at line 484 of file csprogs.c.
References cl, CL_VM_UpdateDmgGlobals(), CLVM_prog, csqc_lowres, csqc_main_r_refdef_view, csqc_original_r_refdef_view, client_state_t::csqc_server2csqcentitynumber, CSQC_SetGlobals(), CSQC_UpdateView(), prvm_prog_t::ExecuteProgram, frametime, viddef_mode_t::height, cvar_t::integer, key_dest, key_game, prvm_prog_t::loaded, viddef_t::mode, r_refdef_scene_t::numentities, r_refdef_scene_t::numlights, OFS_PARM0, OFS_PARM1, OFS_PARM2, client_state_t::playerentity, prvm_prog_t::polygonbegin_guess2d, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, PRVM_GarbageCollection(), r_refdef, R_RenderView_UpdateViewVectors(), R_TimeReport(), r_refdef_t::scene, self, client_state_t::time, time, cvar_t::value, vid, vid_conheight, vid_conwidth, r_refdef_t::view, and viddef_mode_t::width.
Referenced by SCR_DrawScreen().
|
static |
Definition at line 867 of file csprogs.c.
References cl, client_state_t::world, and World_UnlinkAll().
Referenced by CL_VM_Init().
|
static |
Definition at line 909 of file csprogs.c.
References Con_Printf(), prvm_edict_t::free, i, model, models, prvm_prog_t::num_edicts, PRVM_clientedictfloat, PRVM_clientedictstring, PRVM_EDICT_NUM, and solid.
Referenced by CL_VM_Init().
|
static |
Definition at line 873 of file csprogs.c.
References CL_LinkEdict(), prvm_prog_t::edicts, prvm_edict_t::free, and i.
Referenced by CL_VM_Init().
|
static |
Definition at line 895 of file csprogs.c.
References cl, client_state_t::csqcrenderentities, entity_render_t::decalsystem, prvm_prog_t::entityfields, prvm_edict_t::fields, prvm_edict_t::fp, PRVM_NUM_FOR_EDICT, R_DecalSystem_Reset(), VM_RemoveEdictSkeleton(), client_state_t::world, World_Physics_RemoveFromEntity(), World_Physics_RemoveJointFromEntity(), and World_UnlinkEdict().
Referenced by CL_VM_Init().
|
static |
Definition at line 884 of file csprogs.c.
References cl, CL_ExpandCSQCRenderEntities(), client_state_t::csqcrenderentities, prvm_edict_t::priv, PRVM_NUM_FOR_EDICT, prvm_edict_t::server, entity_render_t::shadertime, and client_state_t::time.
Referenced by CL_VM_Init().
|
static |
void CSQC_AddPrintText | ( | const char * | msg, |
size_t | msg_len ) |
Definition at line 656 of file csprogs.c.
References cl, CL_VM_Parse_Print(), CLVM_prog, Con_Print(), client_state_t::csqc_printtextbuf, client_state_t::csqc_printtextbuf_len, prvm_prog_t::loaded, MAX_INPUTLINE, min, and PRVM_clientfunction.
Referenced by CL_ParseServerMessage().
qbool CSQC_AddRenderEdict | ( | prvm_edict_t * | ed, |
int | edictnum ) |
Definition at line 311 of file csprogs.c.
References entity_render_t::allowdecals, alpha, entity_render_t::alpha, cl, CL_GetModelFromEdict(), CL_GetTagMatrix(), CL_NewTempEntity(), cl_noplayershadow, CL_SetEntityColormapColors(), CL_UpdateRenderEntity(), cls, CLVM_prog, colormap, colormod, entity_render_t::colormod, scoreboard_t::colors, client_state_t::csqcrenderentities, entity_render_t::custommodellight_ambient, entity_render_t::custommodellight_diffuse, entity_render_t::custommodellight_lightdir, entity_render_t::custommodellight_origin, EF_ADDITIVE, EF_DOUBLESIDED, EF_DYNAMICMODELLIGHT, EF_FULLBRIGHT, EF_NODEPTHTEST, EF_NOSELFSHADOW, EF_NOSHADOW, effects, entity_render_t::effects, model_t::effects, r_refdef_scene_t::entities, entity_render_t::entitynumber, entity_render_t::flags, entity_render_t::frameblend, entity_render_t::framegroupblend, entity_render_t::glowmod, glowmod, int(), cvar_t::integer, client_state_t::intermission, entity_render_t::matrix, MAX_EDICTS, client_state_t::maxclients, r_refdef_scene_t::maxentities, entity_render_t::model, model, modellight_ambient, modellight_diffuse, modellight_dir, NULL, r_refdef_scene_t::numentities, prvm_edict_t::priv, client_static_t::protocol, PROTOCOL_NEHAHRAMOVIE, PRVM_clientedictfloat, PRVM_clientedictvector, PRVM_clientglobalfloat, r_fullbright, r_refdef, RENDER_ADDITIVE, RENDER_CUSTOMIZEDMODELLIGHT, RENDER_DOUBLESIDED, RENDER_DYNAMICMODELLIGHT, RENDER_EXTERIORMODEL, RENDER_LIGHT, RENDER_NODEPTHTEST, RENDER_NOSELFSHADOW, RENDER_SHADOW, RENDER_VIEWMODEL, RENDER_WORLDOBJECT, RF_ADDITIVE, RF_DEPTHHACK, RF_DYNAMICMODELLIGHT, RF_EXTERNALMODEL, RF_FULLBRIGHT, RF_MODELLIGHT, RF_NOSHADOW, RF_USETRANSPARENTOFFSET, RF_VIEWMODEL, RF_WORLDOBJECT, entity_render_t::scale, scale, r_refdef_t::scene, client_state_t::scores, prvm_edict_t::server, entity_render_t::shadertime, entity_render_t::skeleton, skin, entity_render_t::skinnum, client_state_t::time, entity_render_t::transparent_offset, transparent_offset, entity_render_t::userwavefunc_param, VectorClear, VectorCopy, VectorLength2, VectorSet, VM_FrameBlendFromFrameGroupBlend(), VM_GenerateFrameGroupBlend(), and VM_UpdateEdictSkeleton().
Referenced by VM_CL_R_AddEntities(), and VM_CL_R_AddEntity().
void CSQC_Predraw | ( | prvm_edict_t * | ed | ) |
Definition at line 283 of file csprogs.c.
References b, CLVM_prog, prvm_prog_t::ExecuteProgram, PRVM_clientedictfunction, PRVM_clientglobaledict, PRVM_EDICT_TO_PROG, and self.
Referenced by VM_CL_R_AddEntities().
Definition at line 798 of file csprogs.c.
References sizebuf_t::badread, cl, cl_message, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, entnum, prvm_prog_t::ExecuteProgram, float, Host_Error(), prvm_prog_t::loaded, MSG_ReadShort, OFS_PARM0, OFS_RETURN, PRVM_clientedictfloat, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_ED_Alloc(), PRVM_EDICT, PRVM_EDICT_TO_PROG, PRVM_G_FLOAT, PRVM_G_INT, self, client_state_t::time, and time.
Referenced by CL_ParseServerMessage().
|
static |
Definition at line 247 of file csprogs.c.
References usercmd_t::buttons, cl, clientcommandframe, cls, CLVM_prog, CSQC_R_RecalcView(), client_state_t::csqc_viewangles, client_state_t::csqc_viewanglesfromengine, client_state_t::csqc_vieworigin, client_state_t::csqc_vieworiginfromengine, client_state_t::entities, usercmd_t::forwardmove, frametime, host, input_angles, input_buttons, input_movevalues, client_state_t::inwater, entity_render_t::matrix, Matrix4x4_OriginFromMatrix(), client_state_t::maxclients, maxclients, client_state_t::movecmd, client_state_t::movement_velocity, client_state_t::onground, player_localentnum, pmove_org, pmove_vel, PRVM_clientglobalfloat, PRVM_clientglobalvector, client_state_t::punchangle, client_state_t::punchvector, host_static_t::realtime, entity_t::render, usercmd_t::sequence, servercommandframe, client_static_t::servermovesequence, usercmd_t::sidemove, client_state_t::time, time, usercmd_t::upmove, VectorCopy, VectorSet, view_angles, view_punchangle, view_punchvector, client_state_t::viewangles, and client_state_t::viewentity.
Referenced by CL_VM_DrawHud(), and CL_VM_UpdateView().
void CSQC_Think | ( | prvm_edict_t * | ed | ) |
Definition at line 295 of file csprogs.c.
References b, CLVM_prog, prvm_prog_t::ExecuteProgram, nextthink, PRVM_clientedictfloat, PRVM_clientedictfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_EDICT_TO_PROG, self, and time.
Referenced by VM_CL_R_AddEntities().
void CSQC_UpdateNetworkTimes | ( | double | newtime, |
double | oldtime ) |
Definition at line 234 of file csprogs.c.
References CLVM_prog, prvm_prog_t::loaded, and PRVM_clientglobalfloat.
Referenced by CL_NetworkTimeReceived().
qbool MakeDownloadPacket | ( | const char * | filename, |
unsigned char * | data, | ||
size_t | len, | ||
int | crc, | ||
int | cnt, | ||
sizebuf_t * | buf, | ||
int | protocol ) |
Definition at line 940 of file csprogs.c.
References buf, data, int(), MSG_WriteByte(), MSG_WriteLong(), MSG_WriteShort(), MSG_WriteString(), PROTOCOL_QUAKEWORLD, svc_downloaddata, svc_stufftext, SZ_Clear(), SZ_Write(), and va().
Referenced by CL_VM_Init(), and SV_SendServerinfo().
|
extern |
Definition at line 85 of file cl_main.c.
Referenced by CL_Init(), CL_UpdateNetworkEntity(), and CSQC_AddRenderEdict().
prvm_required_field_t cl_reqfields[] |
Definition at line 66 of file csprogs.c.
Referenced by CL_VM_Init().
prvm_required_field_t cl_reqglobals[] |
Definition at line 145 of file csprogs.c.
Referenced by CL_VM_Init().
|
extern |
Definition at line 26 of file clvm_cmds.c.
Referenced by CL_VM_UpdateView(), and VM_CL_R_RenderScene().
|
extern |
Definition at line 25 of file clvm_cmds.c.
Referenced by CL_VM_UpdateView(), VM_CL_R_ClearScene(), and VM_CL_R_RenderScene().