I was a bit hesitant to post this because if some standard exists to activate the
postfxpreset file , I do not know what it is . ok
in the .mis file I add a property to "TheLevelInfo" which I call pfx , the value is the
path to the postFXpreset file
like this
just examples-
pfx = "./levels/postFXpresets/somefile.postFXpreset"
-or-
pfx = "./levels/konserian/konserian.postfxpreset.cs"
then in the file
./scripts/client/missiondownload.cs
function onMissionDownloadComplete()
i add these
--------------------------------------
exec(thelevelInfo.pfx);
postfxmanager.settingsapplyfrompreset();
volFogControl(); //-- see following for explanation
--------------------------------------
Also , in in one of my levels I use volumetric fog which was being disabled after
applying the postFx so i added a function named volfogControl which I call after
applying the postFX .For this I add another variable to the "theLevelInfo which I
call volfog and give it the string value of the volumetric fog
volfog = "lakeFun01Volfog01";
I added this function to the same file
-------------------------------------
function volfogcontrol()
{
%volfog = theLevelInfo.volfog;
//echo("++++VOLFOG = " @ %volfog);
if(thelevelinfo.volfog !$= "")
{
echo("--------TURN ON VOLUMETRIC FOG----volFogControl-" @ %volfog);
%volfog.hidden = true;
%volfog.hidden = false;
}
}
---------------------------------
Like I said , I just try to make things work so , just disregard any comments ,
I use them to help me solve little problems . And if you find any of it to be
ridiculous , I'd only benefit to now what it is .