Page 1 of 1

[0.14.4] Guards don’t attack when killing citizens in lycan form [DUPLICATE]

Posted: Sun Oct 23, 2022 2:18 am
by Vorzak
Guards don’t spawn or attack when murdering citizens in lycan form like in classic DF.

Transforming into lycan form, killing a citizen, then transforming back to human all in a crowd of citizens doesn’t do anything. But I can kill in human form and it works fine, guards spawn in and attack.
I tested this with all mods disabled and quest packs removed.

Just seems odd and would like to know if this is intended or a bug.

Thanks.

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Mon Oct 24, 2022 6:36 pm
by Vorzak
Edit:

I experimented in classic DF and guards do indeed spawn and attack when killing in wereform.
So, guards not attacking in wereform in DFU is either a bug or an intended change.

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Mon Oct 24, 2022 9:20 pm
by Interkarma
Hey there, thanks for raising.

It's definitely not intended for this happen, and was working normally when I built out lycanthropy. No doubt a regression caused by a later commit. I'll pop this into issues and address when I can.

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Mon Oct 31, 2022 10:48 pm
by Vorzak
Quick update: Guards apparently disappear after killing one in wereform.

So, kinda odd update to the bug here. In a neighboring region to my home I was killing some random citizens in normal human form, a group of guards attacked, I refused to surrender to them and proceeded to attack them and killed a few. I changed into wereform, but the instant I killed another one of the guards, all the other guards disappeared and they stopped spawning in until I change back to human and commit another crime. It’s like crimes in wereform cause the crime system to disengage? I don’t know.

Just thought I’d mention this little discovery.

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Tue Nov 01, 2022 12:13 am
by Interkarma
Thank you! Yes, I suspect it's to do with guard despawning behaviour on crime state being cleared. It's meant to only despawn guards when player runs out of town and active crime state drops, but it's probably happening with lycanthrope as well as they technically can't accrue crime.

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Sun Dec 04, 2022 2:17 pm
by Gimli
Is this something that can be fixed? I'm also having the same issue :(

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Mon Dec 05, 2022 10:32 am
by Jay_H
Hello! Once a topic is moved into "Issues," it has a commitment to be fixed once a dev has sufficient time for it :)

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Fri Dec 16, 2022 6:33 am
by JorisVanEijden
Is comitting a crime while in lycan form supposed to clear any previous crime you've committed?

Because that's what the current code does.

And being cleared of a crime despawns the guards.

So ignoring new crime while in lycan form rather than clearing you of your current crime would at least partially solve this issue right?
That is a very easy code change. Or am I overlooking anything?

Re: [0.14.4] Guards don’t attack when killing citizens in lycan form

Posted: Sun Dec 18, 2022 8:41 pm
by Interkarma
Lycan's don't accrue any crime. This conflicts with classic guard despawn behaviour when crime state is lowered.

I'm fully aware of what's causing the problem guys, I just haven't gotten around to fixing this in a way I like yet. Cheers.