Quote:
Originally Posted by jameless
Does this mean we have to create a cfg to turn it on? Or will it still start automatically unless we tell it otherwise?
|
You will not have to create a special ZF config file unless you want to set variables to something other than default values. Here are two examples.
- You want to change the survivor percentage from 65% to 75% for all maps.
- Create a ZF configuration file (in the same directory as server.cfg). Call it zf.cfg.
- Inside of zf.cfg, place "sm_zf_ratio 0.75".
- Inside of server.cfg, place "exec zf.cfg".
- Done! At the start of each map, server.cfg is executed, which in turn calls zf.cfg, which sets the survivor ratio to 75%.
- You want to change the survivor percentage from 65% to 75% for zf_mapname only.
- Create a ZF configuration file (in the same directory as server.cfg). Call it zf.cfg.
- Inside of zf.cfg, place "sm_zf_ratio 0.65".
- Inside of server.cfg, place "exec zf.cfg".
- Create another ZF configuration file (in the same directory as server.cfg). It must have the same name as the map, in this case, zf_mapname.cfg.
- Inside of zf_mapname.cfg, place "sm_zf_ratio 0.75".
- Done! At the start of each non-zf_mapname map, server.cfg is executed, which calls zf.cfg, which sets the survivor ratio to 65%. At the start of zf_mapname, server.cfg / zf.cfg are executed again, but then zf_mapname.cfg is executed, overwriting the old survivor ratio and setting it to 75%.
I may be rusty on where files need to go, so I'll review it when I get home. But that's basically how it works.
__________________