[Mod idea / question] LoS pathfinding & events

Started by Holvr, March 26, 2017, 04:26:00 AM

Previous topic - Next topic

Holvr

After receiving well thought answers to my previous inquiry (thanks again) I feel encouraged to ask you, wonderful modders, another question from "would X be possible?" series. Thank you in advance for any and all answers.

The question I have raging in my mind is somewhat influenced by this mod mixed with my idea of a special type of silent raids (it's a different mod idea entirely, but to put it short - a type of thief 'raiders' would enter your map without any notification to steal your stuff and leg it), and the question itself is:

Would it be possible to introduce a line-of-sight check to both pathfinding and event detection? Splitting it into a bunch of smaller, more precise questions to explain what I have in mind:
- Raiders/manhunters not charging straight to your colony from the far end of the map like they've had some sort of preinstalled GPS, but instead having to search for you first, until they aquire line of sight.
- Your pawns only detecting some types of events (not all would make sense, but most) only by line of sight so: raid is detected when someone spots a hostile, fire is detected on sight and so on. As an extension to this idea there could be different items like watchtowers (increase sight range of a pawn who mans it), security cameras and cctv screen (cameras detect threats if a pawn mans the screen), motion and heat detectors (for hostiles and fire respectively) etc.
- Perhaps even introducing some sort of stealth mechanics (since detection would be based on LoS rather than magical "I am 2 mountains away but I'm already moving to attack Jerry's bed specifically") for your pawns to utilise (guerilla suit sniper, anyone?).
- This one is probably even more far-fetch'd than the stealth, but mayhaps even a kind of Fog of War would be possible, so that you have to discover your map bit by bit, instead of being all-seeing god.

And a follow-up question: If (a big IF) all/some of the above would be possible, how much performance impact would it have, do you reckon, in bigger raids when dozens of bandits would frantically search the map for your pawns and buildings? As far as I know, now when a raider falls into your trap, his whole faction knows the exact location of said trap, so maybe it'd be possible to utilise this mechanics to make factions remember the location of your buildings so they don't have to search everytime, but I don't know whetner or not this would actually ease the game's calculations or further complicate them...


Thanks for reading all this stuff.

Granitecosmos

This was actually part of the earliest stages of the game. It was a Fog Of War system like the ones usually seen in RTS games.

It didn't do any good for the game though. AI couldn't use it. Players were frustrated. Ultimately it was almost completely ditched. The only remnant of this feature is the "New Area Revealed".

Possible? Of course. Would break the AI? 99% sure it would. Would take years to properly patch up the AI for it? Probably.

Obligatory "I was killed by a sniper raider from the fog of war!" example.

Holvr

Ooh, I see. Well, that's what you get for being a freshman to a game with years worth of history :P Not knowing what was distorts "what could be".

I rest my case then, and thank you, Granite, for making things clear.