client
MouseDrag(S,O)
if(weap=="Machinegun")
var/obj/Bullet/B=new(usr.loc)
pixel_X=rand(0,32)
pixel_Y=rand(0,32)
B.pixel_x=pixel_X
B.pixel_y=pixel_Y
walk(B,get_dir(usr,O),0)
Problem description: the code above works but not how i want it the bullets will only go in the 8 directions i want them to head to where the usr dragged and then continue i dont do much with bullets so im really stumped.