Skip to content

Commit

Permalink
Update gamemodes/terrortown/gamemode/server/sv_entity.lua
Browse files Browse the repository at this point in the history
Co-authored-by: ZenBre4ker <[email protected]>
  • Loading branch information
TimGoll and ZenBre4ker authored Jan 3, 2025
1 parent 4a093ca commit 5e5f1a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gamemodes/terrortown/gamemode/server/sv_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ function entmeta:IsUsableEntity(requiredCaps)

-- special case: TTT specific lua based use interactions
-- when we're looking for specifically the lua use
if self:IsWeapon() or self.player_ragdoll then
return true
elseif self:IsScripted() and self.CanUseKey then
if self:IsWeapon() or self.player_ragdoll or (self:IsScripted() and self.CanUseKey) then
return true
end

Expand Down

0 comments on commit 5e5f1a6

Please sign in to comment.