Page 1 of 1

Messing around with Lighting?

Posted: Fri Mar 29, 2013 5:50 pm
by GottaLove88s
Has anyone collected a list of the best Lighting options for BA maps? Couldn't find one using the Advanced Search...

Basically, I'm looking for settings for...

(i) warm dawn,
(ii) bright midday,
(iii) evening dusk, and
(iv) dark night...

Is there a way to reduce LOS on 'night' maps? Or does this have to be done thru modifying squads.csv?

Re: Messing around with Lighting?

Posted: Sat Mar 30, 2013 8:10 pm
by pipfromslitherine
You can tinker with lighting via a lighting file for each mission. I would recommend starting with an existing file and beginning with tinkering with the colours to get an idea of the effects you can get.

To reduce LOS etc on night maps, use the PostStartTurn function (I don't have the exact name in front of me) - you can then go through units and reset their AP, LOS, etc. Using Post.. means it happens after the usual start of turn unit init functions.

Cheers

Pip

Re: Messing around with Lighting?

Posted: Mon Apr 22, 2013 9:30 pm
by GottaLove88s
Thanks Pip!

Would it work if I add something like this to FUNCTION StartTurnPost(side) for my NightBattle.BSF? To halve the LOS of every unit on the map?

for(j=0;j<GetUnitCount(1);j++)
{
id = GetUnitID(1,j) ;
SetAttrib(id, "LOS", GetBaseAttrib(id, "LOS"/2)) ;
}

Re: Messing around with Lighting?

Posted: Tue Apr 23, 2013 4:55 pm
by pipfromslitherine
That's pretty much how we do all those kind of things, yes.

Cheers

Pip