Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed vFire explosions still killing players with `NoExplosionDamage` equipped (by @TW1STaL1CKY)
- Fixed vFire explosions sometimes not damaging entities in the way they should, like explosive barrels (by @TW1STaL1CKY)
- Fixed an issue where overhead icons from `TTT2ModifyOverheadIcon` were ignored when `shouldDrawDefault` was false (by @mexikoedi)
- Fixed `SetIronsights` nil value error (by @mexikoedi)

### Removed / Breaking Changes

Expand Down
9 changes: 7 additions & 2 deletions gamemodes/terrortown/entities/weapons/weapon_tttbase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,13 @@ hook.Add("KeyRelease", "TTT2ResetIronSights", function(ply, key)
return
end

wep:SetIronsights(false)
wep:SetZoom(false)
if wep.SetIronsights then
wep:SetIronsights(false)
end

if wep.SetZoom then
wep:SetZoom(false)
end
end)

if CLIENT then
Expand Down