Skip to content

ModelArranger

Paranoid_AF edited this page Apr 16, 2018 · 5 revisions

This is a guide for ModelArranger, a plugin for servers to restrict player models in certain maps.

INSTALLATION

  1. Download the file ModelArranger.as from this repository.

  2. 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"  
     	}  
    
  3. **IMPORTANT** You're NOT READY YET! This plugin requires an utility called PseudoHooks, you could get it from here.

  4. Copy all the files except for pseudo_example.as to your server's /svencoop/scripts/plugins directory.

  5. The plugin is now installed, but you still need to configure. Proceed to the next section.

CONFIGURATION

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. 😢

FEEDBACK

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.

以简体中文查看...

Clone this wiki locally