banner
Rating
Voted0

45x Costume Options

0
Mod version:1
Game version:3.0.3
The mod has been successfully tested for the absence of viruses
1649.29K18K

Report mod

  • image
modalImage

About This Mod

Thunderstore version for 45x costume variations.

This library allows you to register costume groups using ModelReplacementAPI and switch between them using custom hotkeys.

To access a costume group, a MoreSuits PNG file is required for at least one costume in the group (see description below).

For examples of mods using this library, see below:

Thunderstore Version Thunderstore Version


Features.

Utility to save main outfits, outfit options and both at the same time.

Custom key bindings using LethalCompany InputUtils.

Synchronize variation switching with LethalNetworkAPI.

Synchronize model changes when you join the game (should work for commands not added using this library).

Use.

Place the content in the bepinex/plugins folder, make sure that ModelReplacementAPI, More Suits, LethalCompany InputUtils, and LethalNetworkAPI are also installed.

Instead of directly registering model replacements using ModelReplacementAPI calls, developers should register costumes using the RegisterSuit function: SuitVariantsAPI.RegisterSuit(Suit Name, Type of Suit Class, Parent Suit Name);

Example:


// This should be the suit you want to display on the suit rack.

FFXSuitVariants.RegisterSuit("My first costume", typeof(MyFirstSuitModel));


// These suits will not be displayed on the suit rack (do not include the MORESUITS PNG file for them).

FFXSuitVariants.RegisterSuit("My First Suit [V2]", typeof(MyFirstSuitVTwoModel), "My First Suit");

Alternatively, you can add both the main costume and options:


SuitVariantsAPI.RegisterSuits<string, Type>(

  ("MyFirstSuitModel", typeof(MyFirstSuitModel)), // include the PNG file moresuits, since this suit is used by default and therefore appears on the costume rack.

  ("My First Suit [V2]", typeof(MyFirstSuitVTwoModel)), // do not include the moresuits PNG file, as it is accessible via the loop button after switching to the default suit.

  ("My First Suit [Alt]", typeof(MyFirstSuitAltModel)), // Do not include the moresuits PNG file, as it is accessible via the loop button after switching to the default suit.

);

The default key binding is 'T', which can be set using LethalCompany InputUtils.

It is recommended that you review the ModelReplacementAPI documentation. Describes the basic structure for loading entities and creating a model replacement mode.


Change log.

You can view the change history on the Change History tab.

Similar Mods/Addons

Game Version *

3.0.3 (45x_Dev-45x_Suit_Variants-3.0.3.zip)