diff --git a/README.md b/README.md index d22c8f553..eb12f5223 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/src/client/cl_entities.c b/src/client/cl_entities.c index 34c87a4fd..1e8d6a853 100644 --- a/src/client/cl_entities.c +++ b/src/client/cl_entities.c @@ -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) diff --git a/src/game/header/local.h b/src/game/header/local.h index 1dcf3bd6f..96421db86 100644 --- a/src/game/header/local.h +++ b/src/game/header/local.h @@ -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