mirror of
https://github.com/CFC-Servers/cfc_ulx_commands.git
synced 2025-03-04 03:13:28 -05:00
Fix MOVETYPE not being set when dropping a player (#162)
This commit is contained in:
parent
0550713083
commit
bc0653ee1e
@ -9,6 +9,13 @@ hook.Add( "PhysgunPickup", "ULXphysgunallowPlayer", function( _, ent )
|
||||
end
|
||||
end, HOOK_HIGH )
|
||||
|
||||
hook.Add( "PhysgunDrop", "ULXphysgunallowPlayer", function( _, ent )
|
||||
if not ent:IsPlayer() then return end
|
||||
if ent:GetNWBool( "ULXphysgunallow", false ) then
|
||||
ent:SetMoveType( MOVETYPE_WALK )
|
||||
end
|
||||
end, HOOK_HIGH )
|
||||
|
||||
function cmd.physgunallow( callingPly, targetPlys, shouldUndo )
|
||||
for _, ply in ipairs( targetPlys ) do
|
||||
ply:SetNWBool( "ULXphysgunallow", not shouldUndo )
|
||||
|
Loading…
Reference in New Issue
Block a user