Wallrunning (original) (raw)

Wallrun

Wallrun

Player outruns a rocket in Doom E2M8

Wallrunning can occur when a player runs along a straight wall (either normally or by straferunning) while in contact with it. The player will be accelerated to a speed that is greater than normally attainable.

Wallrunning is triggered when the following criteria are met simultaneously:

The player will begin moving at approximately twice the appropriate speed, ceasing only when the player stops running, encounters a corner, or changes direction (e.g. by being hit by a monster).

Wallrunning in deathmatch[]

An agile player can exploit this bug as a speedrunning or deathmatch tactic, taking advantage of North-South and East-West walls to dodge projectile attacks or move quickly between distant areas of a map. Its use in deathmatch play is limited however, because it requires that:

Exceptions[]

On rare occasions, wallrunning can also be done westward along a one-sided wall, or along walls of other orientations (for instance, West-North-westward along linedefs 106, 119, and 39 of DMPRTL2.WAD from Maximum Doom). In addition, because sprite "footprints" on a map are square rather than round, this same acceleration can occur along one edge of a long row of aligned obstacles, where it is referred to as "thingrunning".

Technical[]

When a player encounters an obstacle, the game will attempt to "slide" the player alongside the obstacle. Presumably to improve the accuracy of collision detection, at high speeds the game will split the player's path of movement into two segments and test each segment for obstacles. No check is made to ensure that the player did not already slide along the wall once, so if the obstacle is present in each of the two segments, the player will slide along the wall twice in the same tic, effectively doubling the player's speed.

The bug only occurs when the player is traveling quickly enough to the North and/or to the East. This happens because the player's path is not split into segments unless his X or Y movement is greater than a certain amount. However, no check is performed to see if the player's speed is smaller than the negative of that threshold (i.e. the player is traveling just as fast South and/or West), so the bug is not invoked.

Wallrunning can only happen moving within a narrow range of angles relative to the wall, because the player's northbound or eastbound motion must be fast enough for the bug to occur. When a player slides alongside a wall, the velocity or momentum is adjusted to slow the player down. If the player is moving nearly parallel to the wall, then he will not slow down a significant amount, allowing him to move at the required speed continuously to invoke the bug.

It is possible for wallrunning to occur on angled walls, but this is very rare because it is more difficult to maintain the required speed in the North or East direction, and also because elastic collisions with walls can frequently disrupt the player's movement unpredictably.

Demo files[]