Page 1 of 1

Specific CVARS for ZombieMod

Posted: Wed May 31, 2006 9:38 am
by Ludens
I want to have next thing:

If zombie_mode = 0 then
{
mp_forcecamera 1
mp_roundtime 2
mp_startmoney 800
phys_pushscale 1
phys_timescale 1
}
If zombie_mode = 1 then
{
mp_forcecamera 0
mp_roundtime 3
mp_startmoney 16000
phys_pushscale 10
phys_timescale 0.2
}

Currently I have created custom config for every map in "cfg/zombiemod" folder, 50 maps - 50 custom config-files with same content. Common file, that is executed if zombie_mode = 1 after server.cfg, for all maps would be more simple.

Posted: Wed May 31, 2006 2:12 pm
by Games
What if you put those settings in two .cfg's and exec them :idea:

In one .cfg you put zombie_mode 0 with the desired settings and in the other zombie_mode 1 with the desired settings. :idea:

And in the rcon menu you can add the 2 lines to exec each .cfg

Posted: Thu Jun 01, 2006 2:52 am
by Spinner
Aw man, and after 50 files worth..... Games's way Is much easier and optimized, with matties event scripts you could have this exec automaticly when zombiemod switches from 1 to 0 It would run what ever .cfg you have set.

Posted: Thu Jun 01, 2006 8:38 am
by Ludens
Problem is that "zombie_mode 1" command reloads current map, and server.cfg with regular cvar values is reloaded, that's why I can't set zombiemod specific cvars in script. I'd like do not use EventScripts...

Posted: Thu Jun 01, 2006 8:58 am
by Games
And what about putting al those settings you need with zombie_mode 1 in the zombiemod.cfg ?

Posted: Thu Jun 01, 2006 10:08 am
by Ludens
just tested, non-zombiemod cvars doesn't apply from zombiemod.cfg

and map-specific configs doesn't work too, my mistake