AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   Problem with enable/disable at map change (https://forums.alliedmods.net/showthread.php?t=302354)

PoisonRAR 10-26-2017 07:05

Problem with enable/disable at map change
 
I have a problem. By default in csdm.cfg CSDM is disabled
enabled = 0

I just want to use CSDM on specific maps.
So I have created maps.cfg for each maps so CSDM enabled itself when loading these maps.

Commands in maps cfg:
csdm_enable

Problem is that this saves the csdm.cfg file to that CSDM enabled. So CSDM is active when chaning to another map that should not have CSDM enabled.

So I added csdm disable to my server.cfg and then added mapchangecfgfile server.cfg to the map config.

That will reset everything but when going back to a map that should have CSDM enabled it will result in a loop since csdm enables itself again and then reload the map. And when reloading the map it will use the mapchangecfgfile server.cfg setting resulting in a loop since it enabled and disabled CSDM over and over again.

How can I prevent this?

PoisonRAR 10-26-2017 07:44

Re: Problem with enable/disable at map change
 
Ok. I solved it by using csdm_active 0|1 commands instead since those are not triggering a restart of the map :)


All times are GMT -4. The time now is 14:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.