Author Topic: Survivor who threatens counts as innocent  (Read 624 times)

Offline YourCompanionCube

  • Zombie Food
  • *
  • Posts: 12
    • View Profile
Survivor who threatens counts as innocent
« on: February 21, 2017, 05:32:02 PM »
0.C-gca81eacf2f
Tiles
Windows 10 Pro

pretty much what it says, after a survivor threatened me i drop my weapon and draw my rifle and blow his head off and i get the "killed innocent" morale debuff is there anyway to track what kind of survivor they are without them being hostile?

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5588
  • I code dead people.
    • View Profile
Re: Survivor who threatens counts as innocent
« Reply #1 on: February 22, 2017, 06:01:28 PM »
This is a known issue and unfortunately difficult to address, the simple solution of marking the npc as being hostile actually causes the npc to attack you instead of mugling you.  There needs to be Some fairly lengthy overhaul of NPC air to fix this.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline YourCompanionCube

  • Zombie Food
  • *
  • Posts: 12
    • View Profile
Re: Survivor who threatens counts as innocent
« Reply #2 on: February 26, 2017, 06:01:24 PM »
ah ok i will just have to remove the morale debuff in the .sav each time then :(

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5588
  • I code dead people.
    • View Profile
Re: Survivor who threatens counts as innocent
« Reply #3 on: February 27, 2017, 12:28:11 AM »
Sorry about the inconvenience, this is the first project I've worked on where it's so complicated that you can know exactly what is causing a problem, but be unable to fix it because the surrounding code is so complex and fragile.  We're working on making that better, but the NPC code in particular is held together with duct tape, spit, and good intentions.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline Szara

  • Zombie Food
  • *
  • Posts: 71
    • View Profile
Re: Survivor who threatens counts as innocent
« Reply #4 on: March 07, 2017, 01:29:15 AM »
I'm not that familiar with Cata's coding, but could it be fixed by setting a 'mugging' attribute on the NPC to 1 (or whatever) when they take the mugging action, and have the killed innocent check look for it? It'd be like the ethical hp of the NPC!
It's the end, the War has been lost,
Keeping them safe 'till the river's been crossed.
Not a battle, but a holding action!
Holding their ground to the final platoon,
Hurry Up! We're waiting for you!
Men of the 9th and civilians too.

Offline StopSignal

  • Survivor
  • ***
  • Posts: 3431
  • Never stop drawing!
    • View Profile
    • You can see my drawings here!
Re: Survivor who threatens counts as innocent
« Reply #5 on: March 07, 2017, 06:15:49 AM »
I always was curious about that. By my only year of coding knowledge it looks like that kind of stuff would be relatively easy to check, why wouldn't you be able to just do that? I know it's not the best way to implement it, though. It'd be more hardcoding. Honest question, really curious about it.