tgstation / tgstation

The /tg/station branch of SS13.
https://www.tgstation13.org/
GNU Affero General Public License v3.0
1.72k stars 4.74k forks source link

Emitter rays not matching the sprite when they're placed horizontally #56694

Open Hadzabadza opened 3 years ago

Hadzabadza commented 3 years ago

Reproduction:

While it's understandable if it's kept that way so rays won't behave oddly, if an emitter is facing left, the muzzle flash sprite is off by one tile. image

NotRanged commented 3 years ago

What I got is:

This happens when a beam weapon with muzzle_type is pointed directly south, or directly west.

I tried it with handheld beam weapons (lasertag, portal gun) and when I click on a pixel perfectly south or west, the muzzle_type sprite goes one tile too far. Even a few degrees off and it works perfectly again.

I have no idea at all why it does this. I tried changing stuff to fix it but to no avail. It only happens with these 2 exact directions.

zxaber commented 3 years ago

It would probably be far easier to resprite the emitters to be shorter.