Difference between revisions of "Erratic proximity polling by a mobile Mine"

From Worms Knowledge Base

Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ParentArticle|[[Tricks and glitches]]}}
 
{{ParentArticle|[[Tricks and glitches]]}}
  
When a [[Mine]] checks for nearby worms to see if it should arm itself, it does not check every frame (1/50th of a second) as this is unnecessary and would cause extra calculations per second for the game. Instead, it only checks for them every 1/5th of a second. In most circumstances, this does not cause any problems. However, when a mine has been moved by a particularly large explosion, or dropped from a large height, such as when you use a [[Mine Strike]], it can gain quite a high speed. This high speed will allow it to move quite a large number of pixels in a few frames. This means that it is entirely possible for a fast moving mine to move past a worm without setting it off.
+
When a [[Mine]] checks for nearby worms to see if it should arm itself, it does not check every frame (1/50th of a second) as this is unnecessary and would cause extra calculations per second for the game. Instead, it only checks for them every 1/5th of a second.
  
A similar situation can also occur if a mine is stationary, but a worm on a [[Ninja Rope]] is moving at maximum speed and swings close to the mine. The worm moves fast enough to completely pass through the mine's detection range during the frames that it is not checking for nearby worms.
+
If a mine is stationary, but a worm on a [[Ninja Rope]] is moving at maximum speed and swings close to the mine, the worm may completely pass through the mine's detection range during the frames that it is not checking for nearby worms. It is also possible to [[Fire Punch]] a mine without triggering it. Of course, this trick requires a large amount of luck to successfully work. It will only work if the mine is near the worm during the frames that the mine is not checking for nearby worms, which is nearly impossible to judge.
  
Of course, this trick requires a large amount of luck to sucessfully work. It will only work if the mine is near the worm during the frames that the mine is not checking for nearby worms, which is nearly impossible to judge.
+
A bug, fixed in W:A v3.6.20.1, caused moving mines to poll for nearby worms erratically; much more than 1/5th of a second could go by with no polling being done. (Ironically, the bug was created by code that was meant to ''speed up'' the proximity polling on a moving mine.) In versions of Worms with this bug (including Worms2 and WWP), a mine knocked by an explosion, dropped from a large height, or moved in other ways could easily pass near a worm without being triggered.
 +
 
 +
In W:A v3.6.20.1 and later, a moving mine polls more rapidly the faster it is moving, up to a certain speed where it polls every 1/50th of a second. (This is what was originally intended.) This makes it very unlikely that a moving mine will pass close to a stationary worm without being triggered.

Revision as of 03:13, 13 June 2009

When a Mine checks for nearby worms to see if it should arm itself, it does not check every frame (1/50th of a second) as this is unnecessary and would cause extra calculations per second for the game. Instead, it only checks for them every 1/5th of a second.

If a mine is stationary, but a worm on a Ninja Rope is moving at maximum speed and swings close to the mine, the worm may completely pass through the mine's detection range during the frames that it is not checking for nearby worms. It is also possible to Fire Punch a mine without triggering it. Of course, this trick requires a large amount of luck to successfully work. It will only work if the mine is near the worm during the frames that the mine is not checking for nearby worms, which is nearly impossible to judge.

A bug, fixed in W:A v3.6.20.1, caused moving mines to poll for nearby worms erratically; much more than 1/5th of a second could go by with no polling being done. (Ironically, the bug was created by code that was meant to speed up the proximity polling on a moving mine.) In versions of Worms with this bug (including Worms2 and WWP), a mine knocked by an explosion, dropped from a large height, or moved in other ways could easily pass near a worm without being triggered.

In W:A v3.6.20.1 and later, a moving mine polls more rapidly the faster it is moving, up to a certain speed where it polls every 1/50th of a second. (This is what was originally intended.) This makes it very unlikely that a moving mine will pass close to a stationary worm without being triggered.

Personal tools