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 Share on other sites More sharing options...
Thomas Die 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 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 Share on other sites More sharing options...
Thomas Die Posted February 8, 2021 Share Posted February 8, 2021 Link to comment 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 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