Leaning, known as Contextual Lean in Call of Duty: Ghosts, is a mechanic in all games since Call of Duty for the PC. However, for consoles, it only appears in Call of Duty, Call of Duty: Classic, Call of Duty: Ghosts, the campaign of Call of Duty: Infinite Warfare, Call of Duty: Modern Warfare, Call of Duty: Vanguard, Call of Duty: Modern Warfare II, Call of Duty: Modern Warfare III, and Call of Duty: Black Ops 6. Leaning allows the player to fire from behind cover (such as the corner of a wall) without completely exposing themselves to their enemies, making it an effective gameplay mechanic at the player's disposal.
Call of Duty/Call of Duty: Classic
In Call of Duty: Classic, this can be activated by pressing the left and right arrow buttons. Pressing the left arrow button will make the character lean to the left while the right arrow button will make the player lean to the right.
Call of Duty: Ghosts
In Call of Duty: Ghosts, this can be activated by going behind an object and pressing the aim button when a yellow arrow shows up next to the crosshair. Depending on what direction the arrow is pointing, the player will lean in that direction.
Call of Duty: Infinite Warfare
Leaning returns only in the campaign mode of Infinite Warfare, mostly unchanged from Call of Duty: Ghosts, it can be activated by going behind an object and pressing the aim button when a yellow arrow shows up next to the crosshair. Depending on what direction the arrow is pointing, the player will lean in that direction.
Call of Duty: WWII
In the campaign and multiplayer, leaning can be activated by going behind and the edge of an object, pressing the aim button. When the player can lean, the weapon that the player is holding will lean to the direction.
Call of Duty: Modern Warfare & Onwards
Call of Duty: Modern Warfare would change leaning to be part of the Mounting mechanic. This mechanic would return in later games, those being Call of Duty: Vanguard, Call of Duty: Modern Warfare II, Call of Duty: Modern Warfare III, and Call of Duty: Black Ops 6.