Sign in to follow this  
dinomice

Modding: Applying pig sprites and animations to a new character?

Recommended Posts

dinomice    0

Is it possible to apply the Pig's sprites and animations to a new playable character? I've extracted them from the game using ktools.

Share this post


Link to post
Share on other sites
Monti18    404

Haha don't say that! :D

I just had a look, it seems like this mod is more complicated than I thought, so to make it easier for you:

It calls PlayablePets.SetCommonStats, which in turns sets

inst.AnimState:SetBank(mob.bank)
inst.AnimState:SetBuild(mob.build)
inst:SetStateGraph(mob.stategraph)

for the pigman.

In this case, this would be 

inst.AnimState:SetBank("pigman")
inst.AnimState:SetBuild("pig_build")
inst:SetStateGraph("SGpigmanp")

You would need to add this to the master_postinit of your character prefab.

This mod added an own stategraph for the pigman player, if you want to use it only for yourself, you can take it, otherwise ask the mod creator if you can use it or use the normal stategraph of the pig, SGpigman, which could make some problems as I'm not sure if everything a player can do is defined there.

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this