BeastlyBean Posted February 4, 2014 Share Posted February 4, 2014 I am thinking of making a little shaving mod using the beard, and the razors ingame. But... Is it possible to have a certain timer to apply a beard layer to a player, and remove it when using the razor? Link to comment Share on other sites More sharing options...
RoboMat Posted February 4, 2014 Share Posted February 4, 2014 Not sure, but you could look for the appropriate functions here: http://theindiestone.com/zomboidjavadocs/zombie/characters/IsoGameCharacter.html A strong candidate would be setHeadSprite(IsoSprite ...), but I have no clue how you could actually create an IsoSprite. Maybe TurboTutone knows more about the sprites. I'll point him to this. Link to comment Share on other sites More sharing options...
BeastlyBean Posted February 4, 2014 Author Share Posted February 4, 2014 setTopSpritepublic void setTopSprite(IsoSprite topSprite) Parameters: topSprite - the topSprite to set getBottomsSpritepublic IsoSprite getBottomsSprite() Returns: the bottomsSprite getExtraSpritespublic java.util.ArrayList<IsoSprite> getExtraSprites()getHairSpritepublic IsoSprite getHairSprite()setHairSpritepublic void setHairSprite(IsoSprite hairSprite) Parameters: bottomsSprite - the bottomsSprite to set setBottomsSpritepublic void setBottomsSprite(IsoSprite bottomsSprite)somewhere there I guess? also, does this even work with the upcoming 3d models? Link to comment Share on other sites More sharing options...
turbotutone Posted February 4, 2014 Share Posted February 4, 2014 hey there, robo had sent me the link, however i have not looked at character sprites at all, so i have no idea how they are handled internally.Also, i dont think youll need new sprites or manipulate the sprites themselves, but just unset/change the hair/beard. Im thinking, perhaps you can find what you need in media/lua/OptionScreens/CharacterCreationMain.lua? Link to comment Share on other sites More sharing options...
BeastlyBean Posted February 4, 2014 Author Share Posted February 4, 2014 Looking into it right now ... Link to comment Share on other sites More sharing options...
Jela331 Posted February 4, 2014 Share Posted February 4, 2014 That's one awesome idea. Beard growing over time and being able to shave it with a razor. Wow! 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