Probably a lot of people are annoyed or confused by the modern system of death and search zombies.
More precisely, there is no search - all the things that are on the zombie just scatter and fall down next to the body.
The reanimation of zombies creates a rather funny situation when a zombie soldier loses all his armor, but standing up again has the same armor and appearance as before.
Moreover - such a problem leads to interesting situations, such as mass ramming of a crowd of zombies, and the subsequent “cursory” search of the place through the “V”, with the display of everything that fell out.
I have a suggestion on how this could be fixed, but I don’t know how hard it is to implement.
I think all of the above written (and unwritten) problems could be solved by adding a “Corpse Search” mechanic that could work similarly to “butchering”.
How does butchering work?
After death, we can interact with the corpse in order to dismember it. We see a modal window that offers us a choice of several options for carving - the possibility of doing this depends on the tools we have and a suitable environment (a flat surface, or special racks), and depending on the survival skills we get different items, depending on the corpse we have carved.
The body, in this case, is the carrier of meat, bones, and organs.
In the same way, you can also redo the search of the corpse. Now about the flow itself.
The player kills the zombie and sees only the corpse. To see the things that fell out of the zombie, the player must go to the corpse and search it. When searching a corpse (the mechanics of activating something or cutting up a corpse), the player will see a window with a choice of how detailed the search will be - a pocket search, a top coat search, and a detailed search. You can think about this in more detail, it’s not that important right now.
Each of these types of searches has its own spaw_item_group which will be tied to the type of corpse (zombie, in our case).
Pockets search will show only those things that can be in pockets - some small amount of things, gum, cigarettes, cell phones, and stuff like that.
A search of the top layer of clothing will remove the zombie’s outer clothing like jackets, pants, backpacks, and other things.
And a detailed search completely undresses the corpse, taking off all his clothes.
After the detailed search can we change the type of the corpse? So, if the zombie soldier was not mutated into something scarier (such as a kevlar hulk), after the search he can become a normal zombie (or a special naked zombie, which can not be searched again).
Essentially, generating items after a zombie’s death works about the same way - we have item_groups that are tied to a creature and they give us a random set of items when it dies.
I propose to move this issuing of items from the moment of death to the moment of the interaction of the player with the corpse.
Well, and separate how detailed this search can be.
What might that affect?
Well, first of all, it will change the priorities of the game itself.
You will probably not waste precious time searching the corpses of ordinary people but will concentrate your forces on searching the “right” zombies. Searching will take time, so now the items dropped out of zombies can not be picked up immediately after their death, it will take time (even the ability to unclip the machine gun from a lying corpse also takes time).
Moreover - search can bring frustration to morale, and also for the search can create a skill, or bind the search speed to any of the existing skills. Perhaps it will increase the chance of finding things, but it can just reduce the time required to search. Maybe add more options for certain kinds of corpses - find hidden pockets, search backpacks, removing weapons (if any) - a lot of options, and most importantly, that zombies will stop throwing all items on the floor when dying.
There will no longer be a situation where there are hundreds of abandoned items in the city, and somewhere wandering zombie soldiers who no longer have on their past outfits.
What do you think about it? What problems might there be in implementation? As I understand editing JSON files here is not enough, and quite a lot should be changed, probably in the code of the game.
Or maybe I’m wrong. It would be great if one of the developers saw this thread and said how good it is, and a realizable idea.