Skip to content

Commit

Permalink
Don't highlight vents for dead players
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Dec 23, 2020
1 parent acf877c commit 6a14ffb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gamemodes/amongus/gamemode/shared.moon
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,9 @@ GM.TracePlayer = (playerTable, filter = 0) =>
-- Prevent dead players from being able to target corpses.
continue if entClass == "prop_ragdoll" and @GameData.DeadPlayers[playerTable]

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

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

0 comments on commit 6a14ffb

Please sign in to comment.