mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Pixel adjustments to mobs are now sourced / Refactors riding (#89320)
Fixes #85980 - Pixel adjustments are now sourced When tweaking a mob's pixel w, x, y, z, is is now done via `add_offsets` and must have a source string associated - Refactors riding Refactors how riding component selects the offsets to use. It's now all done via the getter rather than a weird mix of a var, a cache, and a getter. - Moves a bunch of animations to use `pixel_w` / `pixel_z` Largely to prevent conflicts with adjustments to a mob's pixel position, but also as many animations are not actual movements, but visual movements. Floating is one such example. It just works 🆑 Melbert fix: Fixed grab offsets not showing for anything but passive grab fix: Fix jank with mob offsets when riding things refactor: Refactored riding component, particularly how it selects layer and offsets. Report any oddities refactor: Refactored pixel offsets of mobs. Report any oddities /🆑
This commit is contained in:
@@ -588,9 +588,9 @@
|
||||
for(var/i in 1 to peels_to_spawn)
|
||||
new banana_type(pick_n_take(reachable_turfs))
|
||||
playsound(owner, 'sound/mobs/non-humanoids/clown/clownana_rustle.ogg', 60)
|
||||
animate(owner, time = 1, pixel_x = 6, easing = CUBIC_EASING | EASE_OUT)
|
||||
animate(time = 2, pixel_x = -8, easing = CUBIC_EASING)
|
||||
animate(time = 1, pixel_x = 0, easing = CUBIC_EASING | EASE_IN)
|
||||
animate(owner, time = 0.1 SECONDS, pixel_w = 6, easing = CUBIC_EASING | EASE_OUT, flags = ANIMATION_PARALLEL|ANIMATION_RELATIVE)
|
||||
animate(time = 0.2 SECONDS, pixel_w = -8, easing = CUBIC_EASING, flags = ANIMATION_RELATIVE)
|
||||
animate(time = 0.1 SECONDS, pixel_w = 2, easing = CUBIC_EASING | EASE_IN, flags = ANIMATION_RELATIVE)
|
||||
StartCooldown()
|
||||
|
||||
///spawns a plumb bunch of bananas imbued with mystical power.
|
||||
|
||||
Reference in New Issue
Block a user