sezero / uhexen2

Hexen II: Hammer of Thyrion -- A cross-platform port of Hexen II game.
https://sourceforge.net/projects/uhexen2/
73 stars 14 forks source link

Sunstaff issue #66

Open tallustelija opened 8 months ago

tallustelija commented 8 months ago

https://github.com/sezero/uhexen2/blob/89191f6e252061eb330d961f14e81eef76bcf36b/gamecode/hc/h2/sunstaff.hc#L225-L233

There's a visual bug with the sunstaff that dates back to the original HexenC releases. If sunstaff is in firing animation, fire key is released and weapon is changed quickly, the EF_BRIGHTLIGHT effect will stay on indefinitely.

Adding

self.effects(-)EF_BRIGHTLIGHT;

on line 231 of sunstaff.hc seems to fix this. I haven't noticed side effects. See attached demos. sunstaff_bug.zip

sezero commented 8 months ago

I can see it in the demos, but I can't reproduce the thing: How do you so quickly switch to a different weapon to trigger this?

sezero commented 8 months ago

Never mind, I did manage to reproduce using mouse scroll to switch weapons.

sezero commented 8 months ago

Don't know whether I want to fix it, though. I'd like to make a release soon (I hope.. after 6 years...)

tallustelija commented 8 months ago

Alright, yeah it isn't a high priority bug.

Works as a free torchlight effect which is nice :)

Good luck with the next version release!

sezero commented 8 months ago

Alright, yeah it isn't a high priority bug.

Indeed

Works as a free torchlight effect which is nice :)

:smile:

Good luck with the next version release!

Thanks