Jump to content

XCom craft shadows in battlescape map


TomVD

Recommended Posts

Hi,

 

I have a question for the X-Com experts. In the battlescape you see darker tiles under the wings and nose of your skyranger for example.

Here you see it very clearly:

https://www.ufopaedia.org/images/0/0b/Darksun_tactical_001.png

 

Where is this info stored, I don't find it in MAP or MCD files, is it hardcoded?

 

Thanks

Link to comment
Share on other sites

It's done at runtime if I'm not mistaken, but an incidental copy of the light map is stored in the save files when you save the game.

 

If you look at the interior of buildings on the farm map, you'll notice they are darker inside as well. I suspect when the game updates the light map, it simply casts a ray down on the tile at the maps current light level, and if it encounters a floating tile (wing, roof, etc) it darkens the light level of the tile beneath it.

 

- NKF

Link to comment
Share on other sites

Hmm, raytracing, very advanced :(

So if I mod the skyranger and remove one wing, the shadow should change automatically, and if you blow off the roof a building it goes brighter inside. It makes sense.

Thanks for the reply.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...