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
3
2
local clmp = math .Clamp
4
3
crouchFactor = 0
5
4
local diff , fm , sm
@@ -9,27 +8,6 @@ local maxValues = {
9
8
distance = 100
10
9
}
11
10
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
-
33
11
hook .Add (" CalcView" , " liaThirdPersonCalcView" , function (client )
34
12
ft = FrameTime ()
35
13
if client :CanOverrideView () and LocalPlayer ():GetViewEntity () == LocalPlayer () then
@@ -183,4 +161,4 @@ hook.Add("PrePlayerDraw", "liaThirdPersonPrePlayerDraw", function(ply)
183
161
SetWeaponHidden (ply , true )
184
162
end
185
163
return not visible
186
- end )
164
+ end )
0 commit comments