Skip to content

Commit

Permalink
fix player surrendering when frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
GlorifiedPig committed Jul 17, 2020
1 parent 76bd2e5 commit 83e8fec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ boneManipPositions["handcuffed"] = {
}

function GlorifiedHandcuffs.SetPlayerSurrenderStatus( ply, surrendering )
if GlorifiedHandcuffs.IsPlayerHandcuffed( ply ) then return end
if GlorifiedHandcuffs.IsPlayerHandcuffed( ply ) or ( surrendering and ply:IsFrozen() ) then return end
resetBoneAngles( ply )

if surrendering then
Expand Down

0 comments on commit 83e8fec

Please sign in to comment.