Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions engine/client/pr_csqc.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,8 @@ static qboolean CopyCSQCEdictToEntity(csqcedict_t *fte_restrict in, entity_t *ft
if (rflags & CSQCRF_NOSHADOW)
out->flags |= RF_NOSHADOW;
//CSQCRF_FRAMETIMESARESTARTTIMES is handled by cs_getframestate below
if (rflags & CSQCRF_XFLIP)
out->flags |= RF_XFLIP;

// if (rflags & CSQCRF_REMOVED)
// Con_Printf("Warning: CSQCRF_NOAUTOADD is no longer supported\n");
Expand Down
2 changes: 2 additions & 0 deletions engine/client/pr_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,8 @@ static qboolean CopyMenuEdictToEntity(pubprogfuncs_t *prinst, menuedict_t *in, e
out->flags |= RF_ADDITIVE;
if (rflags & CSQCRF_DEPTHHACK)
out->flags |= RF_DEPTHHACK;
if (rflags & CSQCRF_XFLIP)
out->flags |= RF_XFLIP;

if (out->model)
return true;
Expand Down
1 change: 1 addition & 0 deletions engine/common/pr_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ typedef enum
#define CSQCRF_NOSHADOW 32 //don't cast shadows upon other entities (can still be self shadowing, if the engine wishes, and not additive)
#define CSQCRF_FRAMETIMESARESTARTTIMES 64 //EXT_CSQC_1: frame times should be read as (time-frametime).
#define CSQCRF_FIRSTPERSON 1024 //also not drawn in mirrors, just without the VIEWMODEL hacks attached
#define CSQCRF_XFLIP 2048 //flip horizontally (for q2's left-handed weapons)
//#define CSQCRFDP_USETRANSPARENTOFFSET 64 // Allows QC to customize origin used for transparent sorting via transparent_origin global, helps to fix transparent sorting bugs on a very large entities
////#define CSQCRF_NOAUTOADD 128 // removed in favour of predraw return values.
//#define CSQCRFDP_WORLDOBJECT 128 // for large outdoor entities that should not be culled.
Expand Down
1 change: 1 addition & 0 deletions engine/server/pr_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -13964,6 +13964,7 @@ void PR_DumpPlatform_f(void)
{"RF_NOSHADOW", "const float", CS, D("This entity will not cast shadows. Often useful on view models."), CSQCRF_NOSHADOW},
{"RF_FRAMETIMESARESTARTTIMES","const float", CS, D("Specifies that the frame1time, frame2time field are timestamps (denoting the start of the animation) rather than time into the animation."), CSQCRF_FRAMETIMESARESTARTTIMES},
{"RF_FIRSTPERSON","const float", CS, D("This is basically the opposite of RF_EXTERNALMODEL. Don't draw in third-person or mirrors."), CSQCRF_FIRSTPERSON},
{"RF_XFLIP", "const float", CS|MENU, D("Flip the entity horizontally. Useful for left-handed view models."), CSQCRF_XFLIP},

{"IE_KEYDOWN", "const float", CS|MENU, D("Specifies that a key was pressed. Second argument is the scan code. Third argument is the unicode (printable) char value. Fourth argument denotes which keyboard(or mouse, if its a mouse 'scan' key) the event came from. Note that some systems may completely separate scan codes and unicode values, with a 0 value for the unspecified argument."), CSIE_KEYDOWN},
{"IE_KEYUP", "const float", CS|MENU, D("Specifies that a key was released. Arguments are the same as IE_KEYDOWN. On some systems, this may be fired instantly after IE_KEYDOWN was fired."), CSIE_KEYUP},
Expand Down
Loading