Project Zomboid

Project Zomboid

Authentic Regional Police
49 Comments
KapitanSWAT  [author] 28 Jun @ 7:32am 
This mod doesn't change the spawn rates or spawning mechanisms for police cars. It only affects REPLACEMENT vehicles for when the game attempts to spawn a police vehicle - so the spawning itself is untouched, only the end cars are touched.
Sidney Boogins 27 Jun @ 7:04pm 
doesnt seem to work at all. Only police vehicles that spawn are parked usually in front of police stations, and this mod makes them like .05% chance of spawning at all. no other mods that touch vehicles or spawn rates at all besides bombs
KapitanSWAT  [author] 26 Jun @ 9:02am 
@𝔅𝔞𝔰𝔢𝔡
Yes, of course. It just won't apply to already-spawned cars, which will remain in vanilla 1:1 ratio between each law enforcement agency.
𝔅𝔞𝔰⁧⁧𝔢𝔡 26 Jun @ 7:46am 
can i add this mod mid play through?
Spiffo 25 Jun @ 11:55pm 
:spiffo:
KapitanSWAT  [author] 20 Jun @ 12:41am 
@-002- ゼロツー -002-
Week One doesn't interfere with this mod directly. However, to my knowledge, Week One significantly alters various spawning mechanisms, and thus may have reduced car spawns => less chance of finding police cars. It's worth nothing that for each parking spot designated as a police car spawn point, there is a 60% chance that the spawned car will NOT be a police vehicle.
My advice would be to turn up car spawns to at least "normal" (from the default "low") in Sandbox settings. You could also try increasing randomized road story chance, so that police roadblocks etc. have a greater chance to appear.
-002- ゼロツー -002- 19 Jun @ 2:49pm 
Is it compatible with the Week One mod? Cause either I have something broken, or Im EXTREMELY unlucky and hasnt found a single police car anywhere on the map. Checked literally every police station except for Louisville and hasnt found a single one of them, starting to think that Week One has messed with the mod in some way preventing the police cars from spawning. No Week One was fine and I found a State Trooper car at the first police station Ive visited. Idk, it could be just extreme unluck on my side, but still worth noting, I think
KapitanSWAT  [author] 11 Jun @ 6:57am 
Tl;dr there never will be a B41 version because B41 has no foundations for this mod to exist.

