Skip to content

Commit

Permalink
game: fix flashlight flag
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Nov 26, 2024
1 parent 58363c6 commit 808f748
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/client/cl_entities.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/game/header/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 808f748

Please sign in to comment.