[Mod request] Detect weather events (rain/radiation) and change pawn zones

Started by togfox, April 07, 2019, 09:32:22 PM

Previous topic - Next topic

togfox

I'd like a bit of c# to detect different environment events (e.g. rains) and then set pawn zones to something suitable for that event. If it is raining, I'd like all my pawns to move to a zone that I call "Dry Zone" so they don't get wet. When it stops raining, they pawns are then set to "Unrestricted" zone and they go about their business. The zones are custom made and custom named. A GUI would be needed to set up different events:

- when event = rain, zone = xxx
- when event = radiation, zone = yyy
- when event = volcano, zone = www

You can even extend to normal events:

- when event = raid, zone = vvv (bunker)

Of course I can do this manually but it's a PITA switching zones when it rains and then switching back when it stops. I often get distracted, don't notice the rain stop and then realise my pawns are all getting antsy because I've restricted them to the dry zone even though it's not raining.  Cheers.