Tranoze Posted April 10, 2021 Share Posted April 10, 2021 How to know if they are Default, Ornery, Rider or Pudgy beefalo on client side? Link to comment Share on other sites More sharing options...
penguin0616 Posted April 10, 2021 Share Posted April 10, 2021 (edited) 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 April 10, 2021 by penguin0616 1 Link to comment Share on other sites More sharing options...
Tranoze Posted April 10, 2021 Author Share Posted April 10, 2021 (edited) 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 April 10, 2021 by Tranoze Link to comment Share on other sites More sharing options...
Bigfootmech Posted April 10, 2021 Share Posted April 10, 2021 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. Link to comment Share on other sites More sharing options...
Tranoze Posted April 11, 2021 Author Share Posted April 11, 2021 17 hours ago, Bigfootmech said: From looking at the code... maybe: inst.tendency Read the title pls, "CLIENT SIDE". tendency is server side. Link to comment Share on other sites More sharing options...
Bigfootmech Posted April 11, 2021 Share Posted April 11, 2021 Ok, you don't have to be rude about it. I already took a while of my time to dig in to the code. And try to help with the ideas that I had, that weren't mentioned already :/ 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