Jump to content

How to know which type of a tamed beefalo client side?

Recommended Posts

3 hours ago, penguin0616 said:

Visually, the facial expression of the beefalo.

Programmatically, you'll most likely have to read the AnimState of the beefalo and figure out what corresponds to what.

problem with animstate is when use skin, no matter what type of tamed beef, the skin remain the same, so cant use that.
Same with Visually, cant detect which type of beef when they use face skin

Edited by Tranoze
Link to comment
Share on other sites

From looking at the code... maybe:




local function SetTendency(inst, changedomestication)
    -- tendency is locked in after we become domesticated
    local tendencychanged = false
    local oldtendency = inst.tendency



        if not inst.components.domesticatable:IsDomesticated() or not inst.tendency == TENDENCY.ORNERY then



    inst.tendency = TENDENCY.DEFAULT

try and see what <BEEFALO>.inst.tendency looks like.



            inst.components.domesticatable:DeltaTendency(TENDENCY.PUDGY, TUNING.BEEFALO_PUDGY_WELLFED * -data.delta)

inst.components.domesticatable = scripts/components/domesticatable.lua


    self.tendencies = {}

Try to see what <BEEFALO>.inst.components.domesticatable.tendencies looks like.

If this doesn't work, maybe try to find how much damage the beefalo can do, as that would encode for its tendency


Finally, I don't think either the Beefalo Widget, or Easy Domesticate mods show this.

But they might put you on the right track / give you more code to play with.

Link to comment
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

  • Create New...