Author Topic: Serums not working on NPCs  (Read 310 times)

Offline Azrad

  • Survivor
  • ***
  • Posts: 2115
    • View Profile
Serums not working on NPCs
« on: April 14, 2017, 12:40:06 PM »
What should I do? Way back then, once your survivor was able to give mutagens to NPCs, I remember getting the NPC to hit the cattle mutation threshold as a test.

Now, I can't seem to do it. They take their mutagen just fine, but if I try to give them the serum (with a syringe given to them via trade) they seem to think that I'm giving it to them as a weapon and would not consume it.

If I use debug to spawn a serum in the inventory without a container, then give that to the NPC, they take and use the serum, so what gives? Is it due to the containers behaving oddly or something with serum?
Strawberry Surprise: it's a meal, drink, morale booster, painkiller, ethanol burner fuel, and coping mechanism in one gulp!

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3547
    • View Profile
Re: Serums not working on NPCs
« Reply #1 on: April 15, 2017, 03:02:00 AM »
It should work as with mutagen. Must be a bug then.

Or possibly mods. Are the serums from the core game or a mod?

Offline Azrad

  • Survivor
  • ***
  • Posts: 2115
    • View Profile
Re: Serums not working on NPCs
« Reply #2 on: April 15, 2017, 04:18:02 AM »
It should work as with mutagen. Must be a bug then.

Or possibly mods. Are the serums from the core game or a mod?

Core game.

The mutagens works. For the serum, they just seem to think that I'm giving it to them as a weapon. I've given them a syringe through trade, and also took the weapon they're wielding, and when I give them the serum they start wielding it as a weapon. If I give them back the weapon they were wielding they don't do anything with the serum.

I used debug to wish for a serum that's not in a container, and giving it to them makes them use it.
Strawberry Surprise: it's a meal, drink, morale booster, painkiller, ethanol burner fuel, and coping mechanism in one gulp!

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3547
    • View Profile
Re: Serums not working on NPCs
« Reply #3 on: April 15, 2017, 04:53:35 AM »
What happens if you give them a weapon first and then hand them a serum?

Offline Azrad

  • Survivor
  • ***
  • Posts: 2115
    • View Profile
Re: Serums not working on NPCs
« Reply #4 on: April 15, 2017, 06:06:50 AM »
What happens if you give them a weapon first and then hand them a serum?

The NPC reply is that their current weapon is better than the serum and its container.
Strawberry Surprise: it's a meal, drink, morale booster, painkiller, ethanol burner fuel, and coping mechanism in one gulp!

Offline Noctifer

  • Survivor
  • ***
  • Posts: 2509
  • Evening Star
    • View Profile
Re: Serums not working on NPCs
« Reply #5 on: April 15, 2017, 08:54:13 AM »
Have you tried the "use item" section of the menu you get when you bump into NPCs?
May mother Venus guide us all!

...Noctifer's incredibly loot bloated Survivor Emcampments™...

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3547
    • View Profile
Re: Serums not working on NPCs
« Reply #6 on: April 15, 2017, 09:13:38 AM »
Found the reason:
NPC consumption code checks for food, but serums stopped being food. Mutagens are still food (and not meds), that's why they work.

Offline Orca

  • Zombie Food
  • *
  • Posts: 14
    • View Profile
Re: Serums not working on NPCs
« Reply #7 on: April 16, 2017, 02:37:50 AM »
Cool! I ran into this bug too and assumed that serum use on NPCs just wasn't part of the game. While we're at it, is there some bug or incompetence on my part that's preventing me from installing bionics on my party members? Because I've assumed that's impossible, too.

Offline Orca

  • Zombie Food
  • *
  • Posts: 14
    • View Profile
Re: Serums not working on NPCs
« Reply #8 on: April 19, 2017, 11:45:46 AM »
Has this bug been fixed? I don't see it in the changelog here: http://ci.narc.ro/view/Cataclysm-DDA/job/Cataclysm-Matrix/changes

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3547
    • View Profile
Re: Serums not working on NPCs
« Reply #9 on: April 19, 2017, 11:52:35 AM »
Not yet