diff --git a/lua/pointshop/items/accessories/jumppack.lua b/lua/pointshop/items/accessories/jumppack.lua index 63f5c66..312faf2 100644 --- a/lua/pointshop/items/accessories/jumppack.lua +++ b/lua/pointshop/items/accessories/jumppack.lua @@ -18,8 +18,9 @@ function ITEM:ModifyClientsideModel(ply, model, pos, ang) return model, pos, ang end -function ITEM:Think(ply, modifications) - if ply:KeyDown(IN_JUMP) then - ply:SetVelocity(ply:GetUp() * 6) +function ITEM:SetupMove( pl, modifications, ply, data) + local bdata = data:GetButtons() + if bit.band( bdata, IN_JUMP ) > 0 then + data:SetVelocity( data:GetVelocity() + Vector(0,0,100)*FrameTime() ) end -end \ No newline at end of file +end