I’m currently trying to create a mod that adds further evolutions (upgrades) to existing monsters in the game. As a part of making these additional creatures more difficult than their previous forms, I want to incorporate new monster specials / death functions that buff the challenge of handling them.
For example, I want to give bloated zombies an upgrade to, essentially, a huge bloated zombie – in the same way a boomer becomes a huge boomer. Slightly tougher, greater area of effect with gas on death. The gas death function doesn’t seem to have an argument for size/area, so I’d have to create a new one for the bigger monster.
I dug around mondeath.cpp and monattack.cpp. I’ve managed to code up the .json that inherits the original monster definition and adds the new line for an upgrade to another monster, and it seems to work just fine. The real issue I’ve encountered is that, unless I’ve missed something, there doesn’t seem to be a way to add new specials (the ones found hard-coded in /src) with the basic .json modding process.
What I don’t want to have to do is create a local branch to add these new specials/death functions to the base game via PR, and exclude them by default unless the mod is enabled. This is the only solution I’ve come up with on my own time. I would prefer to have the whole package external to the source.
Any ideas / suggestions / questions / blows over the head pointing out obvious oversights are greatly appreciated.