In Metal Gear Solid 4, Old Snake vomits as a consequence of the violence around him, and it's tied to how much killing you do.
When the player racks up a large number of kills in a conflict zone (Acts 1 and 2), Snake eventually gets sick. Just before it happens, you'll hear Liquid's voice from Metal Gear Solid taunt, "You enjoy all the killing, that's why!"
Note: You can delay the vomiting by "hugging" a wall, but the next time you kill someone it'll build up again until Snake finally throws up. Additionally, taking too much of the syringe or rolling around in the drum can for a long time can also trigger it.