Skip to content

Commit

Permalink
protocol: cleanup flags
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Dec 17, 2024
1 parent d79c003 commit 6494c1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
13 changes: 3 additions & 10 deletions src/common/header/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ enum clc_ops_e
#define PS_WEAPONINDEX (1 << 12)
#define PS_WEAPONFRAME (1 << 13)
#define PS_RDFLAGS (1 << 14)

#define PS_MINSMAXS (1 << 18)
#define PS_MINSMAXS (1 << 15)

/*============================================== */

Expand All @@ -298,7 +297,6 @@ enum clc_ops_e
#define SND_POS (1 << 2) /* three coordinates */
#define SND_ENT (1 << 3) /* a short 0-2: channel, 3-12: entity */
#define SND_OFFSET (1 << 4) /* a byte, msec offset from frame start */
#define SND_PRED_INFO (1<<5) /* a byte and a float */

#define DEFAULT_SOUND_PACKET_VOLUME 1.0
#define DEFAULT_SOUND_PACKET_ATTENUATION 1.0
Expand All @@ -316,7 +314,6 @@ enum clc_ops_e
#define U_EVENT (1 << 5)
#define U_REMOVE (1 << 6) /* REMOVE this entity, don't add it */
#define U_MOREBITS1 (1 << 7) /* read one additional byte */
#define U_CLIENT_EFFECTS (1 << 7)

/* second byte */
#define U_NUMBER16 (1 << 8) /* NUMBER8 is implicit if not set */
Expand All @@ -326,7 +323,6 @@ enum clc_ops_e
#define U_RENDERFX8 (1 << 12) /* fullbright, etc */
#define U_EFFECTS8 (1 << 14) /* autorotate, trails, etc */
#define U_MOREBITS2 (1 << 15) /* read one additional byte */
#define U_SCALE (1 << 15)

/* third byte */
#define U_SKIN8 (1 << 16)
Expand All @@ -337,17 +333,14 @@ enum clc_ops_e
#define U_MODEL3 (1 << 21)
#define U_MODEL4 (1 << 22)
#define U_MOREBITS3 (1 << 23) /* read one additional byte */
#define U_JOINTED (1 << 23)

/* fourth byte */
#define U_OLDORIGIN (1 << 24)
#define U_SKIN16 (1 << 25)
#define U_SOUND (1 << 26)
#define U_SOLID (1 << 27)
#define U_ABSLIGHT (1 << 28)
#define U_USAGE_COUNT (1 << 29)
#define U_FM_FLAGS (1 << 30)
#define U_FM_SKIN (1 << 31)
#define U_FM_FLAGS (1 << 28)
#define U_CLIENT_EFFECTS (1 << 29)

/* CMD - Command text buffering and command execution */

Expand Down
9 changes: 0 additions & 9 deletions src/common/header/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ typedef struct
#define CONTENTS_EMPTY 0x00000000 // nothing
#define CONTENTS_SOLID 1 /* an eye is never valid in a solid */
#define CONTENTS_WINDOW 2 /* translucent, but not watery */
#define CONTENTS_ILLUSIONARY 0x00000004 // Was CONTENTS_AUX.
#define CONTENTS_AUX 4
#define CONTENTS_LAVA 8
#define CONTENTS_SLIME 16
Expand Down Expand Up @@ -772,14 +771,6 @@ typedef struct
#define CONTENTS_DETAIL 0x8000000 /* brushes to be added after vis leafs */
#define CONTENTS_TRANSLUCENT 0x10000000 /* auto set if any surface has trans */
#define CONTENTS_LADDER 0x20000000
// This flag is special in that it is not stored in the .bsp by QuakeEd. It is passed into the trace
// functions to say that anything with CONTENTS_CAMERANOBLOCK should be ignored. So we can get away
// with defining it = CONTENTS_CAMERANOBLOCK.
#define CONTENTS_CAMERABLOCK 0x20000000 // Was CONTENTS_LADDER.
// This flag is special in that it is NOT passed into the trace functions, but may be stored in the
//.bsp by QuakeEd to say that traces with CONTENTS_CAMERABLOCK as the mask will ignore any brushes
// with this flag.
#define CONTENTS_CAMERANOBLOCK 0x40000000
// Only do the trace against the world, not entities within it. Not stored in the .bsp and passed
// only as an argument to trace fucntions.
#define CONTENTS_WORLD_ONLY 0x80000000
Expand Down

0 comments on commit 6494c1d

Please sign in to comment.