Jump to content

Recommended Posts

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.

Edited by penguin0616
  • Like 1
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

From looking at the code... maybe:

inst.tendency

From

scripts/prefabs/beefalo.lua:482

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

And

scripts/prefabs/beefalo.lua:306

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

And

scripts/prefabs/beefalo.lua:1022

    inst.tendency = TENDENCY.DEFAULT

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

Alternatvely,

scripts/prefabs/beefalo.lua:623

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

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

scripts/components/domesticatable.lua:30

    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

https://dontstarve.fandom.com/wiki/Beefalo

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.

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...