Spazmatism_Eye Posted October 24, 2020 Share Posted October 24, 2020 I would like to mod in a new type of chester, like shadow chester and snow chester. Link to comment Share on other sites More sharing options...
AndRay Posted October 31, 2020 Share Posted October 31, 2020 (edited) Disclaimer: newbie here. I'll give a few quick thoughts but I might be wrong. Changing Chester's state is just a matter of adding the corresponding morph functions to its prefab (you need a function to handle the morph itself, say, MorphNewStateChester, and you need to change canMorph and MorphChester so your transformation doesn't get skipped, and onPreLoad so Chester doesn't revert after a load.) The main trouble is the "hack" the code uses to transform it to the clients. The game uses a net variable and it seems to be a boolean (so, only two states), so you have to add another variable to account for your transformation, and wire it up so it's properly listened to and triggers the right change. That last step is a bit shaky, because weirdly Snow Chester does not need to be "net-hacked" in the same way. Edited October 31, 2020 by AndRay 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