Settings

You are here:
← All Topics
Version: 2019.200 Requirements:uMMORPG3d, ToolsScript Define:None
Core Changes:YesTutorial Video:No

Description

Adds a settings menu to uMMORPG that will greatly enhance player control.

  • Keybindings: Gives players the ability to change their hotkeys to what they see fit.
  • Gameplay: Gives players the ability to control some in-game components, such as blocking trade, party, guild invites.
  • Video: Gives players the ability to control their graphical settings by lowering or raising them.
  • Sound: Gives players the ability to control the volume of different aspects of the game, such as music, effects, ambient.

Core Changes

  1. [Required] Open the following script UIChat.cs. See Changes...
    Locate this line:
    if (player)

    Modify to match:

    if (player && settingsVariables.isShowChat)
  2. [Required] Open the following script Player.cs. See Changes...
    Locate this line:
    float horizontal = Input.GetAxis("Horizontal");
    float vertical = Input.GetAxis("Vertical");

    Modify to match:

    //float horizontal = Input.GetAxis("Horizontal");
    //float vertical = Input.GetAxis("Vertical");
  3. [Required] Open the following script Player.cs. See Changes...
    Locate this line:
    return entity != null && entity is Player && entity != this &&
    		CanStartTrade() && ((Player)entity).CanStartTrade() &&
    		Utils.ClosestDistance(collider, entity.collider) <= interactionRange;

    Modify to match:

    return entity != null && entity is Player && entity != this &&
            CanStartTrade() && ((Player)entity).CanStartTrade() &&
            Utils.ClosestDistance(collider, entity.collider) <= interactionRange &&
            !((Player)entity).isBlockingTrade;
  4. [Required] Open the following script Player.cs. See Changes...
    Locate this line:
    if (target != null && target is Player &&
    		InGuild() && !((Player)target).InGuild() &&
    		guild.CanInvite(name, target.name) &&
    		NetworkTime.time >= nextRiskyActionTime &&
    		Utils.ClosestDistance(collider, target.collider) <= interactionRange)

    Modify to match:

    	if (target != null && target is Player &&
    		InGuild() && !((Player)target).InGuild() &&
    		guild.CanInvite(name, target.name) &&
    		NetworkTime.time >= nextRiskyActionTime &&
    		Utils.ClosestDistance(collider, target.collider) <= interactionRange &&
    		!((Player)target).isBlockingGuild)
  5. [Required] Open the following script Player.cs. See Changes...
    Locate this line:
    	if ((!InParty() || !party.IsFull()) && !other.InParty())

    Modify to match:

    	if ((!InParty() || !party.IsFull()) && !other.InParty() && !other.isBlockingParty)

Installation

  1. [Required: When not using UCE_MainMenu] Drag and drop all items in Prefabs [Add to Canvas] to your canvas.
  2. [Required: When using UCE_MainMenu] Drag and drop all items in Prefabs [Add to UCE_UI_MainMenu] to your UCE_UI_MainMenu.
  3. [Required] Replace all FaceCamera on entities with Scripts [Replace all FaceCameras].
  4. [Optional] Add all audio sources to UCE_UI_Settings so they can be controlled.
  5. [Optional] Add all UI you want the players to be able to scale to UCE_UI_Settings so they can be controlled.

Extra

  • Settings will not work with any Unity 2018 version, due to the Unity Team accidentally removing some graphical setting options. They added them back in Unity 2019 versions.
  • If you’re using one of the Fhiz replacement addons. You will need to go to the appropriate script in settings and alter it for the Fhiz replacement addon.

    You will also need to make the appropriate changes in the Fhiz replacement addon script as well.

Support the IndieMMO Team Today!

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.