File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/gamemodes/amongus/gamemode Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments