Skip to content

Commit

Permalink
death fix maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
Fesiug committed Oct 15, 2020
1 parent 087e21e commit 0f5d104
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ $RECYCLE.BIN/

# Windows shortcuts
*.lnk
addon.json
Upload.cmd
workship_id.cmd
14 changes: 8 additions & 6 deletions lua/autorun/lf_playermodel_selector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,15 @@ end )

hook.Add( "PlayerSetHandsModel", "lf_fe_hands_select2", function( ply, ent )
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()
ent:SetModel( info.model )
ent:SetSkin( info.skin )
ent:SetBodyGroups( info.body )
end)
timer.Simple(0.2, function()
ent:SetModel( info.model )
ent:SetSkin( info.skin )
ent:SetBodyGroups( info.body )
end)
end
end
end )

Expand Down

0 comments on commit 0f5d104

Please sign in to comment.