While I could just back port the skins from B42, there still would be no regional spawn replacement system in place that would allow for region-based police car spawning in B41. And wasting time on remaking this system while it exists already - among many other new and improved features - in a newer version of the game is not something I'm willing to do.
KapitanSWAT  [author] 11 Jun @ 6:54am 
@XBankaiX
Quote from the description of this mod:
"Notice: The mod relies fully and completely on systems and content that is provided with the vanilla version of Build 42, including all of the police vehicles mentioned in the description. All this mod does is adjust how common the specific law enforcement organizations are - nothing more, nothing less. "
XBankaiX 10 Jun @ 8:29pm 
Is their a B41 version ?
KapitanSWAT  [author] 9 Jun @ 7:08am 
@Lt.PepperOktober
I mean, towns don't have sheriff departments irl so it only makes sense for them to have "POLICE" signs. However, as of current (unlike in B41 where there was only generic "police" car), there clearly are police stations that are exclusively meant as sheriff stations - particularly the Rosewood station, but there are other ones like the one in Ekron (I think). There definitely should be more of a distinction between sheriff and police stations.
Lt.PepperOktober 8 Jun @ 6:24pm 
It's such weird that all the law enforcement agencies in Project Zomboid are labeled as "POLICE" even when most of them are located in rural areas,but thank god at least Louisville won't be flooded with state trooper's vehicles with this mod.
SunGod 30 May @ 9:19am 
Nice mod addition, love it for the extra touch of immersion. Some non-Americans can find the US's law enforcement jurisdictions a little weird, especially if they're from countries with a single national police force (which the US doesn't have). But yeah, it's a thing.
KapitanSWAT  [author] 21 May @ 12:27pm 
Currently I'm in the process of creating a Java-level mod that aims to improve all randomized stories by, among other things, tying spawned zombie outfits to vehicles spawned by a given story (that was actually the original idea I had in mind when I started working on that mod).
KapitanSWAT  [author] 21 May @ 12:25pm 
@Dobroslav
That's already a thing in vanilla. However, as it stands, sheriff zombies only spawn from randomized stories that spawn a police car (which gets replaced by a sheriff car, see description of this mod for exact replacement ratios). Furtbermore, not all randomized stories respect zombie types associated with a vehicle (the building ones specifically).
Dobroslav 21 May @ 12:05pm 
you can make mod for the police with clothes so that in the counties there are deputy sheriffs clothes and in the cities blue uniforms?
LosCartuchos5566 12 May @ 3:41pm 
ohhh i get it now
KapitanSWAT  [author] 12 May @ 5:40am 
@LosCartuchos5566
So for a start, in the United States there is no single centralized (federal) police force. Instead, every city, county, state and territory can have their own police force. What this means in practice is that a lot of smaller in scope law enforcement agencies (LEAs) exist in the US. Most can easily be classified as a city-, county- or state-level LEA. However, much more granural LEAs exist, like for example university police (maintained by the university it belongs to), port authority police (maintained by the port authority agency this LEA belongs), transit police, public schools police... Also, LEAs that cover multiple cities/counties exist.
Now how does this all relate to this mod? Whenever I use some name in the description, I mean a LEA that uses the naming convention that follows the given pattern. F.e. the "County PD" for "Louisville" region means PZ's "Louisville County PD", whereas "Sheriff's Office" usually refers to "Meade County SO".
LosCartuchos5566 11 May @ 1:37pm 
im confused with the county PD and sheriff's office thing
Jessie 7 May @ 6:00pm 
a shame the base game liveries look like they were made in MS Paint.
KapitanSWAT  [author] 23 Mar @ 1:06pm 
Yes
WLS 23 Mar @ 10:27am 
can it be added to current save?
KapitanSWAT  [author] 22 Mar @ 1:25am 
@storm
The mod will work with any and all mods that don't redefine the regional replacements for vanilla police vehicles. What that means is that:
a) Vehicle remover mods - that remove the vehicle(s) from the actual spawn table and not from spawn replacement table (which this mod uses) - will work just fine. However, in this case this mod is redundant, because it will have no effects due to there being no vehicle spawn calls it could intercept.
Also remember that randomized road stories (police blockades in particular) may still call for vanilla vehicles regardless of mods you enable, so if the mod in question is not a good vanilla vehicle remover, my mod may still be needed for the increased immersion.
b) Mods that adjust spawn rates of vanilla vehicles - i.e. edit the "real"/actual spawn table - will also work as intended. How that relates to my mod? The effects will be limited, because of fewer vanilla vehicle spawns, but once they do spawn, the mod will have full effects.
storm 21 Mar @ 4:18pm 
@KapitanSWAT so.. does this mod work with vanillia vehicle removers and ones where they adjust the spawning of vehicles..
KapitanSWAT  [author] 20 Mar @ 11:41am 
@Loccatpowersdog
Thanks for the idea, I'll do it ASAP
Loccatpowersdog 20 Mar @ 10:50am 
Dude you should pin all that breakdown into a Discussion, super helpful and relevant info both about the mod and the game with spawning.
Hellstorm901 20 Mar @ 5:38am 
@KapitanSWAT

Thanks for the answer. This whole new region spawning system is amazing and it is nice that you can make a mod like this without it just ending up as a flat out replacer overriding custom vehicles
slhirst92 19 Mar @ 11:32am 
man this mod looks great. i have been looking for something to go along with my military spawn zone mod
KapitanSWAT  [author] 19 Mar @ 9:57am 
I hope this explains the situation (I probably spent more on this explanation alone than I did actually making this mod lol)
KapitanSWAT  [author] 19 Mar @ 9:56am 
So does it affect modded vehicles or interfere with them at all? (aka tl;dr)
Short answer: No.
Long answer: All this mod does is redefine the entries for police Chevalier Nyala and police Dash Bulldriver in the profession vehicles system, which I doubt many mods will alter. Police vehicle mod authors should still add them to the actual vehicle spawn table so that they can actually fine-tune their spawn rate, although this "old way" means that modded police cars can't spawn as part of police roadblocks (which the new system allows to, as it affects all means of spawning vehicles, including road stories).
KapitanSWAT  [author] 19 Mar @ 9:56am 
But how exactly does the game handle those replacements?
To put it simple: The game still only "spawns" the old, generic Chevalier Nyala and Dash Bulldriver police vehicles - nothing changed in that regard. However, as I already mentioned, the spawns get, so to say, intercepted by the new system, independent from the actual vehicle spawn table.
Basically, where in B41 you'd see the generic police vehicle spawn, you'll now see one of the new police vehicles taking its place. The new vehicles (each of them has its own vehicle class) don't actually "spawn" in the world, and without the dynamic spawn replacement you'd still only see the old, generic police cars.
KapitanSWAT  [author] 19 Mar @ 9:56am 
How the system actually works
A LUA script is in place that runs the moment the game attempts to spawn a vehicle. The script looks for the vehicle class (i.e. model, which may be f.e. a Chevalier Nyala) in a special table, and then for the region the spawning takes place in. If the script finds the vehicle's class in the table, it then proceeds to look for a defined spawn region. For each region there is a set of replacements for the vehicle class, and the game randomly picks one from a table containing all possible replacements. Unfortunately, the system doesn't allow defining weight for each replacement entry, and that's the reason I made this mod. To make it I simply added duplicate entries to those tables, thus increasing chances of specific police departments being spawned.
KapitanSWAT  [author] 19 Mar @ 9:55am 
@[RIP] Hellstorm901
Looks like it's high time I explain the system in depth, start to end (tl;dr in the top most comment):

