Zombie api gadget#5784
Conversation
groundwork for splitting off some the zombies into a gadget to be used by nanoplague
|
I'm a bit on the fence on some things, specifically handling the zombies arrays and such. I could unify/port/standerdise the countdown to revive aswell I suppose, though then it would not be possible to differentiate between zombie or nanoplague zombies. |
|
What does each of the gadgets do? The descriptions of each should be updated to make this clear, because api_ and unit_ don't mean a whole lot. |
|
aaaaaye. Ideally I want to put as much into the helper gadget to avoid duplication, but I'm unsure if I can put more there without it becoming inflexible. |
| GG.Zombies = { | ||
| TurnFeatureIntoUnit = TurnFeatureIntoUnit, | ||
| SetZombieSpeedMult = SetZombieSpeedMult, | ||
| SetZombieBehavior = SetZombieBehavior, |
There was a problem hiding this comment.
I'd get rid of the "set behaviour" and just let gadgets ask for the wander directly. Units are essentially "controlled by luaAI" by default.
| SetZombieBehavior = SetZombieBehavior, | |
| SetZombieWander = GiveZombiesRandomOrders, |
sprunk
left a comment
There was a problem hiding this comment.
looks ok overall, i'll see if i can find some time to test during the week
|
aye thanks, I'll change it around! Thoughts on if theres sense in trying to put the to be rezed arrays in the api gadget? And is LuaAi different from amove behavior? since thats essentially what wander applies, and I'd be curious if more complex behavior can be coaxed out for nanoplague zombies. |
IMO slowing is ok as-is, rezzed arrays may be ok to eventually put in the api but I'll have to think of how to do it cleanly.
LuaAI can make units do anything, it's just a matter of writing an implementation. This includes arbitrarily powerful "legit" behaviour (e.g. pyros use jump; glaives perfectly dodge projectiles and avoid LLTs; units congregate into hivemind armies and strategically raid mexes...) but also beyond that (e.g. radars call down orbital tacnukes; detriment roars, whistles, and even plays music). |
|
For rezzed arrays I think the issue would be referencing back to the gadgets that put the features "in queue", so that you can differentiate between different zombie types. And :O Detriment with all the bells and whistles. Is there a good example for LuaAI floating about? Wandering works generally for whats intended, but cons building structures and units being smarter or 'biased' toward the team that made them could be interesting to give Nanoplagued zombies a smarter feel over normal ones, being a less degraded/feral version of the same tech essentially. |
Splitting off some the zombies code into a gadget to later be used by nanoplague