SetCVar not working?

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
ChickenLegz
Posts: 20
Joined: Thu Aug 15, 2013 15:39

SetCVar not working?

Post 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);
}
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: SetCVar not working?

Post 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.
ChickenLegz
Posts: 20
Joined: Thu Aug 15, 2013 15:39

Re: SetCVar not working?

Post by ChickenLegz »

Oh, damnit, but thx
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: SetCVar not working?

Post by Gez »

You do know that you can set a map's fake contrast setting from MAPINFO, right?
ChickenLegz
Posts: 20
Joined: Thu Aug 15, 2013 15:39

Re: SetCVar not working?

Post by ChickenLegz »

Not until you told me, Evenlighting is what I aimed for. Thanks alot, Gez :)
Locked

Return to “Closed Bugs”