Watch the Layer Cake: 2 online guitar lesson by Ben Lacy from Two-Hand Groove Guitar
The bass part is pretty simple, just G-A then C-D. I use my middle finger for the A and the D because I need my ring finger for the chord.
I like to add some stuff to the bass part sometimes to keep it interesting and loose. Maybe a little vibrato every other time. Makes it funkier.