Definition at line 4 of file cl_ents_nq.c.
5{
6 int num;
9
13 {
17 }
18
21 else
23
25 Host_Error(
"EntityFrameQuake_ReadEntity: entity number (%i) >= MAX_EDICTS (%i)", num,
MAX_EDICTS);
26 if (num < 1)
27 Host_Error(
"EntityFrameQuake_ReadEntity: invalid entity number (%i)", num);
28
29 if (
cl.num_entities <= num)
30 {
31 cl.num_entities = num + 1;
32 if (num >=
cl.max_entities)
34 }
35
36 ent =
cl.entities + num;
37
38
39
40
43 else
44 {
47 }
48
49 cl.isquakeentity[num] =
true;
50 if (
cl.lastquakeentity < num)
51 cl.lastquakeentity = num;
56 {
59 else
61 }
84
85
87 {
88
91 if (i == 2)
92 {
94 if (i)
96 }
97 if (j < 0)
99 else if (j == 0 || j >= 255)
101 else
103 }
104
108 {
111 }
112
114 Host_Error(
"EntityFrameQuake_ReadEntity: read error");
115}
void CL_ExpandEntities(int num)
void CL_MoveLerpEntityStates(entity_t *ent)
float MSG_ReadAngle(sizebuf_t *sb, protocolversion_t protocol)
float MSG_ReadCoord(sizebuf_t *sb, protocolversion_t protocol)
@ PROTOCOL_NEHAHRABJP2
same as NEHAHRABJP but with 16bit soundindex
@ PROTOCOL_NEHAHRABJP
same as QUAKEDP but with 16bit modelindex
@ PROTOCOL_NEHAHRABJP3
same as NEHAHRABJP2 but with some changes
@ PROTOCOL_NEHAHRAMOVIE
Nehahra movie protocol, a big nasty hack dating back to early days of the Quake Standards Group (but ...
static int(ZEXPORT *qz_inflate)(z_stream *strm
void Host_Error(const char *error,...)
#define RENDER_EXTERIORMODEL
#define U_COLORMOD
1 byte, 3 bit red, 3 bit green, 2 bit blue, this lets you tint an object artifically,...
#define U_SCALE
1 byte, scale / 16 positive, not sent if 1.0
#define U_EFFECTS2
1 byte, this is .effects & 0xFF00 (second byte)
#define U_GLOWCOLOR
1 byte, palette index, default is 254 (white), this IS used for darklight (allowing colored darklight...
#define U_DELTA
no data, while this is set the entity is delta compressed (uses previous frame as a baseline,...
#define U_FRAME2
1 byte, this is .frame & 0xFF00 (second byte)
#define U_GLOWTRAIL
leaves a trail of particles (of color .glowcolor, or black if it is a negative glowsize)
#define U_EXTEND2
another byte to follow
#define U_VIEWMODEL
attachs the model to the view (origin and angles become relative to it), only shown to owner,...
#define U_ALPHA
1 byte, 0.0-1.0 maps to 0-255, not sent if exactly 1, and the entity is not sent if <=0 unless it has...
#define U_MODEL2
1 byte, this is .modelindex & 0xFF00 (second byte)
#define U_GLOWSIZE
1 byte, encoding is float/4.0, unsigned, not sent if 0
#define U_EXTERIORMODEL
causes this model to not be drawn when using a first person view (third person will draw it,...
#define MAX_EDICTS
max number of objects in game world at once (32768 protocol limit)
unsigned short modelindex
unsigned char colormod[3]
entity_state_t state_baseline
entity_state_t state_current
entity_state_t state_previous
References entity_state_t::active, ACTIVE_NETWORK, entity_state_t::alpha, entity_state_t::angles, cl, CL_ExpandEntities(), cl_message, CL_MoveLerpEntityStates(), cls, entity_state_t::colormap, entity_state_t::colormod, EF_FULLBRIGHT, entity_state_t::effects, entity_state_t::flags, entity_state_t::frame, entity_state_t::glowcolor, entity_state_t::glowsize, Host_Error(), int(), MAX_EDICTS, entity_state_t::modelindex, MSG_ReadAngle(), MSG_ReadByte, MSG_ReadCoord(), MSG_ReadFloat, MSG_ReadShort, entity_state_t::number, entity_state_t::origin, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, RENDER_EXTERIORMODEL, RENDER_GLOWTRAIL, RENDER_STEP, RENDER_VIEWMODEL, entity_state_t::scale, entity_state_t::skin, entity_t::state_baseline, entity_t::state_current, entity_t::state_previous, entity_state_t::time, U_ALPHA, U_ANGLE1, U_ANGLE2, U_ANGLE3, U_COLORMAP, U_COLORMOD, U_DELTA, U_EFFECTS, U_EFFECTS2, U_EXTEND1, U_EXTEND2, U_EXTERIORMODEL, U_FRAME, U_FRAME2, U_GLOWCOLOR, U_GLOWSIZE, U_GLOWTRAIL, U_LONGENTITY, U_MODEL, U_MODEL2, U_MOREBITS, U_ORIGIN1, U_ORIGIN2, U_ORIGIN3, U_SCALE, U_SKIN, U_STEP, and U_VIEWMODEL.
Referenced by CL_ParseServerMessage().