-
Notifications
You must be signed in to change notification settings - Fork 1
ModelArranger
This is a guide for ModelArranger, a plugin for servers to restrict player models in certain maps.
-
Download the file
ModelArranger.as
from this repository. -
Drag and drop that file to your server's
/svencoop/scripts/plugins
directory. 3、 Open/svencoop/default_plugins.txt
, add the following block in a proper way:"plugin" { "name" "ModelArranger" "script" "ModelArranger" "concommandns" "mdlarr" }
-
**IMPORTANT** You're NOT READY YET! This plugin requires an utility called PseudoHooks, you could get it from here.
-
Copy all the files except for
pseudo_example.as
to your server's/svencoop/scripts/plugins
directory. -
The plugin is now installed, but you still need to configure. Proceed to the next section.
Open up ModelArranger.as
, and you'll see the following code:
array<array<string>> restrictedMaps = {
{"hl_c00", "hl_c04"},
{"touhou_hakureijinja"}
};
array<array<string>> allowedModels = {
{"gordon", "robo", "helmet"},
{"touhou_akyuu", "touhou_aya", "touhou_chen", "touhou_cirno", "touhou_daiyousei", "touhou_eirin", "touhou_flandre", "touhou_iku", "touhou_keine"}
};
Yeah, you guessed it. Each line in the two arrays are connected, so be sure not to mess up the structure. I'm not good at expression so just write as how the code is written. Sorry, my bad. 😢
If you find something wrong, submit it as an issue in this repository. I'll try to handle it as soon as I have some spare time.