Skip to content

Commit

Permalink
Merge pull request #1086 from Mr-Gash/master
Browse files Browse the repository at this point in the history
TTT: Fixed instant defusal exploit
  • Loading branch information
svdm committed Oct 19, 2015
2 parents fc93bce + 9b69b98 commit 91ab0e6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -507,7 +507,7 @@ if SERVER then
if not idx or not wire then return end

local bomb = ents.GetByIndex(idx)
if IsValid(bomb) and bomb:GetArmed() then
if IsValid(bomb) and bomb:GetClass() == "ttt_c4" and not bomb.DisarmCausedExplosion and bomb:GetArmed() then
if bomb:GetPos():Distance(ply:GetPos()) > 256 then
return
elseif bomb.SafeWires[wire] or ply:IsTraitor() or ply == bomb:GetOwner() then
Expand Down

0 comments on commit 91ab0e6

Please sign in to comment.