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

Locked
Vorzak
Posts: 38
Joined: Wed Jun 29, 2022 5:30 pm

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

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

Vorzak
Posts: 38
Joined: Wed Jun 29, 2022 5:30 pm

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

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

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

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

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

Vorzak
Posts: 38
Joined: Wed Jun 29, 2022 5:30 pm

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

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

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

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

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

User avatar
Gimli
Posts: 1
Joined: Sun Dec 04, 2022 2:10 pm

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

Post by Gimli »

Is this something that can be fixed? I'm also having the same issue :(
“Nobody Tosses A Dwarf!”

Image

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

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

Post 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 :)

User avatar
JorisVanEijden
Posts: 114
Joined: Mon Aug 12, 2019 5:02 pm

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

Post 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?

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

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

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

Locked