Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medic Shield Bug (either lost RPC packet, or glitched targeting because of stacked Impostors) #73

Open
DonKiiimo opened this issue Mar 2, 2021 · 3 comments

Comments

@DonKiiimo
Copy link

When i shielded a crewmate, and after the next meeting, the impostor was able to kill the person i shielded. While the medic wasnt able to shield a different person. I dont know if it was intended or not Might be helpful to add a Visual for the medic if you are able to shield, or if you allready used your shield. Would be cool if you could enable disable a countdown for the medic.

@psibean
Copy link

psibean commented Mar 4, 2021

I'd like to implement a shield cooldown (how long the shield is active on a target player), as well as an option for maximum number of shielded players. However, I'm a bit confused about how the shield currently works. I can see that when the medic performs a kill, it puts a shield on the target player, which writes via rpc to let everyone else know.

However, I can't see anything ANYWHERE that tells all the other players that the shield is broken (e.g. when the medic dies). Am I blind, is this missing, or am I not understanding the current behavior?

Edit: Nevermind - I'm blind. Looks like it's just doing a repeated local check in the update loop. That seems a bit strange given it could be explicitly controlled? Couldn't it be done by a CustomRPC.BreakShield with a target player id? I'd probably go down this path for a cooldown, but is there a reason I'm missing for it to be on the update / main game thread? Are the rpc calls handled on another thread?

@DorCoMaNdO
Copy link
Contributor

Implementing shield duration is simple as you can use the "effect" duration of CooldownButton, this is made even simpler with the Essentials refactor (though only advised for development purposes until the full release of 0.2.0) as there's an event for the effect duration starting and ending.

@NotHunter101
Copy link
Owner

This most likely happens because of lost RPC packets, which is a known bug that will be fixed as soon as possible.

@NotHunter101 NotHunter101 changed the title Medic Shield Bug Medic Shield Bug (either lost RPC packet, or glitched targeting because of stacked Impostors) Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants