Wonderlarr Posted February 7, 2021 Share Posted February 7, 2021 My character is quite small in my mod, leaving a lot of room around their head in the Selection Screen, which I wanted to fill with a Hat that they spawn in with. Is this possible? Link to comment https://forums.kleientertainment.com/forums/topic/126828-making-my-character-wear-a-hat-during-character-selection/ Share on other sites More sharing options...
Thomas_klei Posted February 7, 2021 Share Posted February 7, 2021 (edited) AddClassPostConstruct("widgets/redux/loadoutselect", function(self) if self.puppet == nil or self.currentcharacter ~= "yourcharacter" then return end local puppet = self.puppet --don't mind me puppet.animstate:OverrideSymbol("swap_hat", "your_hat_stuff", "swap_hat") puppet.animstate:Show("HAT") puppet.animstate:Show("HAIR_HAT") puppet.animstate:Hide("HAIR_NOHAT") puppet.animstate:Hide("HAIR") end) This should be everything, maybe you might need to include your anim assets for the hat but ya. Edited February 7, 2021 by thomas4846 code fixed Link to comment https://forums.kleientertainment.com/forums/topic/126828-making-my-character-wear-a-hat-during-character-selection/#findComment-1426561 Share on other sites More sharing options...
Wonderlarr Posted February 8, 2021 Author Share Posted February 8, 2021 13 hours ago, thomas4846 said: AddClassPostConstruct("widgets/redux/loadoutselect", function(self) if self.puppet == nil or self.currentcharacter ~= "yourcharacter" then return end local puppet = self.puppet --don't mind me puppet.animstate:OverrideSymbol("swap_hat", "your_hat_stuff", "swap_hat") puppet.animstate:Show("HAT") puppet.animstate:Show("HAIR_HAT") puppet.animstate:Hide("HAIR_NOHAT") puppet.animstate:Hide("HAIR") end) This should be everything, maybe you might need to include your anim assets for the hat but ya. besides the "yourcharacter" and "your_hat_stuff_", is there something else I'm supposed to change? I threw this into modmain with the changes to work with my own character and hat, but it doesn't seem to show up at all still. Link to comment https://forums.kleientertainment.com/forums/topic/126828-making-my-character-wear-a-hat-during-character-selection/#findComment-1426783 Share on other sites More sharing options...
Thomas_klei Posted February 8, 2021 Share Posted February 8, 2021 Link to comment https://forums.kleientertainment.com/forums/topic/126828-making-my-character-wear-a-hat-during-character-selection/#findComment-1426874 Share on other sites More sharing options...
Wonderlarr Posted February 9, 2021 Author Share Posted February 9, 2021 On 2/8/2021 at 12:42 AM, thomas4846 said: Oh, I see the confusion here. When I meant character selection, I meant the icon part on the screen before, not the clothes selection part! Although, that is also a good idea! I meant I wanted it to be here Also, which widget does this screen use out of curiosity? I can't figure it out on my own. Link to comment https://forums.kleientertainment.com/forums/topic/126828-making-my-character-wear-a-hat-during-character-selection/#findComment-1427307 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now