PivityGmodStore

PAC3 Restrictor

(4)(60)

You can always read the reviews or discuss this product

Media gallery

GUI Example.
GUI Example.

Buy product

$6.00

In short

Restrict PAC outfits for groups

Warning! 1.2.4 Version for newest PAC from github repo or workshop. For any older versions use 1.2.3

(Currently no upcoming updates, but I still support, so feel free to PM me).


What's this?

This addon is about serious control of an PAC3 that doesn't provide many options for controls. This addon makes possible to restrict things in the PAC3 editor, like limiting the network content size, outfit item class (for example, entities and particles), restrict it to usergroups and SteamIDs. It also helps prevent errors spamming console and making sure the URL, model and material paths are valid.

Advantages:

  1. Easy to configure, as it has its own GUI and console variables for management.
  2. Restrict the PAC3 editor and outfit wearing.
  3. Create restrictions for every usergroup and Steam ID.
  4. Allows the restriction of a count of content in a PAC3 (amount of sounds, models, webaudio, etc.)
  5. Allows a limit to the outfit's filesize.
  6. Prevents repeated requests for filehostings (404 or not found).
  7. Has a cache and won't send more than one unique request (no unnecessary loading!).

Disadvantages:

  1. The server will have to download content in order to get the filesize(should this been done on client?)
  2. You may experience an increased delay before wearing PAC3 (if it's fetching the data).

How do you install?

Drag and drop "pacres" to your server's addons folder.

How do you configure PAC3 Restrictor?

Type pacres_gui in console (you must be a superadmin to open this menu!).

On the left side, you have the ability to create and select groups. Plus button will add new group, red cross - remove, arrows up/down - expand buttons. On the right side, options will pop up with information in a tooltip. Look screens to understand how it works.

When you create a new group, you can have it inherit settings from an other group.

You can also use SteamIDs if there's a conflict with the groups.

Configuring it with the server console:

Use the console command pacres_cfg <#arg1> <#arg2> <#arg3>.

"#arg1" is the group name. If the group doesn't exist, it will create it, deriving(or based if "#arg3" is 1) it from "#arg2".

If "#arg1" contains a valid group and "#arg2" doesn't, it'll remove the group.

If "#arg1" contains a valid group and "#arg2" is a name (look pacres\limits.lua in table limits), it will set restrict to "#arg3"(if not or -1, then remove).

Examples:

  1. pacres_cfg admin superadmin 1 -- Will create group admin and copy settings from superadmin.
  2. pacres_cfg moderator admin -- Will create group moderator and make admin as base.
  3. pacres_cfg admin -- Will remove group admin.
  4. pacres_cfg admin can_use 0 -- will restrict usage pac for admins.

Why restrict PAC3 editor? Why check for errors? Why check for active materials?

Someone can use PAC3 to overload a player's connection on the server and to overload their cache with oversized files. URL errors don't give players any feedback, but just spams server console and many add-ons that check it. Checking materials also prevents a user to use mounted content - for example, if the server doesn't have TF2 but the client does, and you want to prevent this on your server for quality control.

Convars:

pacres_timeout - timeout for web content in seconds(def. 10).

pacres_delay - Restrict how often the server will check for a PAC3's content in seconds(def. 10)

pacres_default - Default group which will be used if player group not defined in restrictor(def. *default*)

Do you have a question? Feel free to ask me in Steam or on Gmodstore!

Product reviews