• Journey's End on PC - Find info here and here. Please report bugs and issues for PC 1.4 and 1.4.1 to Re-Logic here.
  • Journey's End on Mobile - Find info here. Report bugs for Mobile 1.4 to DR Studios at this link and give as much detail as possible.
  • 1.4 will bring many changes to the PC version. We strongly advise making plans to back up your worlds and players prior to updating your game. More details here.
  • Console and Switch - The latest news can be found here. To report a bug, please use this link.

PC Testing the maximum distance for a Portal Gun Station

JereTheJuggler

Spazmatism
Decided to do a little testing with the portal gun station regarding how far it can shoot.

I have my portal gun station set up here
iThtUT5.png


I'm not sure whether Terraria uses the player's left half or right half for determining horizontal position, but I'm just going to be using relative coordinates so my measurements will be taken from my player's left half.

Here's where I have my target set up.
BPzdtv7.png


This is what happens when you fire the gun at the wall when it's two blocks thick

And this is what happens when you fire at the wall when it's just one block thick

So the results are in, and it turns out a portal gun station can shoot a wall a maximum of 674* blocks away from the end of it's barrel!

*Thanks to @critcodedtuna for pointing out I needed to divide by two.
 
Last edited:

critcodedtuna

Terrarian
Going from compass measurement to blocks, you need to divide by 2 since one block is 2 feet. 674 blocks is still nothing to sneeze at though.
 

Niranufoti

Plantera
Nice research there. Going by what the code says, I can confirm a maximum travel distance of 3600 updates * 3 pixels/update / 16 pixels/tile = 675 tiles. Since the projectile isn't created at the very front of the barrel, it can't traverse the final block though.

Also, in case you're wondering about those numbers: The portal bolt gets 30 (maybe 31?) updates per game tick, so the whole deal takes only two seconds.
 
Top Bottom