The plugin will successfully spawn the scarecrows/murderers, but I don't think the Configuration file is being correctly referenced.
- Tried changing Health to 400.0 but it did not work
- Tried enabling spawn Broadcast Settings but it did not work
The plugin will successfully spawn the scarecrows/murderers, but I don't think the Configuration file is being correctly referenced.
Upon further investigation I think the configuration file is fine.
Unfortunately the code itself does not properly execute some of the configurations properly, including Health/MaxHealth and DoBroadcast
Merged post
Hey, I fixed the broadcast setting! https://pastebin.com/Rd8SGFHX
I also changed the Initialize Health section to use InitializeHealth, which correctly sets the current Health. But I still can't figure out a way to update MaxHealth. The code I left in there for that section must not be working, because any damage brings my configured Health value back down to the default 200 MaxHealth for the entity before normal damage calculation applies.
Merged post
I finally got the Health setting to update MaxHealth.
//Initialize health
float spawnHealth = _spawnConfig.Zombies.Health;
zombie._maxHealth = spawnHealth;
zombie.startHealth = spawnHealth;
zombie.InitializeHealth(spawnHealth, spawnHealth);
Please feel free to use all of my updates for Health & Broadcast settings
and also please check for optimizations for your next version.
(for example the float may not be necessary here)
Thanks for the exercise and the plugin!
Nicely done, thank you