PocoHud3 icon indicating copy to clipboard operation
PocoHud3 copied to clipboard

PocoHud icon keeps counting down the ECM timer even though ECM is gone

Open karasuhebi opened this issue 10 years ago • 5 comments

If you set up an ECM on a glass surface and then destroy the glass, the ECM gets destroyed but PocoHud keeps counting down, making people think the ECM is still in effect.

karasuhebi avatar Dec 24 '15 08:12 karasuhebi

I have pushed my first attempt to fix this to my repo. It seems to work as intended when I tried it in singleplayer / as host. And it should work for clients too, but it needs a good amount of testing still. Also, the function is quite bulky, I'm not sure if it could be made a bit nicer.

ghost avatar Jan 18 '16 01:01 ghost

Do you have a link to build based on your repo? I'd be glad to test it if you feel like it's ready for a public test.

karasuhebi avatar Jan 19 '16 23:01 karasuhebi

Wooh, almost missed this notification. How's it working? Couldn't play a single game for a few days, locked outta my gaming rig 9 am to 11 pm everyday. dang.

zenyr avatar Jan 20 '16 15:01 zenyr

@karasuhebi It's on my GitHub. All I changed was Hud3.lua, so you'd only have to replace that file in your PocoHud folder.

@zenyr Basically, it keeps a list of all ECMJammerBase instances, which is updated inside the set_active hook function. It also hooks ECMJammerBase:destroy, in which it uses the list to determine if there is any other ECM running to update the timer buff or remove it.

ghost avatar Jan 20 '16 16:01 ghost

Any updates on this one?

karasuhebi avatar Sep 23 '16 04:09 karasuhebi