Swap hands
This commit is contained in:
parent
bb8743fc28
commit
94d17f5cda
|
@ -37,6 +37,9 @@ local function beatup( ply, num )
|
||||||
-- If the wanted weapon is in the other hand, request to holster it.
|
-- If the wanted weapon is in the other hand, request to holster it.
|
||||||
wep:D_SetReqID( !hand, "" )
|
wep:D_SetReqID( !hand, "" )
|
||||||
end
|
end
|
||||||
|
if wep:D_GetID( hand ) != "" then -- If we have something in this hand, swap it with the other
|
||||||
|
wep:D_SetReqID( !hand, wep:D_GetID( hand ) )
|
||||||
|
end
|
||||||
return wep:D_SetReqID( hand, id )
|
return wep:D_SetReqID( hand, id )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue