Hello. First things first amazing mod, works like a charm, and the guides on the download page are very helpful. Scarecrows throwing grenades was always so silly to me I'm really glad this lets me turn them off now.
Second, I was wondering if it's possible to disable looting Scarecrows ? I like to have a lot of them infest the map but they drop so much loot it breaks the grind. wondering if this is something I can change in the .cs file ?
Thanks!
Is it possible to disable loot drop ?Solved
Hi,
In fact it's possible, but I don't have time (and motivation...) to do it right now (and to set it configurable, etc).
You can just add :
scarecrow.LootSpawnSlots = new LootContainer.LootSpawnSlot[0];in the "updateAllScarecrows" function, just after the first "if (scarecrow != null && !scarecrow.IsDestroyed){" and before the "if (scarecrow.Brain != null)". This should works.
Hi thanks for the reply!
I wasnt able to find "if (scarecrow != null && !scarecrow.IsDestroyed)" in my file however there is a "if (entity != null && !entity.IsDestroyed)" in line 230 but when inserting the new line there server gives this error message:
"Error while compiling: BetterScarecrows.cs(234,1): error CS0103: The name `scarecrow' does not exist in the current context
Is there perhaps something I missed ?
Thank you.
Oh yeah replace scarecrow by entity and it should work
Replaced and the plugin loaded without error but the scarecrows still drop loot :(
Okay, so we'll need something different.
I'm updating the plugin.
Amazing, the new setting works like a charm! thank you good sir 🤩