Quake II RTX doxygen
1.0 dev
|
|
#include "shared/shared.h"
#include "shared/list.h"
#include "common/bsp.h"
#include "common/cmd.h"
#include "common/cmodel.h"
#include "common/common.h"
#include "common/cvar.h"
#include "common/field.h"
#include "common/files.h"
#include "common/pmove.h"
#include "common/math.h"
#include "common/msg.h"
#include "common/net/chan.h"
#include "common/net/net.h"
#include "common/prompt.h"
#include "common/protocol.h"
#include "common/sizebuf.h"
#include "common/zone.h"
#include "system/system.h"
#include "refresh/refresh.h"
#include "server/server.h"
#include "client/client.h"
#include "client/input.h"
#include "client/keys.h"
#include "client/sound/sound.h"
#include "client/ui.h"
#include "client/video.h"
Go to the source code of this file.
|
#define | MAX_EXPLOSIONS 32 |
|
#define | MAX_CLIENTWEAPONMODELS 20 |
|
#define | FF_SERVERDROP (1<<4) |
|
#define | FF_BADFRAME (1<<5) |
|
#define | FF_OLDFRAME (1<<6) |
|
#define | FF_OLDENT (1<<7) |
|
#define | FF_NODELTA (1<<8) |
|
#define | CL_FRAMETIME BASE_FRAMETIME |
|
#define | CL_1_FRAMETIME BASE_1_FRAMETIME |
|
#define | CL_FRAMEDIV 1 |
|
#define | CL_FRAMESYNC 1 |
|
#define | CL_KEYPS &cl.frame.ps |
|
#define | CL_OLDKEYPS &cl.oldframe.ps |
|
#define | CL_KEYLERPFRAC cl.lerpfrac |
|
#define | CONNECT_DELAY 3000u |
|
#define | CONNECT_INSTANT CONNECT_DELAY |
|
#define | CONNECT_FAST (CONNECT_DELAY - 1000u) |
|
#define | FOR_EACH_DLQ(q) LIST_FOR_EACH(dlqueue_t, q, &cls.download.queue, entry) |
|
#define | FOR_EACH_DLQ_SAFE(q, n) LIST_FOR_EACH_SAFE(dlqueue_t, q, n, &cls.download.queue, entry) |
|
#define | C_FPS cls.measure.fps[0] |
|
#define | R_FPS cls.measure.fps[1] |
|
#define | C_MPS cls.measure.fps[2] |
|
#define | C_PPS cls.measure.fps[3] |
|
#define | C_FRAMES cls.measure.frames[0] |
|
#define | R_FRAMES cls.measure.frames[1] |
|
#define | M_FRAMES cls.measure.frames[2] |
|
#define | P_FRAMES cls.measure.frames[3] |
|
#define | RECENT_ADDR 4 |
|
#define | RECENT_MASK (RECENT_ADDR - 1) |
|
#define | NOPART_GRENADE_EXPLOSION 1 |
|
#define | NOPART_GRENADE_TRAIL 2 |
|
#define | NOPART_ROCKET_EXPLOSION 4 |
|
#define | NOPART_ROCKET_TRAIL 8 |
|
#define | NOPART_BLOOD 16 |
|
#define | NOEXP_GRENADE 1 |
|
#define | NOEXP_ROCKET 2 |
|
#define | SHOWNET(...) |
|
#define | SHOWCLAMP(...) |
|
#define | SHOWMISS(...) |
|
#define | CL_PLAYER_MODEL_DISABLED 0 |
|
#define | CL_PLAYER_MODEL_ONLY_GUN 1 |
|
#define | CL_PLAYER_MODEL_FIRST_PERSON 2 |
|
#define | CL_PLAYER_MODEL_THIRD_PERSON 3 |
|
#define | V_AddLight(org, intensity, r, g, b) |
|
#define | V_AddLightEx(org, intensity, r, g, b, radius) |
|
#define | PARTICLE_GRAVITY 120 |
|
#define | BLASTER_PARTICLE_COLOR 0xe0 |
|
#define | INSTANT_PARTICLE -10000.0 |
|
#define | HTTP_Init() (void)0 |
|
#define | HTTP_Shutdown() (void)0 |
|
#define | HTTP_SetServer(url) (void)0 |
|
#define | HTTP_QueueDownload(path, type) Q_ERR_NOSYS |
|
#define | HTTP_RunDownloads() (void)0 |
|
#define | HTTP_CleanupDownloads() (void)0 |
|
#define | CL_GTV_EmitFrame() (void)0 |
|
#define | CL_GTV_WriteMessage(data, len) (void)0 |
|
#define | CL_GTV_Resume() (void)0 |
|
#define | CL_GTV_Suspend() (void)0 |
|
#define | CL_GTV_Transmit() (void)0 |
|
#define | CL_GTV_Run() (void)0 |
|
#define | CL_GTV_Init() (void)0 |
|
#define | CL_GTV_Shutdown() (void)0 |
|
|
enum | connstate_t {
ca_uninitialized,
ca_disconnected,
ca_challenging,
ca_connecting,
ca_connected,
ca_loading,
ca_precached,
ca_active,
ca_cinematic
} |
|
enum | dltype_t { DL_OTHER,
DL_MAP,
DL_MODEL
} |
|
enum | dlstate_t { DL_PENDING,
DL_RUNNING,
DL_DONE
} |
|
enum | load_state_t {
LOAD_NONE,
LOAD_MAP,
LOAD_MODELS,
LOAD_IMAGES,
LOAD_CLIENTS,
LOAD_SOUNDS
} |
|
|
void | CL_Init (void) |
|
void | CL_Quit_f (void) |
|
void | CL_Disconnect (error_type_t type) |
|
void | CL_UpdateRecordingSetting (void) |
|
void | CL_Begin (void) |
|
void | CL_CheckForResend (void) |
|
void | CL_ClearState (void) |
|
void | CL_RestartFilesystem (qboolean total) |
|
void | CL_RestartRefresh (qboolean total) |
|
void | CL_ClientCommand (const char *string) |
|
void | CL_SendRcon (const netadr_t *adr, const char *pass, const char *cmd) |
|
const char * | CL_Server_g (const char *partial, int argnum, int state) |
|
void | CL_CheckForPause (void) |
|
void | CL_UpdateFrameTimes (void) |
|
qboolean | CL_CheckForIgnore (const char *s) |
|
void | CL_WriteConfig (void) |
|
void | CL_ParsePlayerSkin (char *name, char *model, char *skin, const char *s) |
|
void | CL_LoadClientinfo (clientinfo_t *ci, const char *s) |
|
void | CL_LoadState (load_state_t state) |
|
void | CL_RegisterSounds (void) |
|
void | CL_RegisterBspModels (void) |
|
void | CL_RegisterVWepModels (void) |
|
void | CL_PrepRefresh (void) |
|
void | CL_UpdateConfigstring (int index) |
|
qerror_t | CL_QueueDownload (const char *path, dltype_t type) |
|
qboolean | CL_IgnoreDownload (const char *path) |
|
void | CL_FinishDownload (dlqueue_t *q) |
|
void | CL_CleanupDownloads (void) |
|
void | CL_LoadDownloadIgnores (void) |
|
void | CL_HandleDownload (byte *data, int size, int percent, int compressed) |
|
qboolean | CL_CheckDownloadExtension (const char *ext) |
|
void | CL_StartNextDownload (void) |
|
void | CL_RequestNextDownload (void) |
|
void | CL_ResetPrecacheCheck (void) |
|
void | CL_InitDownloads (void) |
|
void | IN_Init (void) |
|
void | IN_Shutdown (void) |
|
void | IN_Frame (void) |
|
void | IN_Activate (void) |
|
void | CL_RegisterInput (void) |
|
void | CL_UpdateCmd (int msec) |
|
void | CL_FinalizeCmd (void) |
|
void | CL_SendCmd (void) |
|
void | CL_ParseServerMessage (void) |
|
void | CL_SeekDemoMessage (void) |
|
void | CL_DeltaFrame (void) |
|
void | CL_AddEntities (void) |
|
void | CL_CalcViewValues (void) |
|
void | CL_GetEntitySoundOrigin (int ent, vec3_t org) |
|
void | V_Init (void) |
|
void | V_Shutdown (void) |
|
void | V_RenderView (void) |
|
void | V_AddEntity (entity_t *ent) |
|
void | V_AddParticle (particle_t *p) |
|
void | CL_UpdateBlendSetting (void) |
|
void | CL_SmokeAndFlash (vec3_t origin) |
|
void | CL_RegisterTEntSounds (void) |
|
void | CL_RegisterTEntModels (void) |
|
void | CL_ParseTEnt (void) |
|
void | CL_AddTEnts (void) |
|
void | CL_ClearTEnts (void) |
|
void | CL_InitTEnts (void) |
|
void | CL_PredictAngles (void) |
|
void | CL_PredictMovement (void) |
|
void | CL_CheckPredictionError (void) |
|
void | CL_BigTeleportParticles (vec3_t org) |
|
void | CL_RocketTrail (vec3_t start, vec3_t end, centity_t *old) |
|
void | CL_DiminishingTrail (vec3_t start, vec3_t end, centity_t *old, int flags) |
|
void | CL_FlyEffect (centity_t *ent, vec3_t origin) |
|
void | CL_BfgParticles (entity_t *ent) |
|
void | CL_ItemRespawnParticles (vec3_t org) |
|
void | CL_InitEffects (void) |
|
void | CL_ClearEffects (void) |
|
void | CL_BlasterParticles (vec3_t org, vec3_t dir) |
|
void | CL_ExplosionParticles (vec3_t org) |
|
void | CL_BFGExplosionParticles (vec3_t org) |
|
void | CL_BlasterTrail (vec3_t start, vec3_t end) |
|
void | CL_QuadTrail (vec3_t start, vec3_t end) |
|
void | CL_OldRailTrail (void) |
|
void | CL_BubbleTrail (vec3_t start, vec3_t end) |
|
void | CL_FlagTrail (vec3_t start, vec3_t end, int color) |
|
void | CL_MuzzleFlash (void) |
|
void | CL_MuzzleFlash2 (void) |
|
void | CL_TeleporterParticles (vec3_t org) |
|
void | CL_TeleportParticles (vec3_t org) |
|
void | CL_ParticleEffect (vec3_t org, vec3_t dir, int color, int count) |
|
void | CL_ParticleEffectWaterSplash (vec3_t org, vec3_t dir, int color, int count) |
|
void | CL_BloodParticleEffect (vec3_t org, vec3_t dir, int color, int count) |
|
void | CL_ParticleEffect2 (vec3_t org, vec3_t dir, int color, int count) |
|
cparticle_t * | CL_AllocParticle (void) |
|
void | CL_RunParticles (void) |
|
void | CL_AddParticles (void) |
|
void | CL_BlasterParticles2 (vec3_t org, vec3_t dir, unsigned int color) |
|
void | CL_BlasterTrail2 (vec3_t start, vec3_t end) |
|
void | CL_DebugTrail (vec3_t start, vec3_t end) |
|
void | CL_SmokeTrail (vec3_t start, vec3_t end, int colorStart, int colorRun, int spacing) |
|
void | CL_ForceWall (vec3_t start, vec3_t end, int color) |
|
void | CL_GenericParticleEffect (vec3_t org, vec3_t dir, int color, int count, int numcolors, int dirspread, float alphavel) |
|
void | CL_BubbleTrail2 (vec3_t start, vec3_t end, int dist) |
|
void | CL_Heatbeam (vec3_t start, vec3_t end) |
|
void | CL_ParticleSteamEffect (vec3_t org, vec3_t dir, int color, int count, int magnitude) |
|
void | CL_TrackerTrail (vec3_t start, vec3_t end, int particleColor) |
|
void | CL_Tracker_Explode (vec3_t origin) |
|
void | CL_TagTrail (vec3_t start, vec3_t end, int color) |
|
void | CL_Tracker_Shell (vec3_t origin) |
|
void | CL_MonsterPlasma_Shell (vec3_t origin) |
|
void | CL_ColorExplosionParticles (vec3_t org, int color, int run) |
|
void | CL_ParticleSmokeEffect (vec3_t org, vec3_t dir, int color, int count, int magnitude) |
|
void | CL_Widowbeamout (cl_sustain_t *self) |
|
void | CL_Nukeblast (cl_sustain_t *self) |
|
void | CL_WidowSplash (void) |
|
void | CL_IonripperTrail (vec3_t start, vec3_t end) |
|
void | CL_TrapParticles (entity_t *ent) |
|
void | CL_ParticleEffect3 (vec3_t org, vec3_t dir, int color, int count) |
|
void | CL_ParticleSteamEffect2 (cl_sustain_t *self) |
|
void | CL_InitDemos (void) |
|
void | CL_CleanupDemos (void) |
|
void | CL_DemoFrame (int msec) |
|
qboolean | CL_WriteDemoMessage (sizebuf_t *buf) |
|
void | CL_EmitDemoFrame (void) |
|
void | CL_EmitDemoSnapshot (void) |
|
void | CL_FirstDemoFrame (void) |
|
void | CL_Stop_f (void) |
|
demoInfo_t * | CL_GetDemoInfo (const char *path, demoInfo_t *info) |
|
void | LOC_Init (void) |
|
void | LOC_LoadLocations (void) |
|
void | LOC_FreeLocations (void) |
|
void | LOC_UpdateCvars (void) |
|
void | LOC_AddLocationsToScene (void) |
|
void | Con_Init (void) |
|
void | Con_PostInit (void) |
|
void | Con_Shutdown (void) |
|
void | Con_DrawConsole (void) |
|
void | Con_RunConsole (void) |
|
void | Con_Print (const char *txt) |
|
void | Con_ClearNotify_f (void) |
|
void | Con_ToggleConsole_f (void) |
|
void | Con_ClearTyping (void) |
|
void | Con_Close (qboolean force) |
|
void | Con_Popup (qboolean force) |
|
void | Con_SkipNotify (qboolean skip) |
|
void | Con_RegisterMedia (void) |
|
void | Con_CheckResize (void) |
|
void | Key_Console (int key) |
|
void | Key_Message (int key) |
|
void | Char_Console (int key) |
|
void | Char_Message (int key) |
|
void | CL_InitRefresh (void) |
|
void | CL_ShutdownRefresh (void) |
|
void | CL_RunRefresh (void) |
|
void | SCR_Init (void) |
|
void | SCR_Shutdown (void) |
|
void | SCR_UpdateScreen (void) |
|
void | SCR_SizeUp (void) |
|
void | SCR_SizeDown (void) |
|
void | SCR_CenterPrint (const char *str) |
|
void | SCR_FinishCinematic (void) |
|
void | SCR_PlayCinematic (const char *name) |
|
void | SCR_RunCinematic () |
|
void | SCR_BeginLoadingPlaque (void) |
|
void | SCR_EndLoadingPlaque (void) |
|
void | SCR_DebugGraph (float value, int color) |
|
void | SCR_TouchPics (void) |
|
void | SCR_RegisterMedia (void) |
|
void | SCR_ModeChanged (void) |
|
void | SCR_LagSample (void) |
|
void | SCR_LagClear (void) |
|
void | SCR_SetCrosshairColor (void) |
|
qhandle_t | SCR_GetFont (void) |
|
void | SCR_SetHudAlpha (float alpha) |
|
float | SCR_FadeAlpha (unsigned startTime, unsigned visTime, unsigned fadeTime) |
|
int | SCR_DrawStringEx (int x, int y, int flags, size_t maxlen, const char *s, qhandle_t font) |
|
void | SCR_DrawStringMulti (int x, int y, int flags, size_t maxlen, const char *s, qhandle_t font) |
|
void | SCR_ClearChatHUD_f (void) |
|
void | SCR_AddToChatHUD (const char *text) |
|
void | CL_InitAscii (void) |
|
byte | COM_BlockSequenceCRCByte (byte *base, size_t length, int sequence) |
|
void | FX_Init (void) |
|
◆ BLASTER_PARTICLE_COLOR
#define BLASTER_PARTICLE_COLOR 0xe0 |
◆ C_FPS
#define C_FPS cls.measure.fps[0] |
◆ C_FRAMES
#define C_FRAMES cls.measure.frames[0] |
◆ C_MPS
#define C_MPS cls.measure.fps[2] |
◆ C_PPS
#define C_PPS cls.measure.fps[3] |
◆ CL_1_FRAMETIME
#define CL_1_FRAMETIME BASE_1_FRAMETIME |
◆ CL_FRAMEDIV
◆ CL_FRAMESYNC
◆ CL_FRAMETIME
#define CL_FRAMETIME BASE_FRAMETIME |
◆ CL_GTV_EmitFrame
#define CL_GTV_EmitFrame |
( |
| ) |
(void)0 |
◆ CL_GTV_Init
#define CL_GTV_Init |
( |
| ) |
(void)0 |
◆ CL_GTV_Resume
#define CL_GTV_Resume |
( |
| ) |
(void)0 |
◆ CL_GTV_Run
#define CL_GTV_Run |
( |
| ) |
(void)0 |
◆ CL_GTV_Shutdown
#define CL_GTV_Shutdown |
( |
| ) |
(void)0 |
◆ CL_GTV_Suspend
#define CL_GTV_Suspend |
( |
| ) |
(void)0 |
◆ CL_GTV_Transmit
#define CL_GTV_Transmit |
( |
| ) |
(void)0 |
◆ CL_GTV_WriteMessage
#define CL_GTV_WriteMessage |
( |
|
data, |
|
|
|
len |
|
) |
| (void)0 |
◆ CL_KEYLERPFRAC
#define CL_KEYLERPFRAC cl.lerpfrac |
◆ CL_KEYPS
#define CL_KEYPS &cl.frame.ps |
◆ CL_OLDKEYPS
#define CL_OLDKEYPS &cl.oldframe.ps |
◆ CL_PLAYER_MODEL_DISABLED
#define CL_PLAYER_MODEL_DISABLED 0 |
◆ CL_PLAYER_MODEL_FIRST_PERSON
#define CL_PLAYER_MODEL_FIRST_PERSON 2 |
◆ CL_PLAYER_MODEL_ONLY_GUN
#define CL_PLAYER_MODEL_ONLY_GUN 1 |
◆ CL_PLAYER_MODEL_THIRD_PERSON
#define CL_PLAYER_MODEL_THIRD_PERSON 3 |
◆ CONNECT_DELAY
#define CONNECT_DELAY 3000u |
◆ CONNECT_FAST
◆ CONNECT_INSTANT
◆ FF_BADFRAME
#define FF_BADFRAME (1<<5) |
◆ FF_NODELTA
#define FF_NODELTA (1<<8) |
◆ FF_OLDENT
◆ FF_OLDFRAME
#define FF_OLDFRAME (1<<6) |
◆ FF_SERVERDROP
#define FF_SERVERDROP (1<<4) |
◆ FOR_EACH_DLQ
#define FOR_EACH_DLQ |
( |
|
q | ) |
LIST_FOR_EACH(dlqueue_t, q, &cls.download.queue, entry) |
◆ FOR_EACH_DLQ_SAFE
#define FOR_EACH_DLQ_SAFE |
( |
|
q, |
|
|
|
n |
|
) |
| LIST_FOR_EACH_SAFE(dlqueue_t, q, n, &cls.download.queue, entry) |
◆ HTTP_CleanupDownloads
#define HTTP_CleanupDownloads |
( |
| ) |
(void)0 |
◆ HTTP_Init
#define HTTP_Init |
( |
| ) |
(void)0 |
◆ HTTP_QueueDownload
#define HTTP_QueueDownload |
( |
|
path, |
|
|
|
type |
|
) |
| Q_ERR_NOSYS |
◆ HTTP_RunDownloads
#define HTTP_RunDownloads |
( |
| ) |
(void)0 |
◆ HTTP_SetServer
#define HTTP_SetServer |
( |
|
url | ) |
(void)0 |
◆ HTTP_Shutdown
#define HTTP_Shutdown |
( |
| ) |
(void)0 |
◆ INSTANT_PARTICLE
#define INSTANT_PARTICLE -10000.0 |
◆ M_FRAMES
#define M_FRAMES cls.measure.frames[2] |
◆ MAX_CLIENTWEAPONMODELS
#define MAX_CLIENTWEAPONMODELS 20 |
◆ MAX_EXPLOSIONS
#define MAX_EXPLOSIONS 32 |
◆ NOEXP_GRENADE
◆ NOEXP_ROCKET
◆ NOPART_BLOOD
◆ NOPART_GRENADE_EXPLOSION
#define NOPART_GRENADE_EXPLOSION 1 |
◆ NOPART_GRENADE_TRAIL
#define NOPART_GRENADE_TRAIL 2 |
◆ NOPART_ROCKET_EXPLOSION
#define NOPART_ROCKET_EXPLOSION 4 |
◆ NOPART_ROCKET_TRAIL
#define NOPART_ROCKET_TRAIL 8 |
◆ P_FRAMES
#define P_FRAMES cls.measure.frames[3] |
◆ PARTICLE_GRAVITY
#define PARTICLE_GRAVITY 120 |
◆ R_FPS
#define R_FPS cls.measure.fps[1] |
◆ R_FRAMES
#define R_FRAMES cls.measure.frames[1] |
◆ RECENT_ADDR
◆ RECENT_MASK
◆ SHOWCLAMP
◆ SHOWMISS
◆ SHOWNET
◆ V_AddLight
#define V_AddLight |
( |
|
org, |
|
|
|
intensity, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| |
◆ V_AddLightEx
#define V_AddLightEx |
( |
|
org, |
|
|
|
intensity, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b, |
|
|
|
radius |
|
) |
| |
◆ centity_t
◆ cl_sustain_t
◆ client_state_t
◆ client_static_t
◆ clientinfo_t
◆ cparticle_t
◆ connstate_t
Enumerator |
---|
ca_uninitialized | |
ca_disconnected | |
ca_challenging | |
ca_connecting | |
ca_connected | |
ca_loading | |
ca_precached | |
ca_active | |
ca_cinematic | |
Definition at line 332 of file client.h.
◆ dlstate_t
Enumerator |
---|
DL_PENDING | |
DL_RUNNING | |
DL_DONE | |
Definition at line 361 of file client.h.
◆ dltype_t
Enumerator |
---|
DL_OTHER | |
DL_MAP | |
DL_MODEL | |
Definition at line 349 of file client.h.
◆ load_state_t
Enumerator |
---|
LOAD_NONE | |
LOAD_MAP | |
LOAD_MODELS | |
LOAD_IMAGES | |
LOAD_CLIENTS | |
LOAD_SOUNDS | |
Definition at line 606 of file client.h.
◆ Char_Console()
◆ Char_Message()
◆ CL_AddEntities()
Definition at line 1378 of file entities.c.
1389 CL_AddLightStyles();
1391 #if CL_RTX_SHADERBALLS
1392 CL_AddShaderBalls();
Referenced by V_RenderView().
◆ CL_AddParticles()
Definition at line 1989 of file effects.c.
1993 float time = 0, time2;
2033 time2 = time * time;
2035 part->origin[0] = p->
org[0] + p->
vel[0] * time + p->
accel[0] * time2;
2036 part->origin[1] = p->
org[1] + p->
vel[1] * time + p->
accel[1] * time2;
2037 part->origin[2] = p->
org[2] + p->
vel[2] * time + p->
accel[2] * time2;
2040 part->rgba.u8[0] = p->
rgba.u8[0];
2041 part->rgba.u8[1] = p->
rgba.u8[1];
2042 part->rgba.u8[2] = p->
rgba.u8[2];
2043 part->rgba.u8[3] = p->
rgba.u8[3] * alpha;
2046 part->color =
color;
2048 part->alpha = alpha;
Referenced by CL_AddEntities().
◆ CL_AddTEnts()
◆ CL_AllocParticle()
Definition at line 856 of file effects.c.
Referenced by CL_BFGExplosionParticles(), CL_BfgParticles(), CL_BigTeleportParticles(), CL_BlasterParticles(), CL_BlasterParticles2(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BloodParticleEffect(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_ColorExplosionParticles(), CL_DebugTrail(), CL_DiminishingTrail(), CL_ExplosionParticles(), CL_FlagTrail(), CL_FlyParticles(), CL_ForceWall(), CL_GenericParticleEffect(), CL_Heatbeam(), CL_IonripperTrail(), CL_ItemRespawnParticles(), CL_LogoutEffect(), CL_MonsterPlasma_Shell(), CL_Nukeblast(), CL_OldRailTrail(), CL_ParticleEffect(), CL_ParticleEffect2(), CL_ParticleEffect3(), CL_ParticleEffectWaterSplash(), CL_ParticleSmokeEffect(), CL_ParticleSteamEffect(), CL_ParticleSteamEffect2(), CL_QuadTrail(), CL_RailSpiral(), CL_RocketTrail(), CL_SmokeTrail(), CL_TagTrail(), CL_TeleporterParticles(), CL_TeleportParticles(), CL_Tracker_Explode(), CL_Tracker_Shell(), CL_TrackerTrail(), CL_TrapParticles(), CL_Widowbeamout(), and CL_WidowSplash().
◆ CL_Begin()
◆ CL_BFGExplosionParticles()
void CL_BFGExplosionParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1905 of file effects.c.
1912 for (i = 0; i < count; i++) {
1919 p->
color = 0xd0 + (rand() & 7);
1922 for (j = 0; j < 3; j++) {
1923 p->
org[j] = org[j] + ((rand() % 32) - 16);
1924 p->
vel[j] = (rand() % 384) - 192;
1931 p->
alphavel = -0.8 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_BfgParticles()
void CL_BfgParticles |
( |
entity_t * |
ent | ) |
|
Definition at line 1847 of file effects.c.
1852 float sp, sy, cp, cy;
1860 ltime = (float)
cl.
time / 1000.0;
1861 for (i = 0; i < count; i++) {
1879 dist = sin(ltime + i) * 64;
1884 VectorClear(p->
vel);
1885 VectorClear(p->
accel);
1887 VectorSubtract(p->
org, ent->origin, v);
1888 dist = VectorLength(v) / 90.0;
1890 p->
color = floor(0xd0 + dist * 7);
1893 p->
alpha = 1.0 - dist;
Referenced by CL_AddPacketEntities().
◆ CL_BigTeleportParticles()
void CL_BigTeleportParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1256 of file effects.c.
1258 static const byte colortable[4] = {2 * 8, 13 * 8, 21 * 8, 18 * 8};
1263 for (i = 0; i < 4096; i++) {
1270 p->
color = colortable[rand() & 3];
1273 angle = M_PI * 2 * (rand() & 1023) / 1023.0;
1275 p->
org[0] = org[0] + cos(angle) * dist;
1276 p->
vel[0] = cos(angle) * (70 + (rand() & 63));
1277 p->
accel[0] = -cos(angle) * 100;
1279 p->
org[1] = org[1] + sin(angle) * dist;
1280 p->
vel[1] = sin(angle) * (70 + (rand() & 63));
1281 p->
accel[1] = -sin(angle) * 100;
1283 p->
org[2] = org[2] + 8 + (rand() % 90);
1284 p->
vel[2] = -100 + (rand() & 31);
1288 p->
alphavel = -0.3 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_BlasterParticles()
void CL_BlasterParticles |
( |
vec3_t |
org, |
|
|
vec3_t |
dir |
|
) |
| |
Definition at line 1300 of file effects.c.
1308 for (i = 0; i < count; i++) {
1315 p->
color = 0xe0 + (rand() & 7);
1319 for (j = 0; j < 3; j++) {
1320 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * dir[j];
1321 p->
vel[j] = dir[j] * 30 + crand() * 40;
1328 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_BlasterParticles2()
void CL_BlasterParticles2 |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
unsigned int |
color |
|
) |
| |
Definition at line 761 of file newfx.c.
769 for (i = 0; i < count; i++) {
778 for (j = 0; j < 3; j++) {
779 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * dir[j];
780 p->
vel[j] = dir[j] * 30 + crand() * 40;
787 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_BlasterTrail()
void CL_BlasterTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 1339 of file effects.c.
1348 VectorCopy(start, move);
1349 VectorSubtract(end, start, vec);
1353 VectorScale(vec, 5, vec);
1362 VectorClear(p->
accel);
1367 p->
alphavel = -1.0 / (0.3 + frand() * 0.2);
1372 for (j = 0; j < 3; j++) {
1373 p->
org[j] = move[j] + crand();
1374 p->
vel[j] = crand() * 5;
1378 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_BlasterTrail2()
void CL_BlasterTrail2 |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 798 of file newfx.c.
807 VectorCopy(start, move);
808 VectorSubtract(end, start, vec);
812 VectorScale(vec, 5, vec);
821 VectorClear(p->
accel);
826 p->
alphavel = -1.0 / (0.3 + frand() * 0.2);
828 for (j = 0; j < 3; j++) {
829 p->
org[j] = move[j] + crand();
830 p->
vel[j] = crand() * 5;
834 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_BloodParticleEffect()
void CL_BloodParticleEffect |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count |
|
) |
| |
Definition at line 1006 of file effects.c.
1014 .pos = {org[0],org[1],org[2]},
1015 .dir = {dir[0],dir[1],dir[2]},
1020 float a[3] = {dir[1], -dir[2], dir[0]};
1021 float b[3] = {-dir[2], dir[0], dir[1]};
1025 for (i = 0; i < count; i++) {
1035 d = (rand() & 31) * 10.0f;
1036 for (j = 0; j < 3; j++) {
1037 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * (dir[j]
1038 + a[j] * 0.5f*((rand() & 31) / 32.0f - .5f)
1039 + b[j] * 0.5f*((rand() & 31) / 32.0f - .5f));
1041 p->
vel[j] = 10.0f*dir[j] + crand() * 20;
1044 p->
org[2] -= d*d * .001f;
1050 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_BubbleTrail()
void CL_BubbleTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 1718 of file effects.c.
1727 VectorCopy(start, move);
1728 VectorSubtract(end, start, vec);
1732 VectorScale(vec, dec, vec);
1734 for (i = 0; i < len; i += dec) {
1739 VectorClear(p->
accel);
1743 p->
alphavel = -1.0 / (1 + frand() * 0.2);
1745 p->
color = 4 + (rand() & 7);
1748 for (j = 0; j < 3; j++) {
1749 p->
org[j] = move[j] + crand() * 2;
1750 p->
vel[j] = crand() * 5;
1754 VectorAdd(move, vec, move);
Referenced by CL_ParseTEnt().
◆ CL_BubbleTrail2()
void CL_BubbleTrail2 |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
dist |
|
) |
| |
Definition at line 228 of file newfx.c.
237 VectorCopy(start, move);
238 VectorSubtract(end, start, vec);
242 VectorScale(vec, dec, vec);
244 for (i = 0; i < len; i += dec) {
249 VectorClear(p->
accel);
253 p->
alphavel = -1.0 / (1 + frand() * 0.1);
254 p->
color = 4 + (rand() & 7);
255 for (j = 0; j < 3; j++) {
256 p->
org[j] = move[j] + crand() * 2;
257 p->
vel[j] = crand() * 10;
262 VectorAdd(move, vec, move);
Referenced by CL_ParseTEnt().
◆ CL_CalcViewValues()
Definition at line 1251 of file entities.c.
1253 player_state_t *ps, *ops;
1284 cl.
refdef.vieworg[0] = ops->pmove.origin[0] * 0.125f +
1285 lerp * (ps->pmove.origin[0] - ops->pmove.origin[0]) * 0.125f;
1286 cl.
refdef.vieworg[1] = ops->pmove.origin[1] * 0.125f +
1287 lerp * (ps->pmove.origin[1] - ops->pmove.origin[1]) * 0.125f;
1288 cl.
refdef.vieworg[2] = ops->pmove.origin[2] * 0.125f +
1289 lerp * (ps->pmove.origin[2] - ops->pmove.origin[2]) * 0.125f;
1294 LerpAngles(ops->viewangles, ps->viewangles, lerp,
cl.
refdef.viewangles);
1295 }
else if (ps->pmove.pm_type < PM_DEAD) {
1298 }
else if (ops->pmove.pm_type < PM_DEAD &&
cls.
serverProtocol > PROTOCOL_VERSION_DEFAULT) {
1304 LerpAngles(ops->viewangles, ps->viewangles, lerp,
cl.
refdef.viewangles);
1307 #if USE_SMOOTH_DELTA_ANGLES
1308 cl.delta_angles[0] = LerpShort(ops->pmove.delta_angles[0], ps->pmove.delta_angles[0], lerp);
1309 cl.delta_angles[1] = LerpShort(ops->pmove.delta_angles[1], ps->pmove.delta_angles[1], lerp);
1310 cl.delta_angles[2] = LerpShort(ops->pmove.delta_angles[2], ps->pmove.delta_angles[2], lerp);
1314 Vector4Copy(ps->blend,
cl.
refdef.blend);
1317 ps = &
cl.keyframe.ps;
1318 ops = &
cl.oldkeyframe.ps;
1320 lerp =
cl.keylerpfrac;
1327 LerpVector(ops->viewoffset, ps->viewoffset, lerp, viewoffset);
Referenced by CL_AddEntities(), and CL_Frame().
◆ CL_CheckDownloadExtension()
qboolean CL_CheckDownloadExtension |
( |
const char * |
ext | ) |
|
Definition at line 494 of file download.c.
496 static const char allowed[][4] = {
497 "pcx",
"wal",
"wav",
"md2",
"sp2",
"tga",
"png",
498 "jpg",
"bsp",
"ent",
"txt",
"dm2",
"loc",
"md3"
502 for (i = 0; i < q_countof(allowed); i++)
503 if (!Q_stricmp(
ext, allowed[i]))
Referenced by check_and_queue_download(), and check_file_len().
◆ CL_CheckForIgnore()
qboolean CL_CheckForIgnore |
( |
const char * |
s | ) |
|
Definition at line 2043 of file main.c.
2045 char buffer[MAX_STRING_CHARS];
2056 if (Com_WildCmp(ignore->
match, buffer)) {
Referenced by CL_ParsePrint().
◆ CL_CheckForPause()
◆ CL_CheckForResend()
◆ CL_CheckPredictionError()
Definition at line 27 of file predict.c.
47 frame =
cls.
netchan->incoming_acknowledged & CMD_MASK;
54 len = abs(delta[0]) + abs(delta[1]) + abs(delta[2]);
55 if (len < 1 || len > 640) {
61 SHOWMISS(
"prediction miss on %i: %i (%d %d %d)\n",
Referenced by CL_DeltaFrame().
◆ CL_CleanupDemos()
Definition at line 1179 of file demo.c.
1198 Com_Printf(
"%u frames, %3.1f seconds: %3.1f fps\n",
1211 Com_DPrintf(
"Freed %"PRIz
" bytes of snaps\n", total);
Referenced by CL_Disconnect().
◆ CL_CleanupDownloads()
◆ CL_ClearEffects()
◆ CL_ClearState()
◆ CL_ClearTEnts()
◆ CL_ClientCommand()
void CL_ClientCommand |
( |
const char * |
string | ) |
|
Definition at line 299 of file main.c.
305 Com_DDPrintf(
"%s: %s\n", __func__,
string);
Referenced by CL_Begin(), CL_ConnectionlessPacket(), CL_ForwardToServer(), CL_ForwardToServer_f(), CL_HandleDownload(), CL_Reconnect_f(), Con_Say(), HTTP_QueueDownload(), Key_Event(), SCR_FinishCinematic(), and start_udp_download().
◆ CL_ColorExplosionParticles()
void CL_ColorExplosionParticles |
( |
vec3_t |
org, |
|
|
int |
color, |
|
|
int |
run |
|
) |
| |
Definition at line 690 of file newfx.c.
695 for (i = 0; i < 128; i++) {
703 for (j = 0; j < 3; j++) {
704 p->
org[j] = org[j] + ((rand() % 32) - 16);
705 p->
vel[j] = (rand() % 256) - 128;
712 p->
alphavel = -0.4 / (0.6 + frand() * 0.2);
Referenced by CL_ParseTEnt().
◆ CL_DebugTrail()
void CL_DebugTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 63 of file newfx.c.
72 VectorCopy(start, move);
73 VectorSubtract(end, start, vec);
76 MakeNormalVectors(vec,
right,
up);
79 VectorScale(vec, dec, vec);
80 VectorCopy(start, move);
90 VectorClear(p->
accel);
94 p->
color = 0x74 + (rand() & 7);
95 VectorCopy(move, p->
org);
96 VectorAdd(move, vec, move);
Referenced by CL_ParseTEnt().
◆ CL_DeltaFrame()
◆ CL_DemoFrame()
◆ CL_DiminishingTrail()
void CL_DiminishingTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
centity_t * |
old, |
|
|
int |
flags |
|
) |
| |
Definition at line 1484 of file effects.c.
1495 VectorCopy(start, move);
1496 VectorSubtract(end, start, vec);
1500 VectorScale(vec, dec, vec);
1521 VectorClear(p->
accel);
1525 if (flags & EF_GIB) {
1527 p->
alphavel = -1.0 / (1 + frand() * 0.4);
1529 p->
color = 0xe8 + (rand() & 7);
1532 for (j = 0; j < 3; j++) {
1533 p->
org[j] = move[j] + crand() * orgscale;
1534 p->
vel[j] = crand() * velscale;
1538 }
else if (flags & EF_GREENGIB) {
1540 p->
alphavel = -1.0 / (1 + frand() * 0.4);
1542 p->
color = 0xdb + (rand() & 7);
1545 for (j = 0; j < 3; j++) {
1546 p->
org[j] = move[j] + crand() * orgscale;
1547 p->
vel[j] = crand() * velscale;
1553 p->
alphavel = -1.0 / (1 + frand() * 0.2);
1555 p->
color = 4 + (rand() & 7);
1558 for (j = 0; j < 3; j++) {
1559 p->
org[j] = move[j] + crand() * orgscale;
1560 p->
vel[j] = crand() * velscale;
1569 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities(), and CL_RocketTrail().
◆ CL_Disconnect()
void CL_Disconnect |
( |
error_type_t |
type | ) |
|
◆ CL_EmitDemoFrame()
Definition at line 186 of file demo.c.
212 Com_DPrintf(
"Demo frame overflowed (%"PRIz
" + %"PRIz
" > %"PRIz
")\n",
218 Com_WPrintf(
"Too many demo frames don't fit into %"PRIz
" bytes.\n"
219 "Try to increase 'cl_demomsglen' value and restart recording.\n",
Referenced by CL_DeltaFrame(), and resume_record().
◆ CL_EmitDemoSnapshot()
Definition at line 773 of file demo.c.
802 for (i = 0; i < UPDATE_BACKUP; i++) {
804 frame = &
cl.
frames[j & UPDATE_MASK];
816 for (i = 0; i < MAX_CONFIGSTRINGS; i++) {
820 if (!strcmp(from, to))
829 MSG_WriteData(to, len);
837 snap = Z_Malloc(
sizeof(*snap) +
msg_write.cursize - 1);
Referenced by CL_Seek_f(), and parse_next_message().
◆ CL_ExplosionParticles()
void CL_ExplosionParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1221 of file effects.c.
1228 for (i = 0; i < count; i++) {
1235 p->
color = 0xe0 + (rand() & 7);
1238 for (j = 0; j < 3; j++) {
1239 p->
org[j] = org[j] + ((rand() % 32) - 16);
1240 p->
vel[j] = (rand() % 384) - 192;
1247 p->
alphavel = -0.8 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_FinalizeCmd()
Definition at line 790 of file input.c.
814 cl.
cmd.buttons |= BUTTON_ATTACK;
816 cl.
cmd.buttons |= BUTTON_USE;
822 cl.
cmd.buttons |= BUTTON_ANY;
825 if (
cl.
cmd.msec > 250) {
843 cl.
cmd.forwardmove = move[0];
844 cl.
cmd.sidemove = move[1];
845 cl.
cmd.upmove = move[2];
Referenced by CL_Frame().
◆ CL_FinishDownload()
◆ CL_FirstDemoFrame()
◆ CL_FlagTrail()
void CL_FlagTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
color |
|
) |
| |
Definition at line 1436 of file effects.c.
1445 VectorCopy(start, move);
1446 VectorSubtract(end, start, vec);
1450 VectorScale(vec, 5, vec);
1458 VectorClear(p->
accel);
1463 p->
alphavel = -1.0 / (0.8 + frand() * 0.2);
1468 for (j = 0; j < 3; j++) {
1469 p->
org[j] = move[j] + crand() * 16;
1470 p->
vel[j] = crand() * 5;
1474 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_FlyEffect()
◆ CL_ForceWall()
void CL_ForceWall |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
color |
|
) |
| |
Definition at line 143 of file newfx.c.
151 VectorCopy(start, move);
152 VectorSubtract(end, start, vec);
155 VectorScale(vec, 4, vec);
165 VectorClear(p->
accel);
170 p->
alphavel = -1.0 / (3.0 + frand() * 0.5);
172 for (j = 0; j < 3; j++) {
173 p->
org[j] = move[j] + crand() * 3;
178 p->
vel[2] = -40 - (crand() * 10);
181 VectorAdd(move, vec, move);
Referenced by CL_ParseTEnt().
◆ CL_GenericParticleEffect()
void CL_GenericParticleEffect |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count, |
|
|
int |
numcolors, |
|
|
int |
dirspread, |
|
|
float |
alphavel |
|
) |
| |
Definition at line 191 of file newfx.c.
197 for (i = 0; i < count; i++) {
208 d = rand() & dirspread;
209 for (j = 0; j < 3; j++) {
210 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * dir[j];
211 p->
vel[j] = crand() * 20;
218 p->
alphavel = -1.0 / (0.5 + frand() * alphavel);
◆ CL_GetDemoInfo()
demoInfo_t* CL_GetDemoInfo |
( |
const char * |
path, |
|
|
demoInfo_t * |
info |
|
) |
| |
Definition at line 1091 of file demo.c.
1095 char string[MAX_QPATH];
1096 int clientNum, type;
1129 if (
c != svc_configstring) {
1133 if (index < 0 || index >= MAX_CONFIGSTRINGS) {
1155 if (index == MAX_CONFIGSTRINGS) {
1158 if (index < 0 || index >= MAX_CONFIGSTRINGS) {
Referenced by BuildName().
◆ CL_GetEntitySoundOrigin()
void CL_GetEntitySoundOrigin |
( |
int |
ent, |
|
|
vec3_t |
org |
|
) |
| |
Definition at line 1404 of file entities.c.
1410 if (entnum < 0 || entnum >= MAX_EDICTS) {
1411 Com_Error(ERR_DROP,
"%s: bad entnum: %d", __func__, entnum);
1426 if (ent->
current.solid == PACKED_BSP) {
1429 VectorAvg(cm->mins, cm->maxs, mid);
1430 VectorAdd(org, mid, org);
Referenced by AL_AddLoopSounds(), and AL_Spatialize().
◆ CL_HandleDownload()
void CL_HandleDownload |
( |
byte * |
data, |
|
|
int |
size, |
|
|
int |
percent, |
|
|
int |
compressed |
|
) |
| |
Definition at line 424 of file download.c.
430 Com_Error(ERR_DROP,
"%s: no download requested", __func__);
446 Com_EPrintf(
"[UDP] Couldn't open %s for writing: %s\n",
461 if (percent != 100) {
476 Com_EPrintf(
"[UDP] Couldn't rename %s to %s: %s\n",
Referenced by CL_ParseDownload().
◆ CL_Heatbeam()
void CL_Heatbeam |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 266 of file newfx.c.
277 float step = 32.0, rstep;
283 VectorMA(start, 4096,
forward, end);
285 VectorCopy(start, move);
286 VectorSubtract(end, start, vec);
289 ltime = (float)
cl.
time / 1000.0;
290 start_pt = fmod(ltime * 96.0, step);
291 VectorMA(move, start_pt, vec, move);
293 VectorScale(vec, step, vec);
296 for (i = start_pt; i < len; i += step) {
300 for (rot = 0; rot < M_PI * 2; rot += rstep) {
306 VectorClear(p->
accel);
308 c = cos(rot) * variance;
309 s = sin(rot) * variance;
314 VectorMA(dir, s * (i / 10.0),
cl.
v_up, dir);
317 VectorMA(dir, s,
cl.
v_up, dir);
322 p->
color = 223 - (rand() & 7);
323 for (j = 0; j < 3; j++) {
324 p->
org[j] = move[j] + dir[j] * 3;
329 VectorAdd(move, vec, move);
Referenced by CL_AddPlayerBeams().
◆ CL_IgnoreDownload()
qboolean CL_IgnoreDownload |
( |
const char * |
path | ) |
|
◆ CL_Init()
Definition at line 3414 of file main.c.
3420 if (cl_running->integer) {
3441 if (inflateInit2(&
cls.z, -MAX_WBITS) != Z_OK) {
3442 Com_Error(ERR_FATAL,
"%s: inflateInit2() failed", __func__);
Referenced by Qcommon_Init().
◆ CL_InitAscii()
◆ CL_InitDemos()
◆ CL_InitDownloads()
◆ CL_InitEffects()
Definition at line 2075 of file effects.c.
2079 for (i = 0; i < NUMVERTEXNORMALS; i++)
2080 for (j = 0; j < 3; j++)
Referenced by CL_InitLocal().
◆ CL_InitRefresh()
Definition at line 289 of file refresh.c.
315 CVAR_REFRESH | CVAR_ARCHIVE);
332 #if REF_GL && REF_VKPT
342 #error "REF_GL and REF_VKPT are both disabled, at least one has to be enableds"
Referenced by CL_Init(), and CL_RestartRefresh().
◆ CL_InitTEnts()
◆ CL_IonripperTrail()
void CL_IonripperTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 843 of file newfx.c.
853 VectorCopy(start, move);
854 VectorSubtract(ent, start, vec);
858 VectorScale(vec, 5, vec);
866 VectorClear(p->
accel);
870 p->
alphavel = -1.0 / (0.3 + frand() * 0.2);
871 p->
color = 0xe4 + (rand() & 3);
873 for (j = 0; j < 3; j++) {
888 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_ItemRespawnParticles()
void CL_ItemRespawnParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1183 of file effects.c.
1190 for (i = 0; i < count; i++) {
1197 p->
color = 0xd4 + (rand() & 3);
1200 p->
org[0] = org[0] + crand() * 8;
1201 p->
org[1] = org[1] + crand() * 8;
1202 p->
org[2] = org[2] + crand() * 8;
1204 for (j = 0; j < 3; j++)
1205 p->
vel[j] = crand() * 8;
1211 p->
alphavel = -1.0 / (1.0 + frand() * 0.3);
Referenced by entity_event().
◆ CL_LoadClientinfo()
Definition at line 104 of file precache.c.
107 char model_name[MAX_QPATH];
108 char skin_name[MAX_QPATH];
109 char model_filename[MAX_QPATH];
110 char skin_filename[MAX_QPATH];
111 char weapon_filename[MAX_QPATH];
112 char icon_filename[MAX_QPATH];
117 Q_concat(model_filename,
sizeof(model_filename),
118 "players/", model_name,
"/tris.md2", NULL);
120 if (!ci->
model && Q_stricmp(model_name,
"male")) {
121 strcpy(model_name,
"male");
122 strcpy(model_filename,
"players/male/tris.md2");
127 Q_concat(skin_filename,
sizeof(skin_filename),
128 "players/", model_name,
"/", skin_name,
".pcx", NULL);
129 ci->
skin = R_RegisterSkin(skin_filename);
133 if (!ci->
skin && !Q_stricmp(model_name,
"female")) {
134 strcpy(skin_name,
"athena");
135 strcpy(skin_filename,
"players/female/athena.pcx");
136 ci->
skin = R_RegisterSkin(skin_filename);
141 if (!ci->
skin && Q_stricmp(model_name,
"male")) {
143 strcpy(model_name,
"male");
144 strcpy(model_filename,
"players/male/tris.md2");
148 Q_concat(skin_filename,
sizeof(skin_filename),
149 "players/male/", skin_name,
".pcx", NULL);
150 ci->
skin = R_RegisterSkin(skin_filename);
157 strcpy(skin_name,
"grunt");
158 strcpy(skin_filename,
"players/male/grunt.pcx");
159 ci->
skin = R_RegisterSkin(skin_filename);
164 Q_concat(weapon_filename,
sizeof(weapon_filename),
167 if (!ci->
weaponmodel[i] && !Q_stricmp(model_name,
"cyborg")) {
169 Q_concat(weapon_filename,
sizeof(weapon_filename),
176 Q_concat(icon_filename,
sizeof(icon_filename),
177 "/players/", model_name,
"/", skin_name,
"_i.pcx", NULL);
178 ci->
icon = R_RegisterPic2(icon_filename);
Referenced by cl_noskins_changed(), CL_PrepRefresh(), CL_Skins_f(), and CL_UpdateConfigstring().
◆ CL_LoadDownloadIgnores()
Definition at line 173 of file download.c.
175 string_entry_t *entry, *next;
176 char *raw, *data, *p;
191 if (len != Q_ERR_NOENT)
192 Com_EPrintf(
"Couldn't load %s: %s\n",
202 p = strchr(data,
'\n');
204 if (p > data && *(p - 1) ==
'\r')
210 if (*data && *data !=
'#' && *data !=
'/') {
212 if (len < MAX_QPATH) {
213 entry = Z_Malloc(
sizeof(*entry) + len);
214 memcpy(entry->string, data, len + 1);
219 Com_WPrintf(
"Oversize filter on line %d in %s\n",
Referenced by CL_Init(), and CL_RestartFilesystem().
◆ CL_LoadState()
◆ CL_MonsterPlasma_Shell()
void CL_MonsterPlasma_Shell |
( |
vec3_t |
origin | ) |
|
◆ CL_MuzzleFlash()
Definition at line 257 of file effects.c.
265 char soundname[MAX_QPATH];
268 if (developer->integer)
269 CL_CheckEntityPresent(
mz.
entity,
"muzzleflash");
276 VectorCopy(pl->
current.origin, dl->origin);
278 VectorMA(dl->origin, 18,
fv, dl->origin);
279 VectorMA(dl->origin, 16, rv, dl->origin);
281 dl->radius = 100 + (rand() & 31);
283 dl->radius = 200 + (rand() & 31);
286 #define DL_COLOR(r, g, b) VectorSet(dl->color, r, g, b)
287 #define DL_RADIUS(r) (dl->radius = r)
288 #define DL_DIE(t) (dl->die = cl.time + t)
290 #define DL_COLOR(r, g, b)
305 case MZ_BLUEHYPERBLASTER:
309 case MZ_HYPERBLASTER:
315 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
330 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
337 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
339 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
346 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
348 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
350 Q_snprintf(soundname,
sizeof(soundname),
"weapons/machgf%ib.wav", (rand() % 5) + 1);
Referenced by CL_ParseServerMessage().
◆ CL_MuzzleFlash2()
Definition at line 459 of file effects.c.
468 char soundname[MAX_QPATH];
480 VectorCopy(
origin, dl->origin);
481 dl->radius = 200 + (rand() & 31);
487 case MZ2_INFANTRY_MACHINEGUN_1:
488 case MZ2_INFANTRY_MACHINEGUN_2:
489 case MZ2_INFANTRY_MACHINEGUN_3:
490 case MZ2_INFANTRY_MACHINEGUN_4:
491 case MZ2_INFANTRY_MACHINEGUN_5:
492 case MZ2_INFANTRY_MACHINEGUN_6:
493 case MZ2_INFANTRY_MACHINEGUN_7:
494 case MZ2_INFANTRY_MACHINEGUN_8:
495 case MZ2_INFANTRY_MACHINEGUN_9:
496 case MZ2_INFANTRY_MACHINEGUN_10:
497 case MZ2_INFANTRY_MACHINEGUN_11:
498 case MZ2_INFANTRY_MACHINEGUN_12:
499 case MZ2_INFANTRY_MACHINEGUN_13:
506 case MZ2_SOLDIER_MACHINEGUN_1:
507 case MZ2_SOLDIER_MACHINEGUN_2:
508 case MZ2_SOLDIER_MACHINEGUN_3:
509 case MZ2_SOLDIER_MACHINEGUN_4:
510 case MZ2_SOLDIER_MACHINEGUN_5:
511 case MZ2_SOLDIER_MACHINEGUN_6:
512 case MZ2_SOLDIER_MACHINEGUN_7:
513 case MZ2_SOLDIER_MACHINEGUN_8:
520 case MZ2_GUNNER_MACHINEGUN_1:
521 case MZ2_GUNNER_MACHINEGUN_2:
522 case MZ2_GUNNER_MACHINEGUN_3:
523 case MZ2_GUNNER_MACHINEGUN_4:
524 case MZ2_GUNNER_MACHINEGUN_5:
525 case MZ2_GUNNER_MACHINEGUN_6:
526 case MZ2_GUNNER_MACHINEGUN_7:
527 case MZ2_GUNNER_MACHINEGUN_8:
534 case MZ2_ACTOR_MACHINEGUN_1:
535 case MZ2_SUPERTANK_MACHINEGUN_1:
536 case MZ2_SUPERTANK_MACHINEGUN_2:
537 case MZ2_SUPERTANK_MACHINEGUN_3:
538 case MZ2_SUPERTANK_MACHINEGUN_4:
539 case MZ2_SUPERTANK_MACHINEGUN_5:
540 case MZ2_SUPERTANK_MACHINEGUN_6:
541 case MZ2_TURRET_MACHINEGUN:
548 case MZ2_BOSS2_MACHINEGUN_L1:
549 case MZ2_BOSS2_MACHINEGUN_L2:
550 case MZ2_BOSS2_MACHINEGUN_L3:
551 case MZ2_BOSS2_MACHINEGUN_L4:
552 case MZ2_BOSS2_MACHINEGUN_L5:
553 case MZ2_CARRIER_MACHINEGUN_L1:
554 case MZ2_CARRIER_MACHINEGUN_L2:
561 case MZ2_SOLDIER_BLASTER_1:
562 case MZ2_SOLDIER_BLASTER_2:
563 case MZ2_SOLDIER_BLASTER_3:
564 case MZ2_SOLDIER_BLASTER_4:
565 case MZ2_SOLDIER_BLASTER_5:
566 case MZ2_SOLDIER_BLASTER_6:
567 case MZ2_SOLDIER_BLASTER_7:
568 case MZ2_SOLDIER_BLASTER_8:
569 case MZ2_TURRET_BLASTER:
574 case MZ2_FLYER_BLASTER_1:
575 case MZ2_FLYER_BLASTER_2:
580 case MZ2_MEDIC_BLASTER_1:
585 case MZ2_HOVER_BLASTER_1:
590 case MZ2_FLOAT_BLASTER_1:
595 case MZ2_SOLDIER_SHOTGUN_1:
596 case MZ2_SOLDIER_SHOTGUN_2:
597 case MZ2_SOLDIER_SHOTGUN_3:
598 case MZ2_SOLDIER_SHOTGUN_4:
599 case MZ2_SOLDIER_SHOTGUN_5:
600 case MZ2_SOLDIER_SHOTGUN_6:
601 case MZ2_SOLDIER_SHOTGUN_7:
602 case MZ2_SOLDIER_SHOTGUN_8:
608 case MZ2_TANK_BLASTER_1:
609 case MZ2_TANK_BLASTER_2:
610 case MZ2_TANK_BLASTER_3:
615 case MZ2_TANK_MACHINEGUN_1:
616 case MZ2_TANK_MACHINEGUN_2:
617 case MZ2_TANK_MACHINEGUN_3:
618 case MZ2_TANK_MACHINEGUN_4:
619 case MZ2_TANK_MACHINEGUN_5:
620 case MZ2_TANK_MACHINEGUN_6:
621 case MZ2_TANK_MACHINEGUN_7:
622 case MZ2_TANK_MACHINEGUN_8:
623 case MZ2_TANK_MACHINEGUN_9:
624 case MZ2_TANK_MACHINEGUN_10:
625 case MZ2_TANK_MACHINEGUN_11:
626 case MZ2_TANK_MACHINEGUN_12:
627 case MZ2_TANK_MACHINEGUN_13:
628 case MZ2_TANK_MACHINEGUN_14:
629 case MZ2_TANK_MACHINEGUN_15:
630 case MZ2_TANK_MACHINEGUN_16:
631 case MZ2_TANK_MACHINEGUN_17:
632 case MZ2_TANK_MACHINEGUN_18:
633 case MZ2_TANK_MACHINEGUN_19:
637 Q_snprintf(soundname,
sizeof(soundname),
"tank/tnkatk2%c.wav",
'a' + rand() % 5);
641 case MZ2_CHICK_ROCKET_1:
642 case MZ2_TURRET_ROCKET:
647 case MZ2_TANK_ROCKET_1:
648 case MZ2_TANK_ROCKET_2:
649 case MZ2_TANK_ROCKET_3:
654 case MZ2_SUPERTANK_ROCKET_1:
655 case MZ2_SUPERTANK_ROCKET_2:
656 case MZ2_SUPERTANK_ROCKET_3:
657 case MZ2_BOSS2_ROCKET_1:
658 case MZ2_BOSS2_ROCKET_2:
659 case MZ2_BOSS2_ROCKET_3:
660 case MZ2_BOSS2_ROCKET_4:
661 case MZ2_CARRIER_ROCKET_1:
669 case MZ2_GUNNER_GRENADE_1:
670 case MZ2_GUNNER_GRENADE_2:
671 case MZ2_GUNNER_GRENADE_3:
672 case MZ2_GUNNER_GRENADE_4:
677 case MZ2_GLADIATOR_RAILGUN_1:
678 case MZ2_CARRIER_RAILGUN:
688 case MZ2_MAKRON_BLASTER_1:
689 case MZ2_MAKRON_BLASTER_2:
690 case MZ2_MAKRON_BLASTER_3:
691 case MZ2_MAKRON_BLASTER_4:
692 case MZ2_MAKRON_BLASTER_5:
693 case MZ2_MAKRON_BLASTER_6:
694 case MZ2_MAKRON_BLASTER_7:
695 case MZ2_MAKRON_BLASTER_8:
696 case MZ2_MAKRON_BLASTER_9:
697 case MZ2_MAKRON_BLASTER_10:
698 case MZ2_MAKRON_BLASTER_11:
699 case MZ2_MAKRON_BLASTER_12:
700 case MZ2_MAKRON_BLASTER_13:
701 case MZ2_MAKRON_BLASTER_14:
702 case MZ2_MAKRON_BLASTER_15:
703 case MZ2_MAKRON_BLASTER_16:
704 case MZ2_MAKRON_BLASTER_17:
709 case MZ2_JORG_MACHINEGUN_L1:
710 case MZ2_JORG_MACHINEGUN_L2:
711 case MZ2_JORG_MACHINEGUN_L3:
712 case MZ2_JORG_MACHINEGUN_L4:
713 case MZ2_JORG_MACHINEGUN_L5:
714 case MZ2_JORG_MACHINEGUN_L6:
721 case MZ2_JORG_MACHINEGUN_R1:
722 case MZ2_JORG_MACHINEGUN_R2:
723 case MZ2_JORG_MACHINEGUN_R3:
724 case MZ2_JORG_MACHINEGUN_R4:
725 case MZ2_JORG_MACHINEGUN_R5:
726 case MZ2_JORG_MACHINEGUN_R6:
736 case MZ2_BOSS2_MACHINEGUN_R1:
737 case MZ2_BOSS2_MACHINEGUN_R2:
738 case MZ2_BOSS2_MACHINEGUN_R3:
739 case MZ2_BOSS2_MACHINEGUN_R4:
740 case MZ2_BOSS2_MACHINEGUN_R5:
741 case MZ2_CARRIER_MACHINEGUN_R1:
742 case MZ2_CARRIER_MACHINEGUN_R2:
748 case MZ2_STALKER_BLASTER:
749 case MZ2_DAEDALUS_BLASTER:
750 case MZ2_MEDIC_BLASTER_2:
751 case MZ2_WIDOW_BLASTER:
752 case MZ2_WIDOW_BLASTER_SWEEP1:
753 case MZ2_WIDOW_BLASTER_SWEEP2:
754 case MZ2_WIDOW_BLASTER_SWEEP3:
755 case MZ2_WIDOW_BLASTER_SWEEP4:
756 case MZ2_WIDOW_BLASTER_SWEEP5:
757 case MZ2_WIDOW_BLASTER_SWEEP6:
758 case MZ2_WIDOW_BLASTER_SWEEP7:
759 case MZ2_WIDOW_BLASTER_SWEEP8:
760 case MZ2_WIDOW_BLASTER_SWEEP9:
761 case MZ2_WIDOW_BLASTER_100:
762 case MZ2_WIDOW_BLASTER_90:
763 case MZ2_WIDOW_BLASTER_80:
764 case MZ2_WIDOW_BLASTER_70:
765 case MZ2_WIDOW_BLASTER_60:
766 case MZ2_WIDOW_BLASTER_50:
767 case MZ2_WIDOW_BLASTER_40:
768 case MZ2_WIDOW_BLASTER_30:
769 case MZ2_WIDOW_BLASTER_20:
770 case MZ2_WIDOW_BLASTER_10:
771 case MZ2_WIDOW_BLASTER_0:
772 case MZ2_WIDOW_BLASTER_10L:
773 case MZ2_WIDOW_BLASTER_20L:
774 case MZ2_WIDOW_BLASTER_30L:
775 case MZ2_WIDOW_BLASTER_40L:
776 case MZ2_WIDOW_BLASTER_50L:
777 case MZ2_WIDOW_BLASTER_60L:
778 case MZ2_WIDOW_BLASTER_70L:
779 case MZ2_WIDOW_RUN_1:
780 case MZ2_WIDOW_RUN_2:
781 case MZ2_WIDOW_RUN_3:
782 case MZ2_WIDOW_RUN_4:
783 case MZ2_WIDOW_RUN_5:
784 case MZ2_WIDOW_RUN_6:
785 case MZ2_WIDOW_RUN_7:
786 case MZ2_WIDOW_RUN_8:
791 case MZ2_WIDOW_DISRUPTOR:
796 case MZ2_WIDOW_PLASMABEAM:
797 case MZ2_WIDOW2_BEAMER_1:
798 case MZ2_WIDOW2_BEAMER_2:
799 case MZ2_WIDOW2_BEAMER_3:
800 case MZ2_WIDOW2_BEAMER_4:
801 case MZ2_WIDOW2_BEAMER_5:
802 case MZ2_WIDOW2_BEAM_SWEEP_1:
803 case MZ2_WIDOW2_BEAM_SWEEP_2:
804 case MZ2_WIDOW2_BEAM_SWEEP_3:
805 case MZ2_WIDOW2_BEAM_SWEEP_4:
806 case MZ2_WIDOW2_BEAM_SWEEP_5:
807 case MZ2_WIDOW2_BEAM_SWEEP_6:
808 case MZ2_WIDOW2_BEAM_SWEEP_7:
809 case MZ2_WIDOW2_BEAM_SWEEP_8:
810 case MZ2_WIDOW2_BEAM_SWEEP_9:
811 case MZ2_WIDOW2_BEAM_SWEEP_10:
812 case MZ2_WIDOW2_BEAM_SWEEP_11:
Referenced by CL_ParseServerMessage().
◆ CL_Nukeblast()
Definition at line 551 of file newfx.c.
553 static const byte colortable[4] = {110, 112, 114, 116};
559 ratio = 1.0 - (((float)self->
endtime - (
float)
cl.
time) / 1000.0);
561 for (i = 0; i < 700; i++) {
565 VectorClear(p->
accel);
571 p->
color = colortable[rand() & 3];
578 VectorMA(self->
org, (200.0 * ratio), dir, p->
org);
Referenced by CL_ParseNuke().
◆ CL_OldRailTrail()
Definition at line 1632 of file effects.c.
1646 VectorCopy(
te.
pos1, move);
1650 MakeNormalVectors(vec,
right,
up);
1652 for (i = 0; i < len; i++) {
1658 VectorClear(p->
accel);
1664 VectorScale(
right,
c, dir);
1665 VectorMA(dir, s,
up, dir);
1668 p->
alphavel = -1.0 / (1 + frand() * 0.2);
1670 p->
color = clr + (rand() & 7);
1673 for (j = 0; j < 3; j++) {
1674 p->
org[j] = move[j] + dir[j] * 3;
1675 p->
vel[j] = dir[j] * 6;
1678 VectorAdd(move, vec, move);
1682 VectorScale(vec, dec, vec);
1683 VectorCopy(
te.
pos1, move);
1693 VectorClear(p->
accel);
1696 p->
alphavel = -1.0 / (0.6 + frand() * 0.2);
1698 p->
color = rand() & 15;
1701 for (j = 0; j < 3; j++) {
1702 p->
org[j] = move[j] + crand() * 3;
1703 p->
vel[j] = crand() * 3;
1707 VectorAdd(move, vec, move);
Referenced by CL_RailTrail().
◆ CL_ParsePlayerSkin()
void CL_ParsePlayerSkin |
( |
char * |
name, |
|
|
char * |
model, |
|
|
char * |
skin, |
|
|
const char * |
s |
|
) |
| |
Definition at line 35 of file precache.c.
43 if (len >= MAX_QPATH) {
44 Com_Error(ERR_DROP,
"%s: oversize playerskin", __func__);
64 t = strchr(model,
'/');
66 t = strchr(model,
'\\');
76 strcpy(model,
"male");
88 if (!Q_stricmp(model,
"female")) {
89 strcpy(model,
"female");
90 strcpy(skin,
"athena");
93 strcpy(model,
"male");
94 strcpy(skin,
"grunt");
Referenced by check_player(), and CL_LoadClientinfo().
◆ CL_ParseServerMessage()
Definition at line 1168 of file parse.c.
1175 if (cl_shownet->integer == 1) {
1177 }
else if (cl_shownet->integer > 1) {
1178 Com_LPrintf(PRINT_DEVELOPER,
"------------------\n");
1187 Com_Error(ERR_DROP,
"%s: read past end of server message", __func__);
1197 extrabits = cmd >> SVCMD_BITS;
1201 if (cl_shownet->integer > 1) {
1210 Com_Error(ERR_DROP,
"%s: illegible server message: %d", __func__, cmd);
1216 case svc_disconnect:
1217 Com_Error(ERR_DISCONNECT,
"Server disconnected");
1228 case svc_centerprint:
1236 case svc_serverdata:
1240 case svc_configstring:
1250 case svc_spawnbaseline:
1251 index = MSG_ParseEntityBits(&bits);
1317 size_t len =
msg_read.readcount - readcount;
Referenced by CL_PacketEvent(), CL_ParseZPacket(), CL_PlayDemo_f(), and parse_next_message().
◆ CL_ParseTEnt()
Definition at line 1069 of file tent.c.
1085 case TE_BULLET_SPARKS:
1086 if (
te.
type == TE_GUNSHOT)
1091 if (
te.
type != TE_SPARKS) {
1105 case TE_SCREEN_SPARKS:
1106 case TE_SHIELD_SPARKS:
1107 if (
te.
type == TE_SCREEN_SPARKS)
1127 if (
te.
color == SPLASH_SPARKS) {
1138 case TE_LASER_SPARKS:
1142 case TE_BLUEHYPERBLASTER:
1153 ex->
type = ex_blaster;
1154 ex->
ent.flags = RF_FULLBRIGHT | RF_TRANSLUCENT;
1164 ex->
ent.skinnum = 1;
1169 ex->
ent.skinnum = 2;
1178 ex->
type = ex_flare;
1203 case TE_GRENADE_EXPLOSION:
1204 case TE_GRENADE_EXPLOSION_WATER:
1212 ex->
type = ex_light;
1217 if (
te.
type == TE_GRENADE_EXPLOSION_WATER)
1234 case TE_PLASMA_EXPLOSION:
1240 case TE_ROCKET_EXPLOSION:
1241 case TE_ROCKET_EXPLOSION_WATER:
1244 ex->
type = ex_light;
1249 if (
te.
type == TE_ROCKET_EXPLOSION_WATER)
1261 case TE_EXPLOSION1_NP:
1266 case TE_EXPLOSION1_BIG:
1271 case TE_BFG_EXPLOSION:
1275 ex->
ent.flags = RF_FULLBRIGHT;
1282 ex->
ent.flags |= RF_TRANSLUCENT;
1283 ex->
ent.alpha = 0.80;
1287 case TE_BFG_BIGEXPLOSION:
1295 case TE_BUBBLETRAIL:
1299 case TE_PARASITE_ATTACK:
1300 case TE_MEDIC_CABLE_ATTACK:
1311 case TE_GRAPPLE_CABLE:
1316 case TE_WELDING_SPARKS:
1321 ex->
type = ex_flash;
1324 ex->
ent.flags = RF_BEAM;
1326 ex->
light = 100 + (rand() % 75);
1338 case TE_TUNNEL_SPARKS:
1352 case TE_PLAIN_EXPLOSION:
1371 case TE_MONSTER_HEATBEAM:
1376 case TE_HEATBEAM_SPARKS:
1381 case TE_HEATBEAM_STEAM:
1390 case TE_BUBBLETRAIL2:
1399 case TE_CHAINFIST_SMOKE:
1400 VectorSet(
te.
dir, 0, 0, 1);
1404 case TE_ELECTRIC_SPARKS:
1410 case TE_TRACKER_EXPLOSION:
1412 CL_ColorFlash(
te.
pos1, 0, 150, -1, -1, -1);
1418 case TE_TELEPORT_EFFECT:
1423 case TE_WIDOWBEAMOUT:
1431 case TE_WIDOWSPLASH:
1436 Com_Error(ERR_DROP,
"%s: bad type", __func__);
Referenced by CL_ParseServerMessage().
◆ CL_ParticleEffect()
void CL_ParticleEffect |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count |
|
) |
| |
Definition at line 877 of file effects.c.
880 VectorSet(oy, 0.0f, 1.0f, 0.0f);
881 if (fabs(DotProduct(oy, dir)) > 0.95f)
882 VectorSet(oy, 1.0f, 0.0f, 0.0f);
885 CrossProduct(oy, dir, ox);
888 const int spark_count = count / 10;
890 const float dirt_horizontal_spread = 2.0f;
891 const float dirt_vertical_spread = 1.0f;
892 const float dirt_base_velocity = 40.0f;
893 const float dirt_rand_velocity = 70.0f;
895 const float spark_horizontal_spread = 1.0f;
896 const float spark_vertical_spread = 1.0f;
897 const float spark_base_velocity = 50.0f;
898 const float spark_rand_velocity = 130.0f;
900 for (
int i = 0; i < count; i++) {
912 VectorMA(
origin, dirt_horizontal_spread * crand(), ox,
origin);
913 VectorMA(
origin, dirt_horizontal_spread * crand(), oy,
origin);
914 VectorMA(
origin, dirt_vertical_spread * frand() + 1.0f, dir,
origin);
918 VectorSubtract(
origin, org, velocity);
920 VectorScale(velocity, dirt_base_velocity + frand() * dirt_rand_velocity, p->
vel);
926 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
929 for (
int i = 0; i < spark_count; i++) {
936 p->
color = 0xe0 + (rand() & 7);
941 VectorMA(
origin, spark_horizontal_spread * crand(), ox,
origin);
942 VectorMA(
origin, spark_horizontal_spread * crand(), oy,
origin);
943 VectorMA(
origin, spark_vertical_spread * frand() + 1.0f, dir,
origin);
947 VectorSubtract(
origin, org, velocity);
949 VectorScale(velocity, spark_base_velocity + powf(frand(), 2.0f) * spark_rand_velocity, p->
vel);
955 p->
alphavel = -2.0 / (0.5 + frand() * 0.3);
Referenced by CL_MuzzleFlash2(), and CL_ParseTEnt().
◆ CL_ParticleEffect2()
void CL_ParticleEffect2 |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count |
|
) |
| |
Definition at line 1060 of file effects.c.
1068 for (i = 0; i < count; i++) {
1079 for (j = 0; j < 3; j++) {
1080 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * dir[j];
1081 p->
vel[j] = crand() * 20;
1088 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_ParticleEffect3()
void CL_ParticleEffect3 |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count |
|
) |
| |
Definition at line 989 of file newfx.c.
995 for (i = 0; i < count; i++) {
1004 for (j = 0; j < 3; j++) {
1005 p->
org[j] = org[j] + ((rand() & 7) - 4) + d * dir[j];
1006 p->
vel[j] = crand() * 20;
1013 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_ParticleEffectWaterSplash()
void CL_ParticleEffectWaterSplash |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count |
|
) |
| |
Definition at line 959 of file effects.c.
962 VectorSet(oy, 0.0f, 1.0f, 0.0f);
963 if (fabs(DotProduct(oy, dir)) > 0.95f)
964 VectorSet(oy, 1.0f, 0.0f, 0.0f);
967 CrossProduct(oy, dir, ox);
971 const float water_horizontal_spread = 0.25f;
972 const float water_vertical_spread = 1.0f;
973 const float water_base_velocity = 80.0f;
974 const float water_rand_velocity = 150.0f;
976 for (
int i = 0; i < count; i++) {
988 VectorMA(
origin, water_horizontal_spread * crand(), ox,
origin);
989 VectorMA(
origin, water_horizontal_spread * crand(), oy,
origin);
990 VectorMA(
origin, water_vertical_spread * frand() + 1.0f, dir,
origin);
994 VectorSubtract(
origin, org, velocity);
996 VectorScale(velocity, water_base_velocity + frand() * water_rand_velocity, p->
vel);
1002 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_ParticleSmokeEffect()
void CL_ParticleSmokeEffect |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count, |
|
|
int |
magnitude |
|
) |
| |
Definition at line 721 of file newfx.c.
728 MakeNormalVectors(dir, r, u);
730 for (i = 0; i < count; i++) {
738 for (j = 0; j < 3; j++) {
739 p->
org[j] = org[j] + magnitude * 0.1 * crand();
741 VectorScale(dir, magnitude, p->
vel);
742 d = crand() * magnitude / 3;
743 VectorMA(p->
vel, d, r, p->
vel);
744 d = crand() * magnitude / 3;
745 VectorMA(p->
vel, d, u, p->
vel);
750 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_ParticleSteamEffect()
void CL_ParticleSteamEffect |
( |
vec3_t |
org, |
|
|
vec3_t |
dir, |
|
|
int |
color, |
|
|
int |
count, |
|
|
int |
magnitude |
|
) |
| |
Definition at line 341 of file newfx.c.
348 MakeNormalVectors(dir, r, u);
350 for (i = 0; i < count; i++) {
358 for (j = 0; j < 3; j++) {
359 p->
org[j] = org[j] + magnitude * 0.1 * crand();
361 VectorScale(dir, magnitude, p->
vel);
362 d = crand() * magnitude / 3;
363 VectorMA(p->
vel, d, r, p->
vel);
364 d = crand() * magnitude / 3;
365 VectorMA(p->
vel, d, u, p->
vel);
371 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
Referenced by CL_ParseSteam(), and CL_ParseTEnt().
◆ CL_ParticleSteamEffect2()
Definition at line 375 of file newfx.c.
383 VectorCopy(self->
dir, dir);
384 MakeNormalVectors(dir, r, u);
386 for (i = 0; i <
self->count; i++) {
392 p->
color =
self->color + (rand() & 7);
394 for (j = 0; j < 3; j++) {
395 p->
org[j] =
self->org[j] +
self->magnitude * 0.1 * crand();
398 d = crand() *
self->magnitude / 3;
399 VectorMA(p->
vel, d, r, p->
vel);
400 d = crand() *
self->magnitude / 3;
401 VectorMA(p->
vel, d, u, p->
vel);
407 p->
alphavel = -1.0 / (0.5 + frand() * 0.3);
410 self->nextthink +=
self->thinkinterval;
Referenced by CL_ParseSteam().
◆ CL_PredictAngles()
◆ CL_PredictMovement()
Definition at line 175 of file predict.c.
177 unsigned ack, current, frame;
203 if (current - ack > CMD_BACKUP - 1) {
208 if (!
cl.
cmd.msec && current == ack) {
217 memset(&
pm, 0,
sizeof(
pm));
222 #if USE_SMOOTH_DELTA_ANGLES
223 VectorCopy(
cl.delta_angles,
pm.s.delta_angles);
227 while (++ack <= current) {
252 if (
pm.s.pm_type != PM_SPECTATOR && (
pm.s.pm_flags & PMF_ON_GROUND)) {
254 step =
pm.s.origin[2] - oldz;
255 if (step > 63 && step < 160) {
Referenced by CL_Frame().
◆ CL_PrepRefresh()
Definition at line 333 of file precache.c.
350 #if CL_RTX_SHADERBALLS
351 cvar_shaderballs =
Cvar_Get(
"cl_shaderballs",
"0", 0);
352 if (cvar_shaderballs->integer &&
vid_rtx->integer)
354 cl_dev_shaderballs =
R_RegisterModel(
"develop/objects/ShaderBallArray/ShaderBallArray16.MD3");
355 if (cl_dev_shaderballs)
356 Com_Printf(
"Loaded the ShaderBalls model\n");
358 Com_WPrintf(
"Failed to load the ShaderBalls model\n");
361 cl_dev_shaderballs = -1;
364 for (i = 2; i < MAX_MODELS; i++) {
369 if (name[0] ==
'#') {
376 for (i = 1; i < MAX_IMAGES; i++) {
385 for (i = 0; i < MAX_CLIENTS; i++) {
Referenced by CL_Begin(), CL_Precache_f(), CL_RestartFilesystem(), and CL_RestartRefresh().
◆ CL_QuadTrail()
void CL_QuadTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end |
|
) |
| |
Definition at line 1388 of file effects.c.
1397 VectorCopy(start, move);
1398 VectorSubtract(end, start, vec);
1402 VectorScale(vec, 5, vec);
1410 VectorClear(p->
accel);
1415 p->
alphavel = -1.0 / (0.8 + frand() * 0.2);
1420 for (j = 0; j < 3; j++) {
1421 p->
org[j] = move[j] + crand() * 16;
1422 p->
vel[j] = crand() * 5;
1426 VectorAdd(move, vec, move);
◆ CL_QueueDownload()
qerror_t CL_QueueDownload |
( |
const char * |
path, |
|
|
dltype_t |
type |
|
) |
| |
◆ CL_Quit_f()
◆ CL_RegisterBspModels()
◆ CL_RegisterInput()
◆ CL_RegisterSounds()
◆ CL_RegisterTEntModels()
◆ CL_RegisterTEntSounds()
◆ CL_RegisterVWepModels()
◆ CL_RequestNextDownload()
Definition at line 735 of file download.c.
737 char fn[MAX_QPATH], *name;
761 for (i = 2; i < MAX_MODELS; i++) {
766 if (name[0] ==
'*' || name[0] ==
'#') {
780 Com_DPrintf(
"%s: waiting for models...\n", __func__);
784 for (i = 2; i < MAX_MODELS; i++) {
789 if (name[0] ==
'*' || name[0] ==
'#') {
797 for (i = 1; i < MAX_SOUNDS; i++) {
802 if (name[0] ==
'*') {
805 if (name[0] ==
'#') {
806 len =
Q_strlcpy(fn, name + 1,
sizeof(fn));
808 len =
Q_concat(fn,
sizeof(fn),
"sound/", name, NULL);
815 for (i = 1; i < MAX_IMAGES; i++) {
820 if (name[0] ==
'/' || name[0] ==
'\\') {
821 len =
Q_strlcpy(fn, name + 1,
sizeof(fn));
823 len =
Q_concat(fn,
sizeof(fn),
"pics/", name,
".pcx", NULL);
832 for (i = 1; i < MAX_SOUNDS; i++) {
838 for (i = 0; i < MAX_CLIENTS; i++) {
848 static const char env_suf[6][3] = {
849 "rt",
"bk",
"lf",
"ft",
"up",
"dn"
852 for (i = 0; i < 6; i++) {
864 Com_DPrintf(
"%s: waiting for map...\n", __func__);
872 for (i = 0; i <
cl.
bsp->numtexinfo; i++) {
873 len =
Q_concat(fn,
sizeof(fn),
"textures/",
cl.
bsp->texinfo[i].name,
".wal", NULL);
884 Com_DPrintf(
"%s: waiting for others...\n", __func__);
893 Com_Error(ERR_DROP,
"%s: bad precache_check\n", __func__);
Referenced by abort_downloads(), CL_Precache_f(), finish_download(), finish_udp_download(), and start_download().
◆ CL_ResetPrecacheCheck()
◆ CL_RestartFilesystem()
void CL_RestartFilesystem |
( |
qboolean |
total | ) |
|
◆ CL_RestartRefresh()
void CL_RestartRefresh |
( |
qboolean |
total | ) |
|
◆ CL_RocketTrail()
void CL_RocketTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
centity_t * |
old |
|
) |
| |
Definition at line 1579 of file effects.c.
1592 VectorCopy(start, move);
1593 VectorSubtract(end, start, vec);
1597 VectorScale(vec, dec, vec);
1602 if ((rand() & 7) == 0) {
1607 VectorClear(p->
accel);
1611 p->
alphavel = -1.0 / (1 + frand() * 0.2);
1613 p->
color = 0xdc + (rand() & 3);
1616 for (j = 0; j < 3; j++) {
1617 p->
org[j] = move[j] + crand() * 5;
1618 p->
vel[j] = crand() * 20;
1622 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_RunParticles()
◆ CL_RunRefresh()
◆ CL_SeekDemoMessage()
Definition at line 1343 of file parse.c.
1349 if (cl_shownet->integer == 1) {
1351 }
else if (cl_shownet->integer > 1) {
1352 Com_LPrintf(PRINT_DEVELOPER,
"------------------\n");
1361 Com_Error(ERR_DROP,
"%s: read past end of server message", __func__);
1369 extrabits = cmd >> SVCMD_BITS;
1373 if (cl_shownet->integer > 1) {
1381 Com_Error(ERR_DROP,
"%s: illegible server message: %d", __func__, cmd);
1387 case svc_disconnect:
1389 Com_Error(ERR_DISCONNECT,
"Server disconnected");
1396 case svc_centerprint:
1401 case svc_configstring:
Referenced by CL_Seek_f().
◆ CL_SendCmd()
◆ CL_SendRcon()
void CL_SendRcon |
( |
const netadr_t * |
adr, |
|
|
const char * |
pass, |
|
|
const char * |
cmd |
|
) |
| |
◆ CL_Server_g()
const char* CL_Server_g |
( |
const char * |
partial, |
|
|
int |
argnum, |
|
|
int |
state |
|
) |
| |
◆ CL_ShutdownRefresh()
◆ CL_SmokeAndFlash()
void CL_SmokeAndFlash |
( |
vec3_t |
origin | ) |
|
◆ CL_SmokeTrail()
void CL_SmokeTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
colorStart, |
|
|
int |
colorRun, |
|
|
int |
spacing |
|
) |
| |
Definition at line 105 of file newfx.c.
113 VectorCopy(start, move);
114 VectorSubtract(end, start, vec);
117 VectorScale(vec, spacing, vec);
126 VectorClear(p->
accel);
131 p->
alphavel = -1.0 / (1 + frand() * 0.5);
132 p->
color = colorStart + (rand() % colorRun);
133 for (j = 0; j < 3; j++) {
134 p->
org[j] = move[j] + crand() * 3;
137 p->
vel[2] = 20 + crand() * 5;
139 VectorAdd(move, vec, move);
◆ CL_StartNextDownload()
◆ CL_Stop_f()
◆ CL_TagTrail()
void CL_TagTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
color |
|
) |
| |
Definition at line 646 of file newfx.c.
655 VectorCopy(start, move);
656 VectorSubtract(end, start, vec);
660 VectorScale(vec, 5, vec);
668 VectorClear(p->
accel);
673 p->
alphavel = -1.0 / (0.8 + frand() * 0.2);
675 for (j = 0; j < 3; j++) {
676 p->
org[j] = move[j] + crand() * 16;
677 p->
vel[j] = crand() * 5;
681 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_TeleporterParticles()
void CL_TeleporterParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1098 of file effects.c.
1105 for (i = 0; i < count; i++) {
1115 for (j = 0; j < 2; j++) {
1116 p->
org[j] = org[j] - 16 + (rand() & 31);
1117 p->
vel[j] = crand() * 14;
1120 p->
org[2] = org[2] - 8 + (rand() & 7);
1121 p->
vel[2] = 80 + (rand() & 7);
Referenced by entity_event().
◆ CL_TeleportParticles()
void CL_TeleportParticles |
( |
vec3_t |
org | ) |
|
Definition at line 1942 of file effects.c.
1949 for (i = -16; i <= 16; i += 4)
1950 for (j = -16; j <= 16; j += 4)
1951 for (k = -16; k <= 32; k += 4) {
1958 p->
color = 7 + (rand() & 7);
1962 p->
alphavel = -1.0 / (0.3 + (rand() & 7) * 0.02);
1964 p->
org[0] = org[0] + i + (rand() & 3);
1965 p->
org[1] = org[1] + j + (rand() & 3);
1966 p->
org[2] = org[2] + k + (rand() & 3);
1973 vel = 50 + (rand() & 63);
1974 VectorScale(dir, vel, p->
vel);
Referenced by CL_ParseTEnt(), and entity_event().
◆ CL_Tracker_Explode()
void CL_Tracker_Explode |
( |
vec3_t |
origin | ) |
|
Definition at line 611 of file newfx.c.
617 for (i = 0; i < 300; i++) {
621 VectorClear(p->
accel);
633 VectorScale(dir, -1, backdir);
636 VectorScale(backdir, 64, p->
vel);
◆ CL_Tracker_Shell()
void CL_Tracker_Shell |
( |
vec3_t |
origin | ) |
|
◆ CL_TrackerTrail()
void CL_TrackerTrail |
( |
vec3_t |
start, |
|
|
vec3_t |
end, |
|
|
int |
particleColor |
|
) |
| |
Definition at line 418 of file newfx.c.
429 VectorCopy(start, move);
430 VectorSubtract(end, start, vec);
434 vectoangles2(
forward, angle_dir);
438 VectorScale(vec, 3, vec);
447 VectorClear(p->
accel);
453 p->
color = particleColor;
454 dist = DotProduct(move,
forward);
455 VectorMA(move, 8 * cos(dist),
up, p->
org);
456 for (j = 0; j < 3; j++) {
462 VectorAdd(move, vec, move);
Referenced by CL_AddPacketEntities().
◆ CL_TrapParticles()
void CL_TrapParticles |
( |
entity_t * |
ent | ) |
|
Definition at line 897 of file newfx.c.
907 ent->origin[2] -= 14;
908 VectorCopy(ent->origin, start);
909 VectorCopy(ent->origin, end);
912 VectorCopy(start, move);
913 VectorSubtract(end, start, vec);
917 VectorScale(vec, 5, vec);
926 VectorClear(p->
accel);
931 p->
alphavel = -1.0 / (0.3 + frand() * 0.2);
933 for (j = 0; j < 3; j++) {
934 p->
org[j] = move[j] + crand();
935 p->
vel[j] = crand() * 15;
940 VectorAdd(move, vec, move);
950 ent->origin[2] += 14;
951 VectorCopy(ent->origin, org);
953 for (i = -2; i <= 2; i += 4)
954 for (j = -2; j <= 2; j += 4)
955 for (k = -2; k <= 4; k += 4) {
961 p->
color = 0xe0 + (rand() & 3);
964 p->
alphavel = -1.0 / (0.3 + (rand() & 7) * 0.02);
966 p->
org[0] = org[0] + i + ((rand() & 23) * crand());
967 p->
org[1] = org[1] + j + ((rand() & 23) * crand());
968 p->
org[2] = org[2] + k + ((rand() & 23) * crand());
975 vel = 50 + (rand() & 63);
976 VectorScale(dir, vel, p->
vel);
Referenced by CL_AddPacketEntities().
◆ CL_UpdateBlendSetting()
◆ CL_UpdateCmd()
◆ CL_UpdateConfigstring()
void CL_UpdateConfigstring |
( |
int |
index | ) |
|
Definition at line 417 of file precache.c.
421 if (index == CS_MAXCLIENTS) {
426 if (index == CS_AIRACCEL) {
428 cl.
pmp.airaccelerate = qtrue;
430 cl.
pmp.airaccelerate = atoi(s) ? qtrue : qfalse;
434 if (index == CS_MODELS + 1) {
435 size_t len = strlen(s);
438 Com_Error(ERR_DROP,
"%s: bad world model: %s", __func__, s);
446 if (index >= CS_LIGHTS && index < CS_LIGHTS + MAX_LIGHTSTYLES) {
447 CL_SetLightStyle(index - CS_LIGHTS, s);
456 if (index >= CS_MODELS + 2 && index < CS_MODELS + MAX_MODELS) {
457 int i = index - CS_MODELS;
467 if (index >= CS_SOUNDS && index < CS_SOUNDS + MAX_SOUNDS) {
472 if (index >= CS_IMAGES && index < CS_IMAGES + MAX_IMAGES) {
477 if (index >= CS_PLAYERSKINS && index < CS_PLAYERSKINS + MAX_CLIENTS) {
Referenced by CL_ParseConfigstring(), and CL_Seek_f().
◆ CL_UpdateFrameTimes()
Definition at line 3136 of file main.c.
3151 }
else if (
cls.
active == ACT_MINIMIZED) {
3166 }
else if (
cl_async->integer > 0) {
3192 Com_DDDPrintf(
"%s: mode=%s main_msec=%d ref_msec=%d, phys_msec=%d\n",
Referenced by CL_Activate(), CL_Changing_f(), CL_ClearState(), CL_Disconnect(), CL_InitLocal(), CL_RestartFilesystem(), CL_RestartRefresh(), cl_sync_changed(), SCR_ModeChanged(), and set_active_state().
◆ CL_UpdateRecordingSetting()
◆ CL_Widowbeamout()
Definition at line 520 of file newfx.c.
522 static const byte colortable[4] = {2 * 8, 13 * 8, 21 * 8, 18 * 8};
528 ratio = 1.0 - (((float)self->
endtime - (
float)
cl.
time) / 2100.0);
530 for (i = 0; i < 300; i++) {
534 VectorClear(p->
accel);
540 p->
color = colortable[rand() & 3];
547 VectorMA(self->
org, (45.0 * ratio), dir, p->
org);
Referenced by CL_ParseWidow().
◆ CL_WidowSplash()
Definition at line 582 of file newfx.c.
584 static const byte colortable[4] = {2 * 8, 13 * 8, 21 * 8, 18 * 8};
589 for (i = 0; i < 256; i++) {
595 p->
color = colortable[rand() & 3];
607 p->
alphavel = -0.8 / (0.5 + frand() * 0.3);
Referenced by CL_ParseTEnt().
◆ CL_WriteConfig()
◆ CL_WriteDemoMessage()
qboolean CL_WriteDemoMessage |
( |
sizebuf_t * |
buf | ) |
|
◆ COM_BlockSequenceCRCByte()
byte COM_BlockSequenceCRCByte |
( |
byte * |
base, |
|
|
size_t |
length, |
|
|
int |
sequence |
|
) |
| |
Definition at line 148 of file crc.c.
157 Com_Error(ERR_DROP,
"%s: sequence < 0", __func__);
163 memcpy(chkb, base, length);
166 chkb[length + 1] = p[1];
167 chkb[length + 2] = p[2];
168 chkb[length + 3] = p[3];
174 for (x = 0, n = 0; n < length; n++)
177 crc = (crc ^ x) & 0xff;
Referenced by CL_SendDefaultCmd().
◆ Con_CheckResize()
◆ Con_ClearNotify_f()
◆ Con_ClearTyping()
◆ Con_Close()
void Con_Close |
( |
qboolean |
force | ) |
|
◆ Con_DrawConsole()
◆ Con_Init()
◆ Con_Popup()
void Con_Popup |
( |
qboolean |
force | ) |
|
◆ Con_PostInit()
◆ Con_Print()
void Con_Print |
( |
const char * |
txt | ) |
|
◆ Con_RegisterMedia()
◆ Con_RunConsole()
◆ Con_Shutdown()
◆ Con_SkipNotify()
void Con_SkipNotify |
( |
qboolean |
skip | ) |
|
◆ Con_ToggleConsole_f()
◆ FX_Init()
◆ IN_Activate()
◆ IN_Frame()
◆ IN_Init()
◆ IN_Shutdown()
◆ Key_Console()
Definition at line 1137 of file console.c.
1149 if (key == K_ENTER || key == K_KP_ENTER) {
1155 (key == K_INS &&
Key_IsDown(K_SHIFT)) || key == K_MOUSE3) {
1175 if (key == K_UPARROW || (key ==
'p' &&
Key_IsDown(K_CTRL))) {
1180 if (key == K_DOWNARROW || (key ==
'n' &&
Key_IsDown(K_CTRL))) {
1185 if (key == K_PGUP || key == K_MWHEELUP) {
1195 if (key == K_PGDN || key == K_MWHEELDOWN) {
1218 if (IF_KeyEvent(&
con.
prompt.inputLine, key)) {
Referenced by Key_Event().
◆ Key_Message()
Definition at line 1241 of file console.c.
1248 if (key == K_ENTER || key == K_KP_ENTER) {
1258 if (key == K_ESCAPE) {
1274 if (key == K_UPARROW || (key ==
'p' &&
Key_IsDown(K_CTRL))) {
1279 if (key == K_DOWNARROW || (key ==
'n' &&
Key_IsDown(K_CTRL))) {
Referenced by Key_Event().
◆ LOC_AddLocationsToScene()
Definition at line 177 of file locs.c.
188 memset(&ent, 0,
sizeof(ent));
190 ent.skin = R_RegisterSkin(
"models/items/c_head/skin.pcx");
197 LIST_FOR_EACH(
location_t, loc, &cl_locations, entry) {
199 dist = VectorLength(dir);
205 VectorCopy(loc->
origin, ent.origin);
207 if (loc == nearest) {
208 ent.origin[2] += 10.0f * sin(
cl.
time * 0.01f);
Referenced by CL_AddEntities().
◆ LOC_FreeLocations()
◆ LOC_Init()
◆ LOC_LoadLocations()
Definition at line 59 of file locs.c.
61 char path[MAX_OSPATH];
71 ret = FS_LoadFile(path, (
void **)&buffer);
73 if (ret != Q_ERR_NOENT) {
74 Com_EPrintf(
"Couldn't load %s: %s\n", path,
Q_ErrorString(ret));
93 Com_WPrintf(
"Line %d is incomplete in %s\n", line, path);
99 List_Append(&cl_locations, &loc->
entry);
111 Com_DPrintf(
"Loaded %d location%s from %s\n",
112 count, count == 1 ?
"" :
"s", path);
Referenced by CL_Begin().
◆ LOC_UpdateCvars()
◆ SCR_AddToChatHUD()
void SCR_AddToChatHUD |
( |
const char * |
text | ) |
|
◆ SCR_BeginLoadingPlaque()
◆ SCR_CenterPrint()
void SCR_CenterPrint |
( |
const char * |
str | ) |
|
◆ SCR_ClearChatHUD_f()
◆ SCR_DebugGraph()
void SCR_DebugGraph |
( |
float |
value, |
|
|
int |
color |
|
) |
| |
◆ SCR_DrawStringEx()
int SCR_DrawStringEx |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
flags, |
|
|
size_t |
maxlen, |
|
|
const char * |
s, |
|
|
qhandle_t |
font |
|
) |
| |
◆ SCR_DrawStringMulti()
void SCR_DrawStringMulti |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
flags, |
|
|
size_t |
maxlen, |
|
|
const char * |
s, |
|
|
qhandle_t |
font |
|
) |
| |
◆ SCR_EndLoadingPlaque()
◆ SCR_FadeAlpha()
float SCR_FadeAlpha |
( |
unsigned |
startTime, |
|
|
unsigned |
visTime, |
|
|
unsigned |
fadeTime |
|
) |
| |
◆ SCR_FinishCinematic()
◆ SCR_GetFont()
qhandle_t SCR_GetFont |
( |
void |
| ) |
|
◆ SCR_Init()
Definition at line 1348 of file screen.c.
1354 scr_netgraph =
Cvar_Get(
"netgraph",
"0", 0);
1355 scr_timegraph =
Cvar_Get(
"timegraph",
"0", 0);
1356 scr_debuggraph =
Cvar_Get(
"debuggraph",
"0", 0);
1357 scr_graphheight =
Cvar_Get(
"graphheight",
"32", 0);
1358 scr_graphscale =
Cvar_Get(
"graphscale",
"1", 0);
1359 scr_graphshift =
Cvar_Get(
"graphshift",
"0", 0);
1402 scr_showstats =
Cvar_Get(
"scr_showstats",
"0", 0);
1403 scr_showpmove =
Cvar_Get(
"scr_showpmove",
"0", 0);
1410 scr.initialized = qtrue;
Referenced by CL_InitRefresh().
◆ SCR_LagClear()
◆ SCR_LagSample()
◆ SCR_ModeChanged()
◆ SCR_PlayCinematic()
void SCR_PlayCinematic |
( |
const char * |
name | ) |
|
Definition at line 477 of file cin.c.
490 if (!COM_CompareExtension(name,
".pcx"))
498 else if (!COM_CompareExtension(name,
".cin"))
511 Com_WPrintf(
"Cinematic \"%s\" not found. Skipping.\n", name);
Referenced by CL_ParseServerData().
◆ SCR_RegisterMedia()
◆ SCR_RunCinematic()
void SCR_RunCinematic |
( |
| ) |
|
◆ SCR_SetCrosshairColor()
Definition at line 1242 of file screen.c.
1250 health =
cl.
frame.
ps.stats[STAT_HEALTH];
1252 VectorSet(
scr.crosshair_color.u8, 0, 0, 0);
1257 scr.crosshair_color.u8[0] = 255;
1261 scr.crosshair_color.u8[1] = 255;
1262 }
else if (health < 33) {
1263 scr.crosshair_color.u8[1] = 0;
1265 scr.crosshair_color.u8[1] = (255 * (health - 33)) / 33;
1270 scr.crosshair_color.u8[2] = 255;
1271 }
else if (health < 66) {
1272 scr.crosshair_color.u8[2] = 0;
1274 scr.crosshair_color.u8[2] = (255 * (health - 66)) / 33;
Referenced by CL_DeltaFrame(), and scr_crosshair_changed().
◆ SCR_SetHudAlpha()
void SCR_SetHudAlpha |
( |
float |
alpha | ) |
|
◆ SCR_Shutdown()
◆ SCR_SizeDown()
◆ SCR_SizeUp()
◆ SCR_TouchPics()
◆ SCR_UpdateScreen()
Definition at line 2142 of file screen.c.
2144 static int recursive;
2146 if (!
scr.initialized) {
2154 if (delta < 120 * 1000) {
2159 Com_Printf(
"Loading plaque timed out.\n");
2162 if (recursive > 1) {
2163 Com_Error(ERR_FATAL,
"%s: recursively called", __func__);
2184 if (scr_timegraph->integer)
2187 if (scr_debuggraph->integer || scr_timegraph->integer || scr_netgraph->integer)
2188 SCR_DrawDebugGraph();
Referenced by BuildList(), CL_Changing_f(), CL_ConnectionlessPacket(), CL_Frame(), CL_LoadState(), CL_PlayDemo_f(), CL_PrepRefresh(), CL_Reconnect_f(), CL_Skins_f(), Con_Action(), PingServers(), and SCR_BeginLoadingPlaque().
◆ V_AddEntity()
void V_AddEntity |
( |
entity_t * |
ent | ) |
|
◆ V_AddParticle()
void V_AddParticle |
( |
particle_t * |
p | ) |
|
◆ V_Init()
Definition at line 533 of file view.c.
538 cl_testblend =
Cvar_Get(
"cl_testblend",
"0", 0);
539 cl_testparticles =
Cvar_Get(
"cl_testparticles",
"0", 0);
540 cl_testentities =
Cvar_Get(
"cl_testentities",
"0", 0);
542 cl_testlights =
Cvar_Get(
"cl_testlights",
"0", CVAR_CHEAT);
545 cl_stats =
Cvar_Get(
"cl_stats",
"0", 0);
549 cl_add_lights =
Cvar_Get(
"cl_lights",
"1", 0);
550 cl_show_lights =
Cvar_Get(
"cl_show_lights",
"0", 0);
Referenced by CL_InitRefresh().
◆ V_RenderView()
Definition at line 402 of file view.c.
415 if (cl_testparticles->integer)
417 if (cl_testentities->integer)
420 if (cl_testlights->integer)
423 if (cl_testblend->integer) {
465 if (!cl_add_lights->integer)
476 cl.
refdef.num_dlights = r_numdlights;
480 cl.
refdef.lightstyles = r_lightstyles;
491 if (cl_stats->integer)
Referenced by SCR_DrawActive().
◆ V_Shutdown()
◆ cl
Definition at line 99 of file main.c.
Referenced by AC_CheckTimeouts(), AC_ClientAnnounce(), AC_ClientBegin(), AC_ClientConnect(), AC_ClientDisconnect(), AC_ClientQuery(), AC_ClientToken(), AC_Drop(), AC_Info_f(), AC_Invalidate_f(), AC_List_f(), AC_ParseClient(), AC_ParseClientAck(), AC_ParseDisconnect(), AC_ParseFileViolation(), AC_ParseQueryReply(), AC_ParseViolation(), AC_Update_f(), active_sun_preset(), AL_AddLoopSounds(), AL_Update(), build_gamestate(), check_player(), CheckDMRules(), CL_AddBeams(), CL_AddExplosions(), CL_AddLasers(), CL_AddPacketEntities(), CL_AddParticles(), CL_AddPlayerBeams(), CL_AddViewWeapon(), CL_AdjustAngles(), CL_AllocExplosion(), CL_AllocLaser(), CL_Ammo_m(), CL_Armor_m(), CL_Begin(), CL_BFGExplosionParticles(), CL_BfgParticles(), CL_BigTeleportParticles(), CL_BlasterParticles(), CL_BlasterParticles2(), CL_BlasterTrail(), CL_BlasterTrail2(), CL_BloodParticleEffect(), CL_BubbleTrail(), CL_BubbleTrail2(), CL_CalcViewValues(), CL_Changing_f(), CL_CheatsOK(), CL_CheckPredictionError(), CL_CheckTimeout(), CL_ClampPitch(), CL_ClampSpeed(), CL_ClearState(), CL_ClipMoveToEntities(), CL_Cluster_m(), CL_ClusterThere_m(), CL_ColorExplosionParticles(), CL_ConnectionlessPacket(), CL_DebugTrail(), CL_DeltaFrame(), CL_DemoFrame(), CL_DiminishingTrail(), CL_DumpClients_f(), CL_DumpLayout_f(), CL_DumpStatusbar_f(), CL_EmitDemoFrame(), CL_EmitDemoSnapshot(), CL_ExplosionParticles(), CL_FinalizeCmd(), CL_FinishViewValues(), CL_FirstDemoFrame(), CL_FlagTrail(), CL_FlyEffect(), CL_FlyParticles(), CL_ForceWall(), CL_Frame(), CL_GenericParticleEffect(), CL_GetEntitySoundOrigin(), CL_GetResolutionScale(), CL_GTV_EmitFrame(), CL_GTV_WriteMessage(), CL_HdrColor_m(), CL_Health_m(), CL_Heatbeam(), CL_IonripperTrail(), CL_ItemRespawnParticles(), CL_KeyState(), CL_LoadClientinfo(), CL_LogoutEffect(), CL_Mapname_m(), CL_Material_m(), CL_Material_Override_m(), CL_MeasureStats(), CL_MonsterPlasma_Shell(), CL_MouseMove(), CL_MuzzleFlash(), CL_MuzzleFlash2(), CL_Name_g(), cl_noskins_changed(), CL_Nukeblast(), CL_NumLightPolys_m(), CL_OldRailTrail(), CL_ParseBaseline(), CL_ParseBeam(), CL_ParseCenterPrint(), CL_ParseConfigstring(), CL_ParseDeltaEntity(), CL_ParseFrame(), CL_ParseInventory(), CL_ParseLayout(), CL_ParseNuke(), CL_ParsePacketEntities(), CL_ParsePlayerBeam(), CL_ParsePrint(), CL_ParseServerData(), CL_ParseStartSoundPacket(), CL_ParseSteam(), CL_ParseTEnt(), CL_ParseWidow(), CL_ParticleEffect(), CL_ParticleEffect2(), CL_ParticleEffect3(), CL_ParticleEffectWaterSplash(), CL_ParticleSmokeEffect(), CL_ParticleSteamEffect(), CL_ParticleSteamEffect2(), CL_PlainExplosion(), CL_PointContents(), CL_PredictAngles(), CL_PredictMovement(), CL_PrepRefresh(), CL_ProcessEvents(), CL_ProcessSustain(), CL_QuadTrail(), CL_RailLights(), CL_RailSpiral(), CL_Record_f(), CL_RegisterBspModels(), CL_RegisterSounds(), CL_RegisterVWepModels(), CL_RequestNextDownload(), CL_ResolutionScale_m(), CL_RestartFilesystem(), CL_RestartRefresh(), CL_RocketTrail(), CL_Seek_f(), CL_SendBatchedCmd(), CL_SendCmd(), CL_SendDefaultCmd(), CL_SendKeepAlive(), CL_SetClientTime(), CL_SetSky(), CL_SetupFirstPersonView(), CL_SetupThirdPersionView(), CL_Skins_f(), CL_SmokeAndFlash(), CL_SmokeTrail(), CL_Suspend_f(), CL_TagTrail(), CL_TeleporterParticles(), CL_TeleportParticles(), CL_Timer_m(), CL_Trace(), CL_Tracker_Explode(), CL_Tracker_Shell(), CL_TrackerTrail(), CL_TrapParticles(), CL_UpdateCmd(), CL_UpdateConfigstring(), CL_Ups_m(), CL_ViewDir_m(), CL_ViewPos_m(), CL_WeaponModel_m(), CL_Widowbeamout(), CL_WidowSplash(), Cmd_Inven_f(), Cmd_Say_f(), Cmd_WeapLast_f(), Cmd_WeapNext_f(), Cmd_WeapPrev_f(), Con_DrawSolidConsole(), DeathmatchScoreboardMessage(), DMA_DriftBeginofs(), dump_lag(), dump_protocols(), dump_settings(), emit_gamestate(), emit_packet_entities(), entity_event(), entity_new(), entity_optimized(), entity_update(), entity_update_new(), entity_update_old(), find_client_slot(), G_CheckChaseStats(), G_SetSpectatorStats(), IN_AttackDown(), IN_CenterView(), IN_GetCurrentGrab(), IN_UseDown(), Key_Event(), LOC_Add_f(), LOC_AddLocationsToScene(), LOC_Delete_f(), LOC_FindClosest(), LOC_Here_m(), LOC_LoadLocations(), LOC_There_m(), LOC_Update_f(), LOC_Write_f(), MVD_BroadcastPrintf(), MVD_GameClientDisconnect(), MVD_GameClientDrop(), MVD_GameClientNameChanged(), MVD_LayoutClients(), MVD_ParseMulticast(), MVD_ParseSound(), MVD_RemoveClient(), MVD_Say_f(), MVD_SetServerState(), MVD_SwitchChannel(), MVD_UnicastPrint(), MVD_UnicastSend(), permit_connection(), ping_avg(), ping_min(), prepare_entities(), print_channel(), Qcommon_Frame(), ready_to_send(), ready_to_send_hacked(), resume_record(), S_BuildSoundList(), S_ParseStartSound(), S_RegisterSexedSound(), S_RegisterSexedSounds(), S_Update(), SCR_DrawActive(), SCR_DrawInventory(), SCR_DrawLayout(), SCR_DrawSelectedItemName(), SCR_DrawStats(), SCR_DrawTurtle(), SCR_ExecuteLayoutString(), SCR_FinishCinematic(), SCR_LagSample(), SCR_PlayCinematic(), SCR_RunCinematic(), SCR_ScoreDump_f(), SCR_ScoreShot_f(), SCR_SetCrosshairColor(), SCR_StopCinematic(), SCR_TimeRefresh_f(), SelectNextItem(), SelectPrevItem(), set_active_state(), shell_effect_hack(), SV_CalcPings(), SV_CountClients(), SV_GiveMsec(), SV_Lag_f(), SV_Player_g(), SV_SetPlayer(), SV_StatusString(), SV_UserinfoChanged(), TH_DrawLayoutString(), V_RenderView(), V_SetLightLevel(), V_Viewpos_f(), ValidateSelectedItem(), and vkpt_freecam_mousemove().
◆ cl_async
◆ cl_beginmapcmd
◆ cl_changemapcmd
◆ cl_chat_filter
◆ cl_chat_notify
◆ cl_chat_sound
◆ cl_cmdbuf
◆ cl_cmdbuf_text
char cl_cmdbuf_text[MAX_STRING_CHARS] |
◆ cl_disable_explosions
cvar_t* cl_disable_explosions |
◆ cl_disable_particles
cvar_t* cl_disable_particles |
◆ cl_disconnectcmd
◆ cl_entities
Definition at line 101 of file main.c.
Referenced by build_gamestate(), CL_AddPacketEntities(), CL_ClearState(), CL_DeltaFrame(), CL_FinishViewValues(), CL_GetEntitySoundOrigin(), CL_GTV_EmitFrame(), CL_MuzzleFlash(), CL_MuzzleFlash2(), entity_event(), entity_update(), player_update(), and shell_effect_hack().
◆ cl_explosion_frametime
cvar_t* cl_explosion_frametime |
◆ cl_explosion_sprites
cvar_t* cl_explosion_sprites |
◆ cl_explosions
◆ cl_footsteps
◆ cl_gibs
◆ cl_gun
◆ cl_gunalpha
◆ cl_kickangles
◆ cl_noglow
◆ cl_nolerp
◆ cl_noskins
◆ cl_player_model
◆ cl_predict
◆ cl_rollhack
◆ cl_thirdperson_angle
cvar_t* cl_thirdperson_angle |
◆ cl_thirdperson_range
cvar_t* cl_thirdperson_range |
◆ cl_vwep
◆ cls
Definition at line 98 of file main.c.
Referenced by abort_downloads(), AL_AddLoopSounds(), build_gamestate(), CL_Activate(), CL_AddRequest(), CL_Begin(), CL_CalcViewValues(), CL_Changing_f(), CL_CheatsOK(), CL_CheckForIP(), CL_CheckForPause(), CL_CheckForResend(), CL_CheckPredictionError(), CL_CheckTimeout(), CL_CleanupDemos(), CL_CleanupDownloads(), CL_ClearState(), CL_ClientCommand(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_DeltaFrame(), CL_DemoFrame(), CL_DemoPos_m(), CL_Disconnect(), CL_Disconnect_f(), CL_Download_f(), CL_DumpClients_f(), CL_EmitDemoFrame(), CL_EmitDemoSnapshot(), CL_FinalizeCmd(), CL_FindRequest(), CL_FinishDownload(), CL_FirstDemoFrame(), CL_FollowIP_f(), CL_ForwardToServer(), CL_ForwardToServer_f(), CL_Frame(), CL_GTV_EmitFrame(), CL_GTV_Resume(), CL_GTV_Run(), CL_GTV_Shutdown(), CL_GTV_Start_f(), CL_GTV_Status_f(), CL_GTV_Stop_f(), CL_GTV_Suspend(), CL_GTV_Transmit(), CL_GTV_WriteMessage(), CL_HandleDownload(), CL_IgnoreDownload(), CL_Init(), CL_InitDemos(), CL_InitDownloads(), CL_InitLocal(), CL_InitRefresh(), CL_Lag_m(), CL_LoadDownloadIgnores(), CL_MeasureStats(), CL_MouseMove(), CL_Name_g(), cl_noskins_changed(), CL_PacketEvent(), CL_ParseCenterPrint(), CL_ParseConfigstring(), CL_ParseDownload(), CL_ParseFrame(), CL_ParsePrint(), CL_ParsePrintMessage(), CL_ParseReconnect(), CL_ParseServerData(), CL_ParseServerMessage(), CL_ParseZPacket(), CL_PassiveConnect_f(), CL_Ping_m(), CL_PlayDemo_f(), CL_Precache_f(), CL_PredictMovement(), CL_PrepRefresh(), CL_QueueDownload(), CL_Rcon_f(), CL_RecentIP_g(), CL_Reconnect_f(), CL_Record_f(), CL_RegisterBspModels(), CL_RequestNextDownload(), CL_RestartFilesystem(), CL_RestartRefresh(), CL_RunRefresh(), CL_Seek_f(), CL_SendBatchedCmd(), CL_SendCmd(), CL_SendDefaultCmd(), CL_SendKeepAlive(), CL_SendUserinfo(), CL_Server_m(), CL_ServerStatus_f(), CL_Shutdown(), CL_ShutdownRefresh(), CL_Skins_f(), CL_StartNextDownload(), CL_Stop_f(), CL_Suspend_f(), CL_UpdateBlendSetting(), CL_UpdateConfigstring(), CL_UpdateFootstepsSetting(), CL_UpdateFrameTimes(), CL_UpdateGibSetting(), CL_UpdateGunSetting(), CL_UpdatePredictSetting(), CL_UpdateRecordingSetting(), CL_UpdateUserinfo(), CL_Ups_m(), cl_vwep_changed(), CL_WriteDemoMessage(), Con_Action(), Con_CarriageRet(), Con_Close(), Con_DrawNotify(), Con_DrawSolidConsole(), con_param_changed(), Con_Popup(), Con_RemoteMode_f(), Con_RunConsole(), con_scale_changed(), downloads_pending(), drop_client(), dump_program(), emit_gamestate(), entity_optimized(), exec_server_string(), find_snapshot(), finish_download(), finish_udp_download(), format_demo_size(), format_demo_status(), HTTP_QueueDownload(), HTTP_SetServer(), IN_AttackDown(), IN_GetCurrentGrab(), IN_UseDown(), inflate_udp_download(), Key_Event(), Key_GetDest(), Key_Message(), Key_SetDest(), lerp_client_fov(), LOC_Add_f(), LOC_Delete_f(), LOC_Here_m(), LOC_There_m(), LOC_Update_f(), LOC_Write_f(), parse_hello(), parse_message(), parse_next_message(), parse_ping(), parse_stream_start(), parse_stream_stop(), progress_func(), R_RenderFrame_RTX(), ready_to_send(), resume_record(), S_Activate(), S_Update(), SCR_AddToChatHUD(), SCR_BeginLoadingPlaque(), SCR_CenterPrint(), SCR_Draw2D(), SCR_DrawActive(), SCR_DrawDemo(), SCR_DrawInventory(), SCR_DrawLayout(), SCR_DrawNet(), SCR_EndLoadingPlaque(), SCR_FadeAlpha(), SCR_LagSample(), SCR_ModeChanged(), SCR_PlayCinematic(), SCR_RunCinematic(), SCR_ScoreDump_f(), SCR_ScoreShot_f(), SCR_Sky_f(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), set_active_state(), start_message_mode(), start_next_download(), start_udp_download(), toggle_console(), UI_PopMenu(), update_status(), write_stream(), and write_udp_download().
◆ gun_frame
◆ gun_model
◆ info_fov
◆ info_gender
◆ info_hand
◆ info_msg
◆ info_name
◆ info_password
◆ info_rate
◆ info_skin
◆ info_spectator
◆ info_uf
◆ mz
◆ scr_vrect
◆ snd
◆ te
Definition at line 655 of file parse.c.
Referenced by CL_OldRailTrail(), CL_ParseBeam(), CL_ParseLaser(), CL_ParseNuke(), CL_ParsePlayerBeam(), CL_ParseSteam(), CL_ParseTEnt(), CL_ParseTEntPacket(), CL_ParseWidow(), CL_PlainExplosion(), CL_RailCore(), CL_RailLights(), CL_RailSpiral(), CL_WidowSplash(), and dirtoangles().
static cvar_t * scr_lag_x
static void CL_AddPacketEntities(void)
static void scr_scale_changed(cvar_t *self)
void FS_Restart(qboolean total)
void VID_FillInputAPI(inputAPI_t *api)
qhandle_t R_RegisterImage(const char *name, imagetype_t type, imageflags_t flags, qerror_t *err_p)
static uint16_t CRC_Block(byte *start, size_t count)
static cvar_t * cl_railcore_color
void LOC_FreeLocations(void)
void Prompt_CompleteCommand(commandPrompt_t *prompt, qboolean backslash)
static cvar_t * cl_add_particles
void(* R_EndRegistration)(void)
static cvar_t * con_history
char configstrings[MAX_CONFIGSTRINGS][MAX_QPATH]
static void CL_ParseServerData(void)
cvar_t * Cvar_Set(const char *var_name, const char *value)
static void CL_ParsePlayerBeam(qhandle_t model)
void Prompt_CompleteHistory(commandPrompt_t *prompt, qboolean forward)
static void LOC_Update_f(void)
void CL_ParticleEffect(vec3_t org, vec3_t dir, int color, int count)
static void CL_UpdateFootstepsSetting(void)
void CL_MuzzleFlash2(void)
void CL_UpdateRecordingSetting(void)
static void LOC_Write_f(void)
entity_state_t entityStates[MAX_PARSE_ENTITIES]
void CL_GTV_Suspend(void)
static int parse_next_message(int wait)
static void CL_ParseReconnect(void)
static const byte chktbl[1024]
qhandle_t image_precache[MAX_IMAGES]
static void CL_ClearExplosions(void)
cvar_t * cl_disable_explosions
qhandle_t cl_mod_explo4_big
cvar_t * allow_download_players
cvar_t * gl_modulate_world
static void CL_AddLasers(void)
size_t Cvar_BitInfo(char *info, int bit)
static void CL_ParseZPacket(void)
void SCR_StopCinematic(void)
void Prompt_HistoryDown(commandPrompt_t *prompt)
static void CL_ParseBeam(qhandle_t model)
static cvar_t * scr_lag_max
static void CL_ParsePrint(void)
size_t Q_snprintf(char *dest, size_t size, const char *fmt,...)
enum explosion_t::@0 type
struct client_static_s::@3 demo
static cvar_t * con_background
static void Con_DrawSolidConsole(void)
void CL_PredictAngles(void)
mmodel_t * model_clip[MAX_MODELS]
ssize_t FS_Read(void *buf, size_t len, qhandle_t f)
static cvar_t * scr_lag_min
static void CL_ParseBaseline(int index, int bits)
qhandle_t S_RegisterSound(const char *name)
#define FOR_EACH_DLQ_SAFE(q, n)
static void parse_info_string(demoInfo_t *info, int clientNum, int index, const char *string)
static cparticle_t * active_particles
model_t * MOD_ForHandle(qhandle_t h)
static int CL_PointContents(vec3_t point)
void Cmd_AddCommand(const char *name, xcommand_t function)
static void entity_update(const entity_state_t *state)
qboolean COM_IsPath(const char *s)
void CL_ParsePlayerSkin(char *name, char *model, char *skin, const char *s)
#define CL_DOWNLOAD_IGNORES
static precache_t precache_check
void Key_SetDest(keydest_t dest)
void S_StopAllSounds(void)
static cvar_t * cl_railtrail_type
static void check_player(const char *name)
void CL_CheckPredictionError(void)
entity_t r_entities[MAX_ENTITIES]
void HTTP_CleanupDownloads(void)
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags)
static explosion_t * CL_AllocExplosion(void)
const char * Q_ErrorString(qerror_t error)
static cvar_t * scr_scale
void Z_LeakTest(memtag_t tag)
void CL_GTV_WriteMessage(byte *data, size_t len)
void SCR_SetCrosshairColor(void)
static void LOC_Delete_f(void)
static void CL_FinishViewValues(void)
void Con_RunConsole(void)
void Netchan_OutOfBand(netsrc_t sock, const netadr_t *address, const char *format,...)
int SCR_DrawStringEx(int x, int y, int flags, size_t maxlen, const char *s, qhandle_t font)
void Prompt_ClearState(commandPrompt_t *prompt)
void SCR_UpdateScreen(void)
static void V_SetLightLevel(void)
char * VID_GetDefaultModeList(void)
qhandle_t cl_sfx_lightning
void CL_DiminishingTrail(vec3_t start, vec3_t end, centity_t *old, int flags)
void Com_PlayerToEntityState(const player_state_t *ps, entity_state_t *es)
qboolean(* R_Init)(qboolean total)
static cvar_t * cl_add_entities
static void scr_crosshair_changed(cvar_t *self)
vec3_t predicted_velocity
char cl_cmdbuf_text[MAX_STRING_CHARS]
static void CL_RailTrail(void)
static void CL_AddPlayerBeams(void)
ssize_t FS_FPrintf(qhandle_t f, const char *format,...)
static cvar_t * scr_crosshair
void CL_SmokeAndFlash(vec3_t origin)
void CL_InitRefresh(void)
static cvar_t * con_height
void CL_RegisterTEntModels(void)
static cvar_t * scr_alpha
cvar_t * cl_disable_particles
void Con_Printf(const char *fmt,...)
void R_Shutdown(qboolean total)
float R_ClampScale(cvar_t *var)
static int entitycmpfnc(const void *_a, const void *_b)
char text[CON_TOTALLINES][CON_LINEWIDTH]
static cvar_t * loc_trace
static void CL_ParseWidow(void)
void(* R_BeginFrame)(void)
char * Prompt_Action(commandPrompt_t *prompt)
void CL_CalcViewValues(void)
#define NOPART_GRENADE_EXPLOSION
static void con_scale_changed(cvar_t *self)
ssize_t FS_Tell(qhandle_t f)
void CL_UpdateBlendSetting(void)
#define CON_TOTALLINES_MASK
static cvar_t * con_scale
void R_RegisterFunctionsRTX()
void LOC_AddLocationsToScene(void)
void CL_MuzzleFlash(void)
static void CL_LogoutEffect(vec3_t org, int type)
void CL_RegisterTEntSounds(void)
void(* R_AddDecal)(decal_t *d)
static unsigned scr_chathead
void SCR_EndLoadingPlaque(void)
void CL_EmitDemoFrame(void)
void Cmd_TokenizeString(const char *text, qboolean macroExpand)
void CL_LoadDownloadIgnores(void)
char weaponModels[MAX_CLIENTWEAPONMODELS][MAX_QPATH]
static void check_skins(const char *name)
mmodel_t * BSP_InlineModel(bsp_t *bsp, const char *name)
void VID_PumpEvents(void)
static size_t format_demo_size(char *buffer, size_t size)
char * Cmd_RawArgsFrom(int from)
void MSG_WriteByte(int c)
static int read_first_message(qhandle_t f)
void Cmd_Deregister(const cmdreg_t *reg)
static void SCR_ScoreDump_f(void)
static cvar_t * cl_add_blend
qhandle_t sound_precache[MAX_SOUNDS]
void V_AddEntity(entity_t *ent)
static int inflate_udp_download(byte *data, int inlen, int outlen)
char baseconfigstrings[MAX_CONFIGSTRINGS][MAX_QPATH]
static cvar_t * scr_chathud_x
unsigned Sys_Milliseconds(void)
static void player_update(server_frame_t *oldframe, server_frame_t *frame, int framediv)
void SCR_DebugGraph(float value, int color)
static const cmdreg_t c_console[]
commandPrompt_t chatPrompt
struct cparticle_s * next
static void CL_ParseNuke(void)
void Con_RunConsole(void)
static int read_next_message(qhandle_t f)
void CL_ParticleSmokeEffect(vec3_t org, vec3_t dir, int color, int count, int magnitude)
static location_t * LOC_Alloc(const char *name)
static void Con_CarriageRet(void)
static cvar_t * con_clock
static void CL_AddBeams(void)
static void SCR_DrawLoading(void)
static cvar_t * ch_health
static void Con_CheckTop(void)
void CL_BlasterParticles(vec3_t org, vec3_t dir)
static cvar_t * con_speed
void Con_ClearNotify_f(void)
void CL_RegisterBspModels(void)
ssize_t FS_FOpenFile(const char *name, qhandle_t *f, unsigned mode)
qboolean R_Init(qboolean total)
char file_name[MAX_QPATH]
static void Con_Paste(void)
static const cmdreg_t scr_cmds[]
static explosion_t * CL_PlainExplosion(qboolean big)
#define DL_COLOR(r, g, b)
static void CL_ClearSustains(void)
particle_t r_particles[MAX_PARTICLES]
void SCR_UpdateScreen(void)
static cvar_t * scr_showturtle
void CL_ClientCommand(const char *string)
static cvar_t * con_notifylines
void Com_Error(error_type_t type, const char *fmt,...)
void BSP_Free(bsp_t *bsp)
qhandle_t R_RegisterModel(const char *name)
cvar_t * allow_download_maps
cvar_t * allow_download_textures
vec3_t playerEntityOrigin
void CL_ForceWall(vec3_t start, vec3_t end, int color)
void CL_DebugTrail(vec3_t start, vec3_t end)
cvar_t * gl_modulate_entities
void CL_ExplosionParticles(vec3_t org)
void S_UnqueueRawSamples()
static int write_udp_download(byte *data, int size)
void CL_ShutdownRefresh(void)
void Prompt_HistoryUp(commandPrompt_t *prompt)
static void V_ClearScene(void)
static void emit_delta_frame(server_frame_t *from, server_frame_t *to, int fromnum, int tonum)
static const char *const sb_nums[2][STAT_PICS]
static trace_t q_gameabi CL_Trace(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end)
static qboolean downloads_pending(dltype_t type)
void CL_WidowSplash(void)
qhandle_t cl_mod_explosions[4]
void SCR_RegisterMedia(void)
void CL_ParticleEffect2(vec3_t org, vec3_t dir, int color, int count)
void SCR_FinishCinematic(void)
static qerror_t check_file_len(const char *path, size_t len, dltype_t type)
static void CL_ParseGamestate(void)
static void Con_Clear_f(void)
static const cmdreg_t c_demo[]
static cvar_t * scr_showpause
static cvar_t * scr_lag_y
cvar_t * cl_disconnectcmd
unsigned predicted_step_frame
float Cvar_ClampValue(cvar_t *var, float min, float max)
static void CL_FlyParticles(vec3_t origin, int count)
qhandle_t model_draw[MAX_MODELS]
char * va(const char *format,...)
void Pmove(pmove_t *pmove, pmoveParams_t *params)
void CL_ClearEffects(void)
qhandle_t weaponmodel[MAX_CLIENTWEAPONMODELS]
static void CL_ParseCenterPrint(void)
char layout[MAX_NET_STRING]
byte areabits[MAX_MAP_AREA_BYTES]
static cvar_t * cl_demowait
void Cmd_Register(const cmdreg_t *reg)
qhandle_t cl_sfx_footsteps[4]
void Con_CheckResize(void)
char model_name[MAX_QPATH]
static void CL_ParseTEntPacket(void)
static cvar_t * con_scroll
int(* R_DrawString)(int x, int y, int flags, size_t maxChars, const char *string, qhandle_t font)
clientinfo_t baseclientinfo
usercmd_t cmds[CMD_BACKUP]
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
static char scr_centerstring[MAX_STRING_CHARS]
void Prompt_LoadHistory(commandPrompt_t *prompt, const char *filename)
static void Con_InteractiveMode(void)
void CL_AddParticles(void)
void Prompt_SaveHistory(commandPrompt_t *prompt, const char *filename, int lines)
static const cmdreg_t v_cmds[]
static cvar_t * cl_demosnaps
static void SCR_ScoreShot_f(void)
char servername[MAX_OSPATH]
#define NOPART_ROCKET_EXPLOSION
void NET_Config(netflag_t flag)
size_t Q_strlcpy(char *dst, const char *src, size_t size)
static void CL_ParseMuzzleFlashPacket(int mask)
void Com_LPrintf(print_type_t type, const char *fmt,...)
static void CL_ParseLaser(int colors)
qhandle_t cl_mod_bfg_explo
void Con_Close(qboolean force)
static void CL_UpdateGibSetting(void)
static void cl_railspiral_color_changed(cvar_t *self)
static void cl_add_blend_changed(cvar_t *self)
unsigned lastTransmitCmdNumber
#define V_AddLight(org, intensity, r, g, b)
char * Com_GetLastError(void)
centity_t cl_entities[MAX_EDICTS]
void MSG_WriteShort(int c)
static cvar_t * cl_demomsglen
clientinfo_t clientinfo[MAX_CLIENTS]
static void set_active_state(void)
qhandle_t SCR_ReadNextFrame(void)
static void Con_Say(char *msg)
static int precache_sexed_total
void UI_Draw(int realtime)
qhandle_t cl_mod_powerscreen
static size_t LOC_Here_m(char *buffer, size_t size)
static void CL_ClearParticles(void)
static cvar_t * con_alpha
static int precache_sexed_sounds[MAX_SOUNDS]
static cvar_t * scr_demobar
void UI_OpenMenu(uiMenu_t type)
void CL_BlasterParticles2(vec3_t org, vec3_t dir, unsigned int color)
void S_ParseStartSound(void)
static void cl_railcore_color_changed(cvar_t *self)
void CL_CheckForPause(void)
void OGG_PlayTrack(int trackNo)
ssize_t FS_Length(qhandle_t f)
static void toggle_console(consoleMode_t mode, chatMode_t chat)
void CL_BloodParticleEffect(vec3_t org, vec3_t dir, int color, int count)
void Prompt_Clear(commandPrompt_t *prompt)
static int scr_center_lines
void UI_ModeChanged(void)
ssize_t FS_Write(const void *buf, size_t len, qhandle_t f)
static void dirtoangles(vec3_t angles)
void CL_AddEntities(void)
unsigned predicted_step_time
static void CL_ClearLasers(void)
cvar_t * allow_download_sounds
static void CL_ParseInventory(void)
void CL_SmokeAndFlash(vec3_t origin)
server_frame_t frames[UPDATE_BACKUP]
static void CL_ParseFrame(int extrabits)
static void exec_server_string(cmdbuf_t *buf, const char *text)
void MSG_WriteString(const char *string)
float V_CalcFov(float fov_x, float width, float height)
static float lerp_client_fov(float ofov, float nfov, float lerp)
void CL_WriteConfig(void)
void CL_PrepRefresh(void)
static cvar_t * cl_railspiral_radius
particle_t r_particles[MAX_PARTICLES]
qhandle_t cl_mod_parasite_segment
void(* R_Shutdown)(qboolean total)
void Cvar_FixCheats(void)
qboolean R_GetPicSize(int *w, int *h, qhandle_t pic)
static void CL_ClearBeams(void)
short predicted_origins[CMD_BACKUP][3]
static void Con_DrawNotify(void)
qhandle_t cl_mod_lightning
static void entity_event(int number)
#define MAX_CLIENTWEAPONMODELS
static cvar_t * scr_chathud
int Cvar_ClampInteger(cvar_t *var, int min, int max)
static cvar_t * scr_centertime
static void finish_udp_download(const char *msg)
static void Con_Linefeed(void)
struct client_static_s::@2 download
size_t MSG_ReadString(char *dest, size_t size)
void CL_TeleportParticles(vec3_t org)
void(* R_RenderFrame)(refdef_t *fd)
static void LOC_Add_f(void)
void Com_SetLastError(const char *msg)
void S_EndRegistration(void)
void(* R_BeginRegistration)(const char *map)
static void CL_UpdatePredictSetting(void)
void S_FreeAllSounds(void)
void Key_WriteBindings(qhandle_t f)
static void CL_ParseConfigstring(int index)
void CL_GTV_EmitFrame(void)
void IF_Clear(inputField_t *field)
cvar_t * allow_download_pics
static unsigned scr_centertime_start
void CL_RegisterSounds(void)
void Con_CheckResize(void)
static void CL_ParseStuffText(void)
static void CL_Download_f(void)
static cvar_t * scr_lag_draw
static void finish_demo(int ret)
void Huff1TableInit(void)
void R_UnregisterImage(qhandle_t handle)
char skin_name[MAX_QPATH]
void Con_Popup(qboolean force)
void(* R_SetScale)(float scale)
static size_t LOC_There_m(char *buffer, size_t size)
static location_t * LOC_FindClosest(vec3_t pos)
static void scr_font_changed(cvar_t *self)
static int fps_to_msec(int fps)
qhandle_t cl_mod_grapple_cable
const vec3_t monster_flash_offset[256]
void CL_BFGExplosionParticles(vec3_t org)
void CL_UpdateFrameTimes(void)
void CL_LoadClientinfo(clientinfo_t *ci, const char *s)
void CL_ParticleEffectWaterSplash(vec3_t org, vec3_t dir, int color, int count)
static void con_param_changed(cvar_t *self)
void SCR_ClearChatHUD_f(void)
void SCR_BeginLoadingPlaque(void)
static void CL_ParseStartSoundPacket(void)
void Cmd_AddMacro(const char *name, xmacro_t function)
cparticle_t * CL_AllocParticle(void)
void CL_BubbleTrail(vec3_t start, vec3_t end)
static cvar_t * scr_chathud_lines
void CL_ClientCommand(const char *string)
void CL_CleanupDownloads(void)
qerror_t BSP_Load(const char *name, bsp_t **bsp_p)
void CL_ParticleEffect(vec3_t org, vec3_t dir, int color, int count)
static void vid_modelist_changed(cvar_t *self)
client_history_t history[CMD_BACKUP]
static void CL_UpdateGunSetting(void)
void CL_UpdateFrameTimes(void)
void CL_LoadState(load_state_t state)
vec3_t playerEntityAngles
void Netchan_Close(netchan_t *netchan)
static void vid_geometry_changed(cvar_t *self)
static chatline_t scr_chatlines[MAX_CHAT_LINES]
void FS_FCloseFile(qhandle_t f)
size_t Q_concat(char *dest, size_t size,...)
void Con_ClearTyping(void)
void CL_ColorExplosionParticles(vec3_t org, int color, int run)
void LOC_LoadLocations(void)
cvar_t * allow_download_models
static const byte splash_color[]
float Cvar_VariableValue(const char *var_name)
static cvar_t * con_notifytime
static cvar_t * scr_showitemname
void Con_ClearNotify_f(void)
centity_t cl_entities[MAX_EDICTS]
#define check_file(path, type)
static vec3_t avelocities[NUMVERTEXNORMALS]
void CL_BubbleTrail2(vec3_t start, vec3_t end, int dist)
static request_t * CL_AddRequest(const netadr_t *adr, requestType_t type)
static qboolean start_udp_download(dlqueue_t *q)
static void Con_Action(void)
static void CL_ParseDownload(int cmd)
void CL_RestartRefresh(qboolean total)
static cvar_t * cl_railtrail_time
void CL_CleanupDemos(void)
static void CL_ProcessSustain(void)
const vec3_t bytedirs[NUMVERTEXNORMALS]
void S_StartSound(const vec3_t origin, int entnum, int entchannel, qhandle_t hSfx, float vol, float attenuation, float timeofs)
void CL_ParticleSteamEffect(vec3_t org, vec3_t dir, int color, int count, int magnitude)
void Con_DrawConsole(void)
static int precache_spawncount
static sync_mode_t sync_mode
void S_BeginRegistration(void)
static cvar_t * cl_adjustfov
void IF_Init(inputField_t *field, size_t visibleChars, size_t maxChars)
void CL_ParticleEffect3(vec3_t org, vec3_t dir, int color, int count)
static cvar_t * cl_railspiral_color
static void SCR_DrawActive(void)
cvar_t * cl_explosion_sprites
void CL_BigTeleportParticles(vec3_t org)
static cvar_t * scr_draw2d
static cvar_t * scr_chathud_y
static cvar_t * cl_particle_num_factor
static void CL_ParseSetting(void)
static cvar_t * cl_railcore_width
static cvar_t * scr_chathud_time
void Con_RegisterMedia(void)
void R_RegisterFunctionsGL()
vec_t VectorNormalize(vec3_t v)
cparticle_t * CL_AllocParticle(void)
static cparticle_t * free_particles
static void CL_ParseSteam(void)
void SZ_Clear(sizebuf_t *buf)
static void vid_fullscreen_changed(cvar_t *self)
static void CL_ParseLayout(void)
qhandle_t cl_mod_heatbeam
void CL_UpdateRecordingSetting(void)
static void CL_InitLocal(void)
size_t COM_strclr(char *s)
static void CL_AddExplosions(void)
unsigned times[CON_TIMES]
cvar_t * cvar_pt_particle_emissive