PDA

View Full Version : WA Minigun bug/glitch?


AlternaX
22 Feb 2013, 08:42
Hello

i played someday ago in shopper scheme, when i tryed to attack with Minigun ..... is better watch video why i still have 9 when i was attacked myself with minigun...

http://www.youtube.com/watch?v=59LmHLgtIA0

Any ideas?

hoppi
22 Feb 2013, 10:21
My guess is that the worm you were shooting at knocked your worm, by jumping slightly up from the pit :)

StepS
22 Feb 2013, 13:04
that worm knocked you out

Deadcode
23 Feb 2013, 04:00
Hello

i played someday ago in shopper scheme, when i tryed to attack with Minigun ..... is better watch video why i still have 9 when i was attacked myself with minigun...

http://www.youtube.com/watch?v=59LmHLgtIA0

Any ideas?

The Minigun fires 20 individual shots, each of which goes in a random direction (with the average being where you were aiming). Sometimes you can get lucky and empty a whole load of minigun rounds into a worm that's very close to you, and walk away unscathed. In this case, one of those bullets happened to go in at an angle that made it hit too close to your own worm, backfiring and hitting you backwards.

My guess is that the worm you were shooting at knocked your worm, by jumping slightly up from the pit :)that worm knocked you out

No, that's not what happened. If that were the case, then the worm being shot would have flown out of there with roughly the same or greater velocity than the worm that was firing the gun, and in the same direction, not opposite.

AlternaX
23 Feb 2013, 10:03
The Minigun fires 20 individual shots, each of which goes in a random direction (with the average being where you were aiming). Sometimes you can get lucky and empty a whole load of minigun rounds into a worm that's very close to you, and walk away unscathed. In this case, one of those bullets happened to go in at an angle that made it hit too close to your own worm, backfiring and hitting you backwards.


So if i was shotted accidentally with one of those bullets, why my worm still had 9 lifepoints?

Deadcode
23 Feb 2013, 22:21
So if i was shotted accidentally with one of those bullets, why my worm still had 9 lifepoints?

Please post the replay and I'll have a look.

EDIT: I've now recreated the same event on that same map (http://wmdb.org/2307) — Here is the replay (http://kingbird.myphotos.cc/2013-02-24%2005.34.02%20%7BTA%7D%20%5BMinigun%20anomaly%20 recreated%5D%200xDEADC0DE.WAgame). I replicated the exact positions of the two worms and the minigun angle used. So indeed, it was a bullet's backfire that hit your worm.

There's a narrow range in which a gunshot can give blast force to a worm without damaging it. This can happen both with a worm being shot and a worm being hit by backfire from its own gun, and what the gunshot actually hits is irrelevant (it can be land, a worm, a mine, whatever), it's only what's in the vicinity of the gunshot's hit that matters.

Any non-terrain object within a 32×32 square, with sides parallel to the X and Y axes, centered on where a gunshot hit, will be pushed by the blast. The damage is calculated differently, by what I call ortho-distance (the sum of the absolute values of the X and Y components of the distance); the damage decreases linearly proportional to the ortho-distance. Beyond a 45-degree-tilted square centered on the gunshot hit, the damage will be zero. So basically, the area in the corners of the 32×32 square, which the 45-degree-tilted square's area doesn't intersect with, are where something can be blasted without being damaged.

AlternaX
24 Feb 2013, 11:26
Please post the replay and I'll have a look.

EDIT: I've now recreated the same event on that same map (http://wmdb.org/2307) — Here is the replay (http://kingbird.myphotos.cc/2013-02-24%2005.34.02%20%7BTA%7D%20%5BMinigun%20anomaly%20 recreated%5D%200xDEADC0DE.WAgame). I replicated the exact positions of the two worms and the minigun angle used. So indeed, it was a bullet's backfire that hit your worm.

There's a narrow range in which a gunshot can give blast force to a worm without damaging it. This can happen both with a worm being shot and a worm being hit by backfire from its own gun, and what the gunshot actually hits is irrelevant (it can be land, a worm, a mine, whatever), it's only what's in the vicinity of the gunshot's hit that matters.

Any non-terrain object within a 32×32 square, with sides parallel to the X and Y axes, centered on where a gunshot hit, will be pushed by the blast. The damage is calculated differently, by what I call ortho-distance (the sum of the absolute values of the X and Y components of the distance); each extra pixel of ortho-distance decreases the damage by 1 point. Beyond a 45-degree-tilted square centered on the gunshot hit, the damage will be zero. So basically, the area in the corners of the 32×32 square, which the 45-degree-tilted square's area doesn't intersect with, are where something can be blasted without being damaged.

Thanks for the reply and claryfing me this thinks. However this is my replay:

http://www49.zippyshare.com/v/60367013/file.html

Starts at 11:40

Deadcode
24 Feb 2013, 23:24
Thanks for the reply and claryfing me this thinks. However this is my replay:

http://www49.zippyshare.com/v/60367013/file.html

Starts at 11:40

Thanks. As it so happens, the shot that backfired did 5 points damage (the maximum point-blank damage of a minigun bullet) to the worm you were shooting. It hit 15.4 pixels right and 15.7 pixels down from your worm's focus.

I took a closer look at the code, and the range in which this glitch can happen is very narrow indeed. There are basically just 4 pixels in which it can happen — one in each of the four corners of the square. The x and y distance both have to be in the range 15.00000 to 15.99998 pixels.

Pac-Man
25 Feb 2013, 17:08
My doctoral dissertation will be about Worms.