Skip to content

Lobby Settings

Coby Zhong edited this page Nov 14, 2021 · 2 revisions

Lobby Settings

Lobby settings can be changed directly with OSTW. The settings are included in the workshop output.

Create a file called customGameSettings.json to store the settings in. If you have the OSTW vscode extension installed, a json schema will activate allowing you to press ctrl+space for auto-completion.


To add the settings to the workshop output, just add import "customGameSettings.json"; to your script.

Example

{
    "Heroes": {
        "General": {
            "Enabled Heroes": ["Reinhardt"],
            "Reinhardt": {
                "Charge Cooldown Time": 0,
                "Charge Knockback Scalar": 200,
                "Fire Strike Cooldown Time": 50,
                "Rocket Hammer Knockback Scalar": 400
            },
            "Torbjörn": {
                "Primary Fire": false
            }
        }
    },
    "Modes": {
        "All": {
            "Game Mode Start": "Immediately",
            "Hero Limit": "Off",
            "Respawn As Random Hero": true,
            "Respawn Time Scalar": 0
        },
        "Skirmish": {
            "Enabled": true,
            "Enabled Maps": ["Lijiang Tower (Lunar New Year)", "Lijiang Tower"]
        }
    }
}