Skip to content

Commit 6a14ffb

Browse files
committed
Don't highlight vents for dead players
1 parent acf877c commit 6a14ffb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gamemodes/amongus/gamemode/shared.moon

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ GM.TracePlayer = (playerTable, filter = 0) =>
379379
-- Prevent dead players from being able to target corpses.
380380
continue if entClass == "prop_ragdoll" and @GameData.DeadPlayers[playerTable]
381381

382-
-- Prevent regular players from using vents.
383-
continue if (entClass == "func_vent" or entClass == "prop_vent") and not @GameData.Imposters[playerTable]
382+
-- Prevent regular and dead players from using vents.
383+
continue if (entClass == "func_vent" or entClass == "prop_vent") and
384+
(not @GameData.Imposters[playerTable] or @GameData.DeadPlayers[playerTable])
384385

385386
-- Only highlight sabotage buttons when they're active, and when the player isn't dead.
386387
if (entClass == "func_sabotage_button" or entClass == "prop_sabotage_button")

0 commit comments

Comments
 (0)