eDonnes124 / Town-Of-Us-R

An Among Us mod containing a bunch of roles
GNU General Public License v3.0
335 stars 135 forks source link

Can't kill people in vents anymore #217

Open fariparedes opened 4 months ago

fariparedes commented 4 months ago

Between v5.0.0 and v5.0.2, this line of code was modified: https://github.com/eDonnes124/Town-Of-Us-R/blob/e950f7b5ff364242306e4af81b388ab5a5a211c3/source/Patches/Utils.cs#L411 To this: https://github.com/eDonnes124/Town-Of-Us-R/blob/198b9b8d6ed1b751921e548deb12f5122a57d1ed/source/Patches/Utils.cs#L411

The || player.InVent condition was added that prevents abilities from targeting anyone who's in a vent. I presume that this was done so that any crewmate with an ability would not have an ESP that told them when someone was hiding in a vent.

However, this creates an issue where hiding in a vent has become even more powerful a strategy. Jester vent hiding is now unstoppable, and jumping into a vent keeps you completely safe from someone trying to kill you. I think certain abilities, especially kill buttons, should still be able to target people in vents. Thoughts?