dont allow using c_hand models as regular player models

without this players can use a c_hand model and then outfitter to have
a normal looking player model despite having a broken hitbox.
This commit is contained in:
edshot99 2024-09-05 00:26:21 -05:00
parent 425ad89b43
commit 1d40eb26d8

View File

@ -176,6 +176,8 @@ local function UpdatePlayerModel( ply )
local mdlname = ply:GetInfo( "cl_playermodel" )
local mdlpath = player_manager.TranslatePlayerModel( mdlname )
if player_manager.TranslatePlayerHands( mdlname ).model == mdlpath then mdlpath = "models/player/kleiner.mdl" end
SetMDL( ply, mdlpath )
if debugmode then print( "LF_PMS: Set model to: "..tostring( mdlname ).." - "..tostring( mdlpath ) ) end