New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Componentizes putting hats on ghostdrones and AI cores, extends support to mechcomponent storages #18140
Componentizes putting hats on ghostdrones and AI cores, extends support to mechcomponent storages #18140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would reeeally be a lot better as a component, but if you don't want to tackle that it's okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better, thanks for taking on the project of making component/hattable
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few final nitpicks (sorry for taking a while to get back to this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few final nitpicks (sorry for taking a while to get back to this)
No problem, thanks for teaching me so much!
[feature]
About the PR
I've taken some code used for ghostdrones and mangled it to allow people to customise their mechcomp (demon) robot with hats and wigs. Currently it's just done with a click but I can make it specific to an intent, or see about letting you weld them on so they're not stolen. Do let me know if any code is bloated or vestigial.
Along with adding the component to something you want to be able to put hats on, you can now also set a hat_offset_y and x var there, and in a hat's code in order to correct its position. With this you can set the hat to the right place on the object, then adjust even more for things like wigs and hats with inhand sprites that aren't centred in frame.
Why's this needed?
Mechcomp cabinets/frames are already personified a lot with movement components and dialogue, this allows for more customisation and fun.
The component itself will ensure that adding behavior for putting hats onto things that isn't a player with slots will be easier to implement.
Changelog