Fixes raptor pixel offsets (#92719)

## About The Pull Request

<img width="166" height="118" alt="dreamseeker_37t0MNU5jA"
src="https://github.com/user-attachments/assets/24b1e04e-b14d-429a-b0c1-204146b07a8d"
/>
<img width="136" height="125" alt="dreamseeker_HoBk2zzy9b"
src="https://github.com/user-attachments/assets/2e1139fe-7051-4085-8c76-859495bea134"
/>
<img width="145" height="134" alt="dreamseeker_KNIWzKUX1c"
src="https://github.com/user-attachments/assets/aeeff869-4331-47d8-9199-a021858175fd"
/>

Currently raptor pixel offsets are completely broken and result in you
sometimes being visually on the tile next to you, and are inconsistent
between east and west rotation. This makes it nigh impossible to
determine which tile you're on.

## Changelog
🆑
fix: Fixed raptors and their riders having weird/confusing pixel offsets
/🆑
This commit is contained in:
SmArtKar
2025-08-26 18:46:06 -06:00
committed by GitHub
parent 7fa507e428
commit e545a0ae93
2 changed files with 27 additions and 10 deletions
@@ -146,11 +146,22 @@ GLOBAL_LIST_EMPTY(raptor_population)
adjust_offsets(new_dir)
/mob/living/basic/raptor/proc/adjust_offsets(direction)
if(!change_offsets)
if (!change_offsets)
return
pixel_x = (direction & EAST) ? -20 : 0
pixel_y = (direction & NORTH) ? -5 : 0
switch (direction)
if (NORTH)
pixel_x = -8
pixel_y = -5
if (SOUTH)
pixel_x = 0
pixel_y = 0
if (EAST, SOUTHEAST, NORTHEAST)
pixel_x = -20
pixel_y = 0
if (WEST, SOUTHWEST, NORTHWEST)
pixel_x = -5
pixel_y = 0
/mob/living/basic/raptor/early_melee_attack(atom/target, list/modifiers, ignore_cooldown)
. = ..()