[EngiN33R] Pure mode 
9 comments This small script makes it possible for server owners to enable pure mode. With pure mode enabled, whenever a player connects to a server with certain files different from the server's, they are kicked. The exact list of files checked can be provided in sys/pure.cfg. The example file packaged with the mod includes instructions on how to use it, as well as a short list of basic filter rules. To enable pure mode, execute sv_pure 1 in the console.
The script's secondary goal is to introduce fellow modders to some of the new features of version 1.0.0.2.
Attention! Generating file checksums may be a resource-intensive task, and your server may take some time to fully start. This only happens whenever Lua scripts are reloaded (server start / map reload).
Attention! This mod is using the new mod distribution format!
Unpack the archive in the CS2D root directory, merging folders if prompted.
On Windows, you may use the launcher (Launcher.exe): open the Mods tab, tick the box next to "Pure Mode" and click "Run CS2D".
You can also run the CS2D executable or the dedicated server with the flag -mods "puremode" (-mods "xxx,puremode" if you already have other mods enabled).
If you would like to use the legacy format instead, simply copy mods/puremode/lua/main.lua to sys/lua, rename it to puremode.lua and add
to server.lua. Make sure server.lua is listed as the value of mp_luaserver.
The script's secondary goal is to introduce fellow modders to some of the new features of version 1.0.0.2.





If you would like to use the legacy format instead, simply copy mods/puremode/lua/main.lua to sys/lua, rename it to puremode.lua and add
Code:
1
dofile("sys/lua/puremode.lua")
to server.lua. Make sure server.lua is listed as the value of mp_luaserver.

Comments
9 comments



Log in!
You need to log in to be able to write comments!Log in
@
Dousea: The fact alone that this script exists proves that it doesn't need to be. Whether it will be is another question. It's not the highest priority at the moment.




