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 @@ -10,6 +10,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed the shop search breaking when using certain special characters (by @NickCloudAT)
- Fixed propspec not working (by @wgetJane)
- Fixed a regression in TTT voice chat team colors (see <https://github.com/Facepunch/garrysmod/commit/38b7394ced29ffe318213e580efa4b1090828ac7>)
- Fixed ghost viewmodels briefly appearing from weapons held by other players (by @TW1STaL1CKY)

## [v0.14.3b](https://github.com/TTT-2/TTT2/tree/v0.14.3b) (2025-03-18)

Expand Down
5 changes: 5 additions & 0 deletions gamemodes/terrortown/entities/weapons/weapon_tttbase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,11 @@ if CLIENT then
-- affects @{GM:PostDrawViewModel}
-- @realm client
hook.Add("PreDrawViewModel", "TTT2ViewModelHider", function(viewModel, ply, wep)
-- safeguard for ghost viewmodels appearing from weapons held by other players
if wep ~= ply:GetActiveWeapon() then
return true
end

-- note: while ShowDefaultViewModel is set to true in the weapon base, addons such as TFA
-- do not use the weapon base and only implement parts of it to work with TTT. In a perfect
-- world TFA would be updated to fix this issue, but we can also prevent it by explicitly
Expand Down