Hello AlliedModders!
Maybe this is the wrong forum to post this into, but I couldn't find better place for this question(maybe in Off-Topic forum?).
Anyway, I can't seem to find how is flashlight handled in game. I guess it is purely done client-side, but I am still not sure.
I don't really think it is Dynamic Light (TE_DLIGHT tempentity) because when you create an DLight near the wall, it also lights other side of the wall, while that is not possible with the flashlight. I also tried with ELight, but it only lights entities up.
So after searching server-side stuff in HLSDK(dlls folder and few others) I began to search on client-side files(cl_dll). There is flashlight.cpp, but it is only for flashlight as a HUD element(in the upper right corner of the screen). So, is there a code in HLSDK that shows how flashlight works? I need it to create a flashlight but with a little bit more features, and with DLight you could update its position only once every 0.1 seconds, but real flashlight updates in real time, which makes me think it is handled client-side.
Thanks in advance.