Skip to content

Commit 66239ff

Browse files
authored
fix prop spec not working (#1803)
1 parent 2071709 commit 66239ff

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
88

99
- Fixed health station continuous use not working (by @wgetJane)
1010
- Fixed the shop search breaking when using certain special characters (by @NickCloudAT)
11+
- Fixed propspec not working (by @wgetJane)
1112

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

gamemodes/terrortown/gamemode/client/cl_keys.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function GM:PlayerBindPress(ply, bindName, pressed)
107107
return true
108108
end
109109

110-
if IsValid(useEnt) and useEnt:IsSpecialUsableEntity() then
110+
if IsValid(useEnt) and (ply:IsSpec() or useEnt:IsSpecialUsableEntity()) then
111111
net.Start("TTT2PlayerUseEntity")
112112
net.WriteEntity(useEnt)
113113
net.WriteBool(isRemote)

gamemodes/terrortown/gamemode/server/sv_player.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ net.Receive("TTT2PlayerUseEntity", function(len, ply)
598598
local ent = net.ReadEntity()
599599
local isRemote = net.ReadBool()
600600

601-
if not (IsValid(ent) and ent:IsSpecialUsableEntity()) then
601+
if not (IsValid(ent) and (ply:IsSpec() or ent:IsSpecialUsableEntity())) then
602602
return
603603
end
604604

0 commit comments

Comments
 (0)