Page 1 of 1

SetCVar not working?

Posted: Thu Aug 15, 2013 15:57
by ChickenLegz
GZDOOM g1.8.1-208g42c9b68

As of 1.7.1 SetCVar is added to ACS, but I don't get or working, even not from a map behaviour lump.

This library is loaded with LOADACS. It should automatically turn off fake contrast when entering a map, but it's left unchanged.

Code: Select all

#library "Special1"
#include "zcommon.acs"

Script "AUTOSTART" ENTER
{
	SetCVar("r_fakecontrast", 0);
}

Re: SetCVar not working?

Posted: Thu Aug 15, 2013 21:42
by Gez
This is not limited to GZDoom, so the thread should have been made on the ZDoom forums. The point is moot, however, because SetCVAR intentionally only works for modded CVAR. You cannot -- and this is very deliberate and will never be changed -- change core game settings with it.

Re: SetCVar not working?

Posted: Fri Aug 16, 2013 8:27
by ChickenLegz
Oh, damnit, but thx

Re: SetCVar not working?

Posted: Fri Aug 16, 2013 23:24
by Gez
You do know that you can set a map's fake contrast setting from MAPINFO, right?

Re: SetCVar not working?

Posted: Sun Aug 18, 2013 21:00
by ChickenLegz
Not until you told me, Evenlighting is what I aimed for. Thanks alot, Gez :)