Project Zomboid

Project Zomboid

Take No Prisoners (Hostile NPC's with PZNS framework)
93 Comments
tusyok 28 Dec, 2024 @ 10:22am 
For some reason, I cannot spawn any type of enemies which this mod adds using debug menu (however, default PZNS raider can be spawned through native PZNS mod menu).
Tried running just pzns and this mod and resubscribing anew to no avail.
Could you please advice what might be the culprit? Thank you.
brutetooth 26 Dec, 2024 @ 12:36pm 
Any plans to update this or the framework for B42, really enjoyed this mod.
Holy Nut 22 Dec, 2024 @ 7:18pm 
So does this mod require the framework mod to be activated or no? Same with fanatic addon
Hunterr 27 Jul, 2024 @ 6:42am 
The problem about current npc mods are that it lets the game lag (sometimes like hell).
oZumbiAnalitico  [author] 11 May, 2024 @ 5:06pm 
@NotYourTito
hmm .. not sure anymore, I think it was because of errors, or invincible npcs, or npcs with inconsistent range. The guns itself isn't a problem tho, you just need to use a mod to convert vanilla to brita's.
NotYourTito 8 May, 2024 @ 10:37pm 
I saw an earlier comment that this mod has a conflict with Brita's. Is the conflict npcs not spawning with the Brita guns or does it cause actual function problems with either mod?
MarBl 26 Apr, 2024 @ 12:59pm 
Oh, that is an amazing surprise - that's really appreciated! No need to apologise for being "late", don't be silly!
oZumbiAnalitico  [author] 26 Apr, 2024 @ 12:50pm 
@Spodey
Sorry for the late update, should be fixed by now ... actually was quite simple, I was checking the variable options on file load, before the mod options load, now the check is on game start, and that should fix the issue (I hope).

You can re-enable the "PZNS movement fix", there is no relation between them.
MarBl 18 Apr, 2024 @ 4:16am 
Well, in the end I modified the enemy definitions in the CONTENT folder to just change the clothing and weapons of the hunters / militia etc to something that made more sense for my modlist (Last of Us themed :P).

Now everything is working great, and I have enemy AI randomly in the world without the bugs of Superb Survivors. Your mod is a godsend!
MarBl 16 Apr, 2024 @ 3:11am 
Thanks so much!

In the end, I managed to stop the spawns.

I don't know what exactly it was, but it seemed that starting a new game, and disabling the PZNS movement fix, then loading my old save is what did it.

I can't be quite sure, since I was just trying out a new game to test it there, with only this mod and PZNS - then I realised it was suddenly working.

However, when I tried to enable hunters, but leave the others disabled, prisoners started appearing again.

I know PZNS isn't your mod - just as an aside, for some reason PZNS Raiders do nothing, just stand on the spot and attack you if you stand close enough.

PZNS survivors usually just stand in their spawn tile doing nothing too, but once in a blue moon they start walking around. As soon as you attack them and they become hostile, they stop on the spot and will never move again.

The NPCs in your mod work perfectly, however, besides from the awkward melee movement that seems to come from PZNS.
oZumbiAnalitico  [author] 15 Apr, 2024 @ 1:17am 
@Spodey
Sorry, you just need to reload your save, return to main menu and load again, because this options is checked after you click "Click to Start" screen. ( Yes, to disable the boxes should be ticked )

Definitively they shoudn't been spawning, I will fix that bug on next update.
MarBl 14 Apr, 2024 @ 5:00am 
Just to be sure, the three tick boxes should be TICKED, in order to DISABLE spawns, right? :P
MarBl 14 Apr, 2024 @ 4:49am 
Hi Zumbi, do you mean you need to generate a new savegame? Or just restart the game application? Or maybe just reload the save from the menu?

I ticked all 3 options off before I ever loaded my save with this enabled, but the only spawns I have had are orange jumpsuit enemies with shotguns and pistols.
oZumbiAnalitico  [author] 14 Apr, 2024 @ 1:56am 
@Spodey
That option need restart the save to apply, but I will check it out, thx for report.
MarBl 13 Apr, 2024 @ 9:04pm 
For some reason, I'm getting enemies with guns spawning in, even with all 3 of their options disabled. They seem to be randomly spawning in the world, too, not just buildings. I restarted after enabling the option multiple times, and have killed a few of them to make sure they weren't old spawns.
ショーン(sean) 2 Mar, 2024 @ 7:05am 
Noted, cheers mate.
oZumbiAnalitico  [author] 2 Mar, 2024 @ 1:29am 
@ショーン(sean)
Currently the Brita's weapons conflicts with the mod so I don't recommend. But you can use Firearms B41 and VFE.

@Bunnies&Cherris
Don't know, although it's compatible with the "Equipment UI - Tarkov Style", I believe it's safe.
ショーン(sean) 1 Mar, 2024 @ 11:32pm 
Question:
Can these NPCs spawn with custom weapons like Brita's weapon pack?
oZumbiAnalitico  [author] 1 Mar, 2024 @ 2:44am 
@BendakSK
Thanks! You're welcome, any issues feel free to report.
BendakSK 29 Feb, 2024 @ 1:01am 
@oZumbiAnalitico
Awesome, thanks for the information! Made sense, after looking at the lines in the lua file that were in the error log it seemed to be a backpack thing. I disabled Authentic Z (Backpack only) and the error has stopped. Out of all the mods I have that was the only one that I needed to turn off, only used it for flashlight slot anyhow. Amazing work on this! (And to PZNS of course)

Took me a bit to realise the area needs to be cleared well enough to spawn raiders, mostly because I didn't actually realise how big a cell is! Once the mechanics and settings were fully understood (and error taken care of) everything works flawlessly. IMO this is easily in the top 5 PZ mods.

Anyhow, cheers and thanks for all your work on this!
oZumbiAnalitico  [author] 28 Feb, 2024 @ 9:57pm 
@BendakSK
Mods that change the inventory system, interface mods could conflict as the error messages points out.
But if you're using split screen multiplayer that could be the problem, the PZNS don't give support and I will do limited support as I'm interested in solving other issues.
You can send me the mod list, or collection link anyways, I will take a look.
BendakSK 28 Feb, 2024 @ 8:25pm 
Having trouble with this returning an error on singleplayer/local split screen. Error comes up once the raiders come and then it causes glitches (inability to use items or bandage etc). Dont see any other mods that it would conflict with except maybe horde night? I have about 50-60. Most of the popular ones.

Error is: `attempted index: lootInventory of non-table: null
function: PZNS_AddNPCInv -- file: PZNS_NPCInventory.lua line # 10 | MOD: PZNS_Framework

Any help is appreciated! This is a great mod, amazing work! Would love to sort the glitch out.
oZumbiAnalitico  [author] 27 Feb, 2024 @ 8:29pm 
@Charlie
Please, try unsubscribe and subscribe again, the steam update isn't reliable.
I strongly recommend to backup your save file before adding this mod to your old saved game.

I created a minimalist mod collections for VFE and Firearms B41 ( https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3169699280 ). I'm pretty sure they work together, as I created a new save and tested killing some of raiders npcs and they take damage as expected. Add other mods with caution.

I recommend to disable firearm weapons mods that don't belong to this list until I figure out if they are compatible. I believe that map mods and vehicle mods are safe. Not tested all of the interface mods, but I believe they are safe too.

I don't recommend "Brita's Weapons Pack + Improved Projectile" for a while, as the PZNS Framework is popping "red boxes".

Saying this, I'm still working on compatibility issues and I will create minimalist collections for popular mods.
Charlie 27 Feb, 2024 @ 8:05am 
@oZumbiAnalitico
There's still the issue of the npcs not being targetable by firearms.
Also, when they last spawned in, I could not target them with a melee weapon before they started shooting (which led to my base being burnt down because of incendiary shotgun ammo, rip).
oZumbiAnalitico  [author] 26 Feb, 2024 @ 5:43pm 
@Charlie
Done, you can check the "update tab" for details. I will appreciate if you send me a feedback, if it worked or not, will help others with same issue. Thx.
oZumbiAnalitico  [author] 26 Feb, 2024 @ 8:49am 
@Charlie
It's the Improved Projectile, there is an option PVP Ignore Safety Button which must be checked, use the mod Change Sandbox Options and check this option, I usually check the option friendly fire for npcs too, as you are using this mod should be easy to avoid hitting your npc friends.

I will update my mod to automatically set this option, but for a while you can set that option manually.
Charlie 26 Feb, 2024 @ 2:59am 
@oZumbiAnalitico
It's most likely hidden because I only created it yesterday and Steam needs to check it. I'll confirm it's public and hopefully it's visible soon.

I don't have Brita's weapon pack and I do use the Improved Projectile mod. I have VWE and a couple others but I haven't heard of any issues with those.
oZumbiAnalitico  [author] 25 Feb, 2024 @ 10:26pm 
@Charlie
I can't access the collection, it's private?
That issue must be on some weapon mod, if it's brita you can use the Improved Projectile mod, if something else I need the mod list, at least the weapons mod used.
Thanks for reporting.
Charlie 25 Feb, 2024 @ 6:54am 
I'm not sure which NPCs they are but I'm also getting attacked by invincible gunmen, my firearms don't seem to affect them and I don't know what could be causing this.
watsonseat 24 Feb, 2024 @ 7:30pm 
Alright thanks, I'm pretty sure it was the field NPCs that screwed me over.
oZumbiAnalitico  [author] 24 Feb, 2024 @ 12:50am 
@watsonseat
You can disable the milita raider npc in mod options now. It will disable only the field spawner which is the raider spawning system. But they still can spawn in buildings, so beware.

Note: I recommend to disable the "militia npc" if you are using the Brita's Weapons mod (Brita's mod + Improved Projectile), because the M14 and M16 range increases considerably and they shoot without sound.
watsonseat 20 Feb, 2024 @ 6:58pm 
The Militia NPCs are too hard, The Prisoner/Thug NPCs and fun and provide a challenge to my game, (the hunter NPCs never showed up). The Militia NPCs just storm into my compound and kill all my NPCs, then snipe me before i can get my rifle.The Militia NPCs armed with M14/M16s is a interesting idea for the quests but for the traditional raid i'd rather just stick to the prisoners and the thugs.
oZumbiAnalitico  [author] 20 Feb, 2024 @ 5:06pm 
@Space
depends ... programming npcs behavior in lua kill performance, inevitably ... but I put some options to avoid problems, like max number of active npcs, and prevent spawn on cells with more than "zombie tolerance" value, this variable is 20 by default. If you experience issues you could set zombie tolerance to 10 or less so they only spawn on zombie-free cells, like your home.

To access options use "mod options" mod and go to mods tab on main menu.
space is cool 20 Feb, 2024 @ 1:48am 
does this wreck performance?
oZumbiAnalitico  [author] 13 Feb, 2024 @ 11:45pm 
@ElConvict
They spawn around you, but once spawned they will be managed by the framework until you quit the game or kill them. So if they spawn and and you run away and return back you can still find them.

There is no background simulation for NPCs, so you will find them exactly in the despawn location.
ElConvict 13 Feb, 2024 @ 7:43pm 
So does this exclusively spawn them around me, or can I bump into these NPCs out in the wild?
oZumbiAnalitico  [author] 11 Feb, 2024 @ 3:54pm 
@austin_scott
Assuming you are using some mod which changes the weapon damage on player, the solution should be the same for Bianka, although if you are using some other mod, ask for the mod creator to add a compatibility patch for NPCs.

If so, it will help listing the weapon mods you are using.

I'm avoiding the pain at all cost hehe, but if necessary I can find a way to patch myself, your feedback is important, thx!
oZumbiAnalitico  [author] 11 Feb, 2024 @ 3:54pm 
@Bianka Ataegina
Hi, It's an incompatibility, every mod that changes how weapon damage works on players will probably need a compatibility option to work on npcs. And it's easier to ask for the "weapon mod" creator for compatibility patch, because the function is defined on "weapon mod", just ask for NPC damage compatibility.

The good news is that there is a mod which solve this issue somehow, search for "Improved Projectile", and uses if necessary the mod "Change Sandbox Options (by Star)" to change sandbox options in-game (I believe it's necessary to change things in PVP section, not sure though).
The "not so bad" news is that you will need to use "Improved Projectile" mechanics.
In addition I recommend the mod "Simple Convert to Brita SRC" mod to convert the vanilla weapons dropped by the npcs.

I tested it right now, so it works, but tell me if the issue persist.
austin_scott 9 Feb, 2024 @ 7:33am 
Getting raided by invincible prisoners
Daiwa Scarlet 8 Feb, 2024 @ 10:50am 
Just tried your mod, and raided by around 10 prisoners. As a first test, I activated God Mode and spawn myself a Glock from Brita's mod. Somehow I can't even shoot at them, even though I already at level 3 Aiming. I can kill them with melee weapon, but not firearms. Any thought?
ANKARA MESSI 26 Jan, 2024 @ 5:34pm 
thanks for the help, ill keep talking in the creating enemy addong discussion
oZumbiAnalitico  [author] 26 Jan, 2024 @ 12:28pm 
@duende pablo
No and yes, you can create a function to randomize the outfits in lua, is not so difficult if you know, just use the ZombRand function on a table of predefined outfits. There is a function to construct the survivor with an outfit just by the name, you should find it on PZNS Framework, so you should find the right names and create a random function to select one randomly. I'm not aware if there is an easier way.
ANKARA MESSI 26 Jan, 2024 @ 8:33am 
im trying to create my own enemies, is there any way to randomize the clothes they spawn with?
MariusTitus 26 Jan, 2024 @ 6:17am 
Thank you.
oZumbiAnalitico  [author] 26 Jan, 2024 @ 3:56am 
@MariusTitus
Hi, it's mixed, for example if you set 10h the raid could spawn 9 or 11h, but I could set an extra option in the next update.
MariusTitus 26 Jan, 2024 @ 12:51am 
Is there a way to set this to spawn enemies with some random chance? Right now it seems it's set to spawn after x amount of hours.
oZumbiAnalitico  [author] 22 Jan, 2024 @ 9:20am 
@Mikhaleech
The restriction should be working now, just set the zone for your base. But any issues just say.

@Moxxie The Imp
Unfortunately I have no plans for mp, not yet at least.

@blackhawk700
The Armed Squad is an addon for this mod, eventually I will detach it. I will add this option on next update, meanwhile you can increase the spawn period in mod options section, but disabling on mid game is safe.

For stucking issue, sometimes the npc don't finishes his animation and freezes, they leave this state eventually or if you shoot then, I still working on a better solution, be patient. If the behavior becomes too awkward I recommend to set the options to default and limit the framerate to 240 fps or less.
Mikhaleech 15 Jan, 2024 @ 2:26am 
Please add the restriction for NPC to spawn at designated home zone!
Alcoholic Beezlebub 28 Dec, 2023 @ 8:16am 
this looks soo cool will it be tested for MP by chance anytime soon? would love to add this to a server a friend of mine hosts been seeing it around on the workshop
blackhawk700 13 Dec, 2023 @ 5:57am 
gun* mod spawn rate* -- and also with this mod disabled, you cant run the squad addon... hmm