Orientation of frozen entity

Place to get help with not working mods / modding interface.
sakuro
Inserter
Inserter
Posts: 24
Joined: Sat Aug 15, 2020 10:12 am
Contact:

Orientation of frozen entity

Post by sakuro »

I've recentrly released K2 Sentinel which brings Krastorio2's Sentinel (Small radar like building without chunk scanning function) to the base game.

To support Space Age, I added freezing to Sentinel. This means adding heating-energy and frozen_patch to its defnition and let reset_orientation_when_frozen = true. Now I need to add a snowy/frosty overlay image, so I checked in which orientation the sentinels freeze. I thought the 0-th frame (diagonal, the antenna on top-right) of the sprite of sentinel would be used but it is not true. Looking at the screenshot, 17th or 18th frame (antenna on top) may be used.

Are there any offset to its orientation when an entity is frozen?
radars-and-sentinels-on-aquilo.png
radars-and-sentinels-on-aquilo.png (2.74 MiB) Viewed 133 times
(frozen-icon.png is removed for clarity)

sentinal-sprite.png
sentinal-sprite.png (379.9 KiB) Viewed 133 times
Last edited by sakuro on Thu Feb 19, 2026 11:48 am, edited 1 time in total.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4406
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Orientation of frozen entity

Post by boskid »

It looks like in case of a radar, when it is frozen and that flag is set, the orientation is reset to a default value at which a radar starts, which is orientation=0.15.
sakuro
Inserter
Inserter
Posts: 24
Joined: Sat Aug 15, 2020 10:12 am
Contact:

Re: Orientation of frozen entity

Post by sakuro »

boskid wrote: Thu Feb 19, 2026 11:48 am It looks like in case of a radar, when it is frozen and that flag is set, the orientation is reset to a default value at which a radar starts, which is orientation=0.15.
Thanks!
Post Reply

Return to “Modding help”