Introduction
Build 42 added the following:
- "regions" , which are - from a technical point of view - zones like any other, simply covering a much greater area than the usual zone; the meaning of a "zone" in this game's sense is f.e. a parking area (where cars can spawn), traffic jams, areas where zombies of specific outfit types spawn, etc.;
- profession vehicles , including regional ones like police cars - pretty self-explanatory, they're vehicles with a livery appropriate to the region they spawn in (f.e. Muldraugh, West Point, other towns/counties - see above for definition of a "region").
Seems pretty simple, right? Well, no. The system is much more than it sounds.
Hellstorm901 19 Mar @ 8:10am 
Not that many of the Police vehicle mods have been brought to B42u yet but out of curiosity how does this mod work with police vehicles mods. If this mod alters the sort of "loot table" for what police vehicle can spawn in zones designated as police vehicle spawns would this override a custom police car or would the custom police car just have a chance to spawn based on whatever type of vehicle it was based on?
KapitanSWAT  [author] 19 Mar @ 2:25am 
@RayPlayST
Sorry to break it to you, but this mod doesn't adjust how often police cars spawn. This mod affects police cars when they actually spawn - so primarily on random police roadblocks.
Police stations have a notably low spawn rate for police cars - the chance is 40% for a car spawned in a location defined as a police car zone to be a police car, instead of a civilian car.
RayPlayST 19 Mar @ 2:15am 
太好了! 我经常在警察局附近都找不到警车 太奇怪了!
KapitanSWAT  [author] 19 Mar @ 1:41am 
Sorry meant impossible in B41*
KapitanSWAT  [author] 19 Mar @ 1:41am 
@Tanvex
How? B41 has no regions defined, no region-based profession vehicle system in place that would allow to dynamically replace the generic vehicles, and most importantly - it has no regional police vehicles. Backporting vehicles from the unstable to stable version is much more work than one would think, because it also requires clothing items, loot distribution files, etc. Also one has to consider some vehicles may be bugged (f.e. pickup van has no working lights texture).
Tl;dr it's too much work that might as well be an attempt at something that's simply impossible in B42.
Tanvex 18 Mar @ 10:57pm 
Can you make it work for B41?
RejSende 17 Mar @ 7:58am 
@KapitanSWAT Thank you, this is useful information. And you're welcome :)
KapitanSWAT  [author] 17 Mar @ 6:56am 
@RejSende
It's fine. In my response I just wanted to clarify zombie spawns near cars are a general thing in PZ, and that the devs have already defined them for each car.
Also apprecaite the kind words :)

P.S.:
Took a deeper look at the zombie type definitions for each car. It's quite simple actually:
City, town and county police vehicles all use the standard police outfit definition. However, the SWAT van uses a special definition (one that doesn't spawn anywhere else, not even on police roadblocks).
Sheriff cars use a sheriff deputy outfit.
And finally, state police uses the state police outfit (i.e. the grey one).
RejSende 17 Mar @ 6:10am 
@KapitanSWAT Sorry if this was off topic, wanted to clarify this small detail. Nevertheless, thank you very much for your reply. I will definitely include your mod in my selection, thank you for doing this :FH5Kudos:
KapitanSWAT  [author] 16 Mar @ 1:02pm 
@RejSende
It's not a question specific to this mod (I only change how common specific police departments are), but the answer is yes. Even further, PZ devs have defined a specific outfit for each vehicle, although the outfits are generic, and only denote whether it's a sheriff, state or local police.
RejSende 16 Mar @ 10:13am 
Police zombies also spawns next to cars?
KapitanSWAT  [author] 16 Mar @ 1:36am 
@[DATA EXPUNGED]
Yes. However, only police vehicles spawned after enabling this mod will be affected. The way the system works is that it dynamically replaces vehicles when they spawn.
[DATA EXPUNGED] 15 Mar @ 5:26pm 
Can this mod be enabled on an active save?
R o c k y J e t 15 Mar @ 4:48pm 
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
KapitanSWAT  [author] 15 Mar @ 12:02pm 
@Rachel L
Yes, the mod will work with any mod.
Usually mods that add new cop cars add them to the regular vehicle distributions file (the B41 way), so there's no risk of incompatibility.
Rachel L 15 Mar @ 10:40am 
Would this work with mods that add new cop cars?