Specifically, when approaching a dead boy, initially two clockwise arrows appear. Sometimes, issuing an action command will take whatever frags or other grenades are available. This is good.
Other times, though, you throw all of your ammo and your rifle to the ground (instantly) and retrieve the enemies rifle, but no ammo.