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 RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Fixed error in Cannibal's role weapon HUD when weapon was selected from last round (Thanks Stig!)
- Fixed detective hats not hiding when the owning player was eaten by the Cannibal
- Fixed Loot Goblin not being able to drop some weapons that were droppable
- Fixed errors in shop with weapons that don't use the TTT base weapon (like the holdable cat)
- Ported "Add check for checking weapon GetHeadshotMultiplier"

### Developer
Expand Down
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/cl_equip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ local function GetOwnedEquipment()
-- Determine if we already have equipment
local owned_ids = {}
for _, wep in ipairs(LocalPlayer():GetWeapons()) do
if IsValid(wep) and wep:IsEquipment() then
if IsValid(wep) and wep.IsEquipment and wep:IsEquipment() then
TableInsert(owned_ids, wep:GetClass())
end
end
Expand Down
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/player_ext_shd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function plymeta:GetBaseKarma() return self:GetNWFloat("karma", 1000) end

function plymeta:HasEquipmentWeapon()
for _, wep in ipairs(self:GetWeapons()) do
if IsValid(wep) and wep:IsEquipment() then
if IsValid(wep) and wep.IsEquipment and wep:IsEquipment() then
return true
end
end
Expand Down
Loading