(MSC) Map Optimizer

If you liked this item, please rate it up on Steam Workshop page.

Author: [FoRcE]army_guy3

Last revision: 15 Oct, 2020 at 21:19 UTC

File size: 14.66 KB

On Steam Workshop

Description:

MSC_ID: MSC_Map_Optimizer
Supports MSC_AUTOLOAD.

This is the 11th test script that runs on the Master Script Controller while hosting your own server.

Note: I have disabled the auto optimize render function. If an area is too laggy then use the /arealag command to attempt to improve your fps. You can bind these commands so you can press a button instead of typing it each time.
Example:
bind kp_minus "say /areareset"
bind kp_plus "say /arealag"

Typing these two commands in console will bind them to your keypad (+) and keypad (-) buttons.

This script was designed to optimize Render/fog/physics/props/Custom_Weapon_Controller for custom campaigns that have lag issues.

Render:
The script checks render distances against fog distances to determine how much area can be optimized. This can look odd in certain circumstances but this script was mainly designed to make them playable.. Not pretty.

Fog:
The script can control fog values if it’s still too laggy to play.

Physics:
The script has an experimental system to prevent severe lag caused by many physics props settling at once when the round starts. It will automatically detect awake objects and ignore ones that are sleeping. Nighty night prop <3

Props:
The script has a proplag command that stops network heavy entities known to cause network issues on some custom maps. typing "net_graph 5" in console will enable your net graph to show stats. A tall red wall is bad and may lead to clients getting heavy choke. In this case you can try this command to see if it helps.

Custom Weapon Controller:
Some custom maps have a script known as the Custom Weapon Controller. The background script logic controller for it can be altered with my optimized version of the code. It will automatically optimize the Custom Weapon Controller if it detects it.

Current functions:

proplag – (Stops network heavy entities that cause consistent choke lag)

propclean – (Detects unneeded entities and removes them to free up entity slots. Useful if the map keeps crashing with edict errors.)

arealag – (Detects the current area of the activator and further optimizes it. This can make the area look very odd in some cases but it’s mainly used so people with lower end systems can actually play these maps. Each time the command is typed it will optimize the area more.)

areareset – (Detects the current area of the activator and resets the fog settings to before it was optimized.)

optimize – (Detects all areas and optimizes areas with basic optimization. This is the code that used to run automatically. Note that basic optimization requires certain area parameters to work in that area. For advanced optimization use the arealag command.)

Note: This script requires the Master Script Controller.

You can subscribe to it here:
https://steamcommunity.com/sharedfiles/filedetails/?id=2203978515

This script now supports MSC auto run. It no longer requires MSC_ADDSCRIPT.

These scripts take a lot of time and effort to produce. If you like them and/or want to see more, you can show your appreciation by throwing some money my way at:

https://www.patreon.com/ag3_killstreak

Download
Required items:

Click the title to search on this site.


Master Script ControllerSteam Workshop