Skip to content

Commit b631703

Browse files
committed
Update thirdperson.lua
1 parent bfdd151 commit b631703

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

gamemode/core/libraries/thirdperson.lua

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
local ImportantBones = {"ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_R_Foot"}
2-
local view, traceData, traceData2, aimOrigin, crouchFactor, ft, curAng
1+
local view, traceData, traceData2, aimOrigin, crouchFactor, ft, curAng
32
local clmp = math.Clamp
43
crouchFactor = 0
54
local diff, fm, sm
@@ -9,27 +8,6 @@ local maxValues = {
98
distance = 100
109
}
1110

12-
local NotSolidTextures = {
13-
["TOOLS/TOOLSNODRAW"] = true,
14-
["METAL/METALBAR001C"] = true,
15-
["METAL/METALGATE001A"] = true,
16-
["METAL/METALGATE004A"] = true,
17-
["METAL/METALGRATE011A"] = true,
18-
["METAL/METALGRATE016A"] = true,
19-
["METAL/METALCOMBINEGRATE001A"] = true
20-
}
21-
22-
local NotSolidModels = {
23-
["models/props_wasteland/exterior_fence002c.mdl"] = true,
24-
["models/props_wasteland/exterior_fence002b.mdl"] = true,
25-
["models/props_wasteland/exterior_fence003a.mdl"] = true,
26-
["models/props_wasteland/exterior_fence001b.mdl"] = true
27-
}
28-
29-
local NotSolidMatTypes = {
30-
[MAT_GLASS] = true
31-
}
32-
3311
hook.Add("CalcView", "liaThirdPersonCalcView", function(client)
3412
ft = FrameTime()
3513
if client:CanOverrideView() and LocalPlayer():GetViewEntity() == LocalPlayer() then
@@ -183,4 +161,4 @@ hook.Add("PrePlayerDraw", "liaThirdPersonPrePlayerDraw", function(ply)
183161
SetWeaponHidden(ply, true)
184162
end
185163
return not visible
186-
end)
164+
end)

0 commit comments

Comments
 (0)