16
Programming / Re: Features: Show chance to hitting and the throw trajectory
« on: May 03, 2016, 11:41:45 am »This is a pretty old threadYes, but feature is already implemented, works without a lot of rewriting and looks interesting for me. I simplified a code without checking would you hit an enemy by explosion, draws circle over all objects ("smart" circle draw below objects will require a lot of reworking of drawing objects) and changed a code to show blast radius for every weapon, not only for things that you can prime.
I'm pretty strict about not re-loading when bad things happen to my troops,I also like playing in roguelike style with permanent fails if bad thing happens.
I could look up each weapon's radius and count tiles anyway, but that's very tedious so I just test and re-load.Later I found that we need count also a damage. You can define a crazy radius in ruleset but with low damage it's not possible to damage everything in blast radius. So low damage reduces a blast radius and huge red circle will confuse you at that case. I added another yellow circle. In a screenshot I'm trying to throw a grenade. Red circle shows max blast radius without counting damage. Yellow circle shows efficient blast radius taking into a consideration a damage. Everything in red circle are less likely that somebody will receive damage.