![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Variables | |
cvar_t | csqc_lowres |
cvar_t | csqc_polygons_defaultmaterial_nocullface |
cvar_t | csqc_progcrc |
cvar_t | csqc_progname |
cvar_t | csqc_progsize |
#define CL_MAX_EDICTS MAX_EDICTS |
Definition at line 25 of file csprogs.h.
Referenced by CL_VM_Init().
#define ENTMASK_ENGINE 1 |
Definition at line 27 of file csprogs.h.
Referenced by CL_UpdateWorld(), and CSQC_RelinkAllEntities().
#define ENTMASK_ENGINEVIEWMODELS 2 |
Definition at line 28 of file csprogs.h.
Referenced by CL_UpdateWorld(), and CSQC_RelinkAllEntities().
#define RF_ADDITIVE 8 |
Definition at line 84 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_DEPTHHACK 4 |
Definition at line 83 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_DYNAMICMODELLIGHT 8192 |
Definition at line 91 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_EXTERNALMODEL 2 |
Definition at line 82 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_FULLBRIGHT 256 |
Definition at line 93 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_MODELLIGHT 4096 |
Definition at line 90 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_NOSHADOW 512 |
Definition at line 94 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_USEAXIS 16 |
Definition at line 85 of file csprogs.h.
Referenced by CL_GetEntityMatrix(), and VM_CL_makestatic().
#define RF_USETRANSPARENTOFFSET 64 |
Definition at line 88 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define RF_VIEWMODEL 1 |
Definition at line 81 of file csprogs.h.
Referenced by CL_GetTagMatrix(), and CSQC_AddRenderEdict().
#define RF_WORLDOBJECT 128 |
Definition at line 89 of file csprogs.h.
Referenced by CSQC_AddRenderEdict().
#define VF_ANGLES 15 |
Definition at line 45 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ANGLES_X 16 |
Definition at line 46 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ANGLES_Y 17 |
Definition at line 47 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ANGLES_Z 18 |
Definition at line 48 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_CL_VIEWANGLES 33 |
Definition at line 54 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_CL_VIEWANGLES_X 34 |
Definition at line 55 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_CL_VIEWANGLES_Y 35 |
Definition at line 56 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_CL_VIEWANGLES_Z 36 |
Definition at line 57 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_CLEARSCREEN 201 |
Definition at line 63 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_DRAWCROSSHAIR 21 |
Definition at line 52 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_DRAWENGINESBAR 20 |
Definition at line 51 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_DRAWWORLD 19 |
Definition at line 50 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_ALPHA 207 |
Definition at line 71 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_COLOR 203 |
Definition at line 67 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_COLOR_B 206 |
Definition at line 70 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_COLOR_G 205 |
Definition at line 69 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_COLOR_R 204 |
Definition at line 68 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_DENSITY 202 |
Definition at line 66 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_END 209 |
Definition at line 73 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_FADEDEPTH 211 |
Definition at line 75 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_HEIGHT 210 |
Definition at line 74 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOG_START 208 |
Definition at line 72 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOV 8 |
Definition at line 38 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOVX 9 |
Definition at line 39 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_FOVY 10 |
Definition at line 40 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_MAINVIEW 400 |
Definition at line 78 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_MIN 1 |
Definition at line 31 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_MIN_X 2 |
Definition at line 32 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_MIN_Y 3 |
Definition at line 33 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_MINFPS_QUALITY 401 |
Definition at line 79 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ORIGIN 11 |
Definition at line 41 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ORIGIN_X 12 |
Definition at line 42 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ORIGIN_Y 13 |
Definition at line 43 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_ORIGIN_Z 14 |
Definition at line 44 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_PERSPECTIVE 200 |
Definition at line 60 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_SIZE 4 |
Definition at line 34 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_SIZE_X 5 |
Definition at line 35 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_SIZE_Y 6 |
Definition at line 36 of file csprogs.h.
Referenced by VM_CL_R_SetView().
#define VF_VIEWPORT 7 |
Definition at line 37 of file csprogs.h.
Referenced by VM_CL_R_SetView().
void CL_GetEntityMatrix | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent, | ||
matrix4x4_t * | out, | ||
qbool | viewmatrix ) |
Definition at line 3230 of file clvm_cmds.c.
References angles, CL_GetPitchSign(), forward, r_refdef_view_t::matrix, Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_FromVectors(), origin, PRVM_clientedictfloat, PRVM_clientedictvector, PRVM_clientglobalvector, r_refdef, RF_USEAXIS, scale, up, v_forward, v_right, v_up, VectorCopy, VectorScale, and r_refdef_t::view.
Referenced by CL_GetTagMatrix(), and getmatrix().
Definition at line 86 of file cl_collision.c.
References cl, client_state_t::csqc_model_precache, MAX_MODELS, client_state_t::model_precache, modelindex, and NULL.
Referenced by CL_AddQWCTFFlagModel(), CL_GetModelFromEdict(), CL_LinkEdict(), CL_ModelIndexList_f(), CL_ParseEffect(), CL_ParseEffect2(), CL_ParseStatic(), CL_ParseTempEntity(), CL_RelinkQWNails(), CL_RelinkStaticEntities(), CL_SetupWorldModel(), CL_UpdateNetworkEntity(), CL_ValidateState(), EntityState5_ReadUpdate(), SND_Spatialize_WithSfx(), VM_CL_frameduration(), VM_CL_frameforname(), VM_CL_makestatic(), VM_CL_modelnameforindex(), VM_CL_setattachment(), VM_CL_setmodelindex(), VM_CL_skel_build(), and VM_CL_skel_create().
int CL_GetPitchSign | ( | prvm_prog_t * | prog, |
prvm_edict_t * | ent ) |
Definition at line 3222 of file clvm_cmds.c.
References CL_GetModelFromEdict(), mod_alias, and model.
Referenced by CL_GetEntityMatrix().
int CL_GetTagMatrix | ( | prvm_prog_t * | prog, |
matrix4x4_t * | out, | ||
prvm_edict_t * | ent, | ||
int | tagindex, | ||
prvm_vec_t * | shadingorigin ) |
Definition at line 3286 of file clvm_cmds.c.
References CL_GetEntityLocalTagMatrix(), CL_GetEntityMatrix(), CL_GetModelFromEdict(), prvm_prog_t::edicts, prvm_edict_t::free, identitymatrix, int(), r_refdef_view_t::matrix, Matrix4x4_Concat(), Matrix4x4_Copy(), Matrix4x4_OriginFromMatrix(), model, PRVM_clientedictedict, PRVM_clientedictfloat, PRVM_EDICT_NUM, r_refdef, ret, RF_VIEWMODEL, tag_entity, tag_index, VectorCopy, and r_refdef_t::view.
Referenced by CL_VM_GetEntitySoundOrigin(), CSQC_AddRenderEdict(), VM_CL_gettaginfo(), and VM_CL_V_CalcRefdef().
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().
qbool CL_VM_Event_Sound | ( | int | sound_num, |
float | volume, | ||
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().
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 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().
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 756 of file clvm_cmds.c.
References cl, cl_viewmodel_scale, client_state_t::csqc_viewangles, client_state_t::csqc_viewmodelmatrixfromengine, client_state_t::csqc_vieworigin, r_refdef_view_t::matrix, Matrix4x4_Concat(), Matrix4x4_ConcatScale(), Matrix4x4_Copy(), Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_QuakeToDuke3D(), r_refdef, v_yshearing, cvar_t::value, r_refdef_t::view, viewmodelmatrix_nobob, and viewmodelmatrix_withbob.
Referenced by CSQC_SetGlobals(), VM_CL_R_ClearScene(), VM_CL_R_SetView(), and VM_CL_V_CalcRefdef().
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().
Definition at line 2021 of file cl_main.c.
References cl, CL_LinkNetworkEntity(), CL_MeshEntities_Scene_AddRenderEntity(), CL_RelinkBeams(), CL_RelinkEffects(), CL_RelinkLightFlashes(), CL_RelinkNetworkEntities(), CL_RelinkQWNails(), CL_RelinkStaticEntities(), CL_RelinkWorld(), drawmask, ENTMASK_ENGINE, ENTMASK_ENGINEVIEWMODELS, V_CalcViewBlend(), and client_state_t::viewent.
Referenced by CL_UpdateWorld(), and VM_CL_R_AddEntities().
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().
Definition at line 942 of file cl_parse.c.
References cls, cmd_local, Con_DPrintf(), data, Mem_Alloc, client_static_t::netcon, client_static_t::permanentmempool, QW_CL_NextUpload_f(), QW_CL_StopUpload_f(), client_static_t::qw_uploaddata, client_static_t::qw_uploadpos, client_static_t::qw_uploadsize, and size.
|
extern |
Definition at line 40 of file cl_main.c.
Referenced by CL_Init(), CL_VM_UpdateView(), and VM_CL_R_SetView().
|
extern |
Definition at line 39 of file cl_main.c.
Referenced by CL_Init(), and VM_CL_R_PolygonEnd().
|
extern |
Definition at line 36 of file cl_main.c.
Referenced by CL_BeginDownloads(), CL_DisconnectEx(), CL_VM_Init(), CL_VM_Parse_StuffCmd(), and SV_Init().
|
extern |
Definition at line 35 of file cl_main.c.
Referenced by CL_BeginDownloads(), CL_StopDownload(), CL_VM_Init(), PRVM_Prog_Load(), SV_Init(), and SV_Prepare_CSQC().
|
extern |
Definition at line 37 of file cl_main.c.
Referenced by CL_BeginDownloads(), CL_DisconnectEx(), CL_VM_Init(), CL_VM_Parse_StuffCmd(), and SV_Init().