ZNEAR tested and works well by me, what exactly happens with your code?
Hello, in some situations ( near ) lights disappearing ( when looking in some directions ). Only if my used weapon action is flagged with ZNEAR. Besides that, ( 4ex ) my fire - particles are rendered / visible through walls ( =blocks with shadec material ) if ZNEAR is set. No ZNEAR, everythings fine. Its a fps project, weapon is placed close to the camera vectors and ive set camera.clip_near to 1 btw. The light - znear - "Bug" seams to be a "random".
For some particle effects ive set those var's to 1: