Tamed animals do not nuzzle colonists (+ fix).

Started by Britnoth, October 27, 2015, 11:50:17 AM

Previous topic - Next topic

Britnoth

Circumstances: Every game with pets.

What happened: Pets never nuzzle the colonists.

What you expected to happen: They nuzzle colonists giving them a mood boost.

How we can reproduce the bug:

The class jobgiver_nuzzle has the line

where p.RaceProps.Humanlike && p.SpawnedInWorld && p.Position.InHorDistOf(pawn.Position, 15f) && pawn.GetRoom() == p.GetRoom() && !p.Position.IsForbidden(pawn) && !pawn.CasualInterruptibleNow()

!pawn.CasualInterruptibleNow() appears to mean it only checks for a pawn to nuzzle that is NOT in a position to be interrupted (and therefore nuzzled)?

Changing this to pawn.CasualInterruptibleNow() allows pets to nuzzle colonists as often as it seems intended.

TLHeart


Britnoth


mew_the_pinkmin

How can i edit this file? Do i need a program i looked at it through notepad and couldnt make sence of anything. Plz help meh
NoBadOrganThoughts        BigBatteries        PlantSaver

skullywag

The "fix" is for the devs, bar modding there isnt a way to fix this...
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Britnoth

I may as well post this here in case anyone else wants it?..

It only changes the animal thinktree to point to a different class with the nuzzle checking fixed.

[attachment deleted due to age]

harpo99999


RickyMartini

Quote from: Britnoth on November 10, 2015, 07:08:28 PM
I may as well post this here in case anyone else wants it?..

It only changes the animal thinktree to point to a different class with the nuzzle checking fixed.

Excellent, thank you Britnoth.

ison