Specific CVARS for ZombieMod

.: ZombieMod Discussion

Moderators: c0ldfyr3, Mods, [CSSMC]

Post Reply
Newbie
Posts: 4
Joined: Sat May 20, 2006 12:48 pm

Specific CVARS for ZombieMod

Post 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.
Moderator
Posts: 578
Joined: Fri May 05, 2006 7:00 am
Location: Netherlands

Post 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
Site Admin
Posts: 136
Joined: Sun Apr 23, 2006 8:18 pm
Location: Michigan

Post 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.
Newbie
Posts: 4
Joined: Sat May 20, 2006 12:48 pm

Post 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...
Moderator
Posts: 578
Joined: Fri May 05, 2006 7:00 am
Location: Netherlands

Post by Games »

And what about putting al those settings you need with zombie_mode 1 in the zombiemod.cfg ?
Newbie
Posts: 4
Joined: Sat May 20, 2006 12:48 pm

Post by Ludens »

just tested, non-zombiemod cvars doesn't apply from zombiemod.cfg

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

Who is online

Users browsing this forum: No registered users and 1 guest