game: fix flashlight flag

This commit is contained in:
Denis Pauk 2024-11-27 00:39:36 +02:00
parent 58363c6696
commit 808f748f4a
3 changed files with 3 additions and 3 deletions

View file

@ -166,7 +166,7 @@ Goals:
* [ ] Rearange surfaces in vulkan render before render,
* [ ] Fully implement `target_camera`,
* [ ] Fully implement `misc_flare`,
* [ ] Fix player height with enabled flashlight,
* [x] Fix player height with enabled flashlight,
* [ ] Single player ReRelease support,
* [ ] Support effects and additional flags for ReRelease when possible.
* [ ] Use shared model cache in client code insted reimplemnet in each render,

View file

@ -273,7 +273,7 @@ CL_AddPacketEntities(frame_t *frame)
trace = CM_BoxTrace(start, end, vec3_origin, vec3_origin, 0, mask);
V_AddLight(trace.endpos, 256, 1, 1, 1);
V_AddLight(trace.endpos, 128, 1, 1, 1);
}
if (s1->number == cl.playernum + 1)

View file

@ -77,13 +77,13 @@
#define FL_NO_KNOCKBACK 0x00000800
#define FL_POWER_ARMOR 0x00001000 /* power armor (if any) is active */
#define FL_COOP_TAKEN 0x00002000 /* Another client has already taken it */
#define FL_FLASHLIGHT 0x00004000 /* enable flashlight */
#define FL_RESPAWN 0x80000000 /* used for item respawning */
#define FL_MECHANICAL 0x00002000 /* entity is mechanical, use sparks not blood */
#define FL_SAM_RAIMI 0x00004000 /* entity is in sam raimi cam mode */
#define FL_DISGUISED 0x00008000 /* entity is in disguise, monsters will not recognize. */
#define FL_NOGIB 0x00010000 /* player has been vaporized by a nuke, drop no gibs */
#define FL_FLASHLIGHT 0x00020000 /* enable flashlight */
#define FRAMETIME 0.1