death fix maybe

This commit is contained in:
Fesiug 2020-10-14 23:48:56 -04:00
parent 087e21e587
commit 0f5d104431
2 changed files with 11 additions and 6 deletions

3
.gitignore vendored
View File

@ -86,3 +86,6 @@ $RECYCLE.BIN/
# Windows shortcuts # Windows shortcuts
*.lnk *.lnk
addon.json
Upload.cmd
workship_id.cmd

View File

@ -281,13 +281,15 @@ end )
hook.Add( "PlayerSetHandsModel", "lf_fe_hands_select2", function( ply, ent ) hook.Add( "PlayerSetHandsModel", "lf_fe_hands_select2", function( ply, ent )
if ply:GetInfo( "cl_playerhands" ) and ply:GetInfo( "cl_playerhands" ) != "" then if ply:GetInfo( "cl_playerhands" ) and ply:GetInfo( "cl_playerhands" ) != "" then
local info = player_manager.TranslatePlayerHands(ply:GetInfo( "cl_playerhands" )) if ent then
local info = player_manager.TranslatePlayerHands(ply:GetInfo( "cl_playerhands" ))
timer.Simple(0.5, function() timer.Simple(0.2, function()
ent:SetModel( info.model ) ent:SetModel( info.model )
ent:SetSkin( info.skin ) ent:SetSkin( info.skin )
ent:SetBodyGroups( info.body ) ent:SetBodyGroups( info.body )
end) end)
end
end end
end ) end )