Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
This is like a configurable version of the "fancy" flashlight beams in DarkDoomZ. I dig having one beam for spill and another for spot. Well done, Ricardo, ficou ótimo!
However, there's one tiny issue: the beam origin doesn't follow your height in real time, only on activation. For example, if you turn it on while standing then crouch, the beam will stay with the origin floating over your head. And if you turn it on while crouching, when you stand up the beam will stay at hip height.
I tried to troubleshoot this myself, but I'm no coder or programmer, I just look at the Zscript file and get lost trying to find where the "accompany actor height" parameter would go.
Plasmazippo wrote:However, there's one tiny issue: the beam origin doesn't follow your height in real time, only on activation. For example, if you turn it on while standing then crouch, the beam will stay with the origin floating over your head. And if you turn it on while crouching, when you stand up the beam will stay at hip height.
Ah, thanks for noticing, that was an oversight when calculating the Z offset of the light. I added the player viewheight directly to the position offset (head/shoulder/viewcenter), instead of calculating it later when setting the position per tick. It's fixed now.
Ricardo, If you're still here could you please also add a check to see if the player is alive or not since the light stays on even when the player is dead, or maybe leave it as is and add sounds of it turning on and off.