How to Create a Stratagem Mod
Updated 8 months agoHow to Create Stratagem Mod
It is important to note for people adding Stratagem support to exisiting mods that the Stratagem mod files can exist in mods without a Stratagem Grenade dependency
1. Requirements
- To build Stratagem mods you first will need a MeatKit project running, tutorial can be found here
2. Importing Stratagem Mod
- Download the Stratagem Mod Kit
- In your MeatKit Unity project in the Editor, right click within the Project Tab then
Import Package > Custom Package...
, navigate to the package and import
3. Creating New Mod
- Create a new folder in the Project tab in
Assets
named as your mod, e.g.ExampleMod
- Within the new mod folder right click and
Create > Stratagem > New Stratagem
, the file name should remainStratagem
- Click the newly created Stratagem file, set
Package Name
to the same as your folder name, e.g.ExampleMod
- Icons should be at least 256x256 and need to be a sprite, select a texture icon in the mod folder and in the inspector tab set
Texture Type
toSprite (2D and UI)
- Fill all fields with their relevant data, see descriptions by mousing over each Variable and Stratagem Package below
- Place all mod related content within your mods folder for it to be included, files can be in sub folders within the mod folder e.g.
ExampleMod/Art
4. Building Mod
- Select the Stratagem file in the mod folder, click
Build Package
- Assets will be built into your Unity Project's folder
MeatKit > AssetsBundles > ExampleMod.stratagem
- Place both
stratagem
andstratagem.manifest
files into a mod plugin folder, they will be automatically loaded into the stratagem grenade
Stratagem Package
Variable | Description |
---|---|
Package Name | Should reflect the same name as the mod folder |
Title | Name that displays on the call in |
Description | A short description that shows when you hover over the stratagem |
Icon | The icon that shows on the call in and Stratagem description |
Inputs | The letter input combinations to call in this stratagem U - Up / D - Down / L - Left / R - Right |
Deploy Type | Instant - Instantly creates all items in Spawn Hellpod - Hellpod needs to land before creating all items in Spawn |
Deploy Timer | The time before all items in spawn are created |
Cooldown | The cooldown time between deploying this stratagem |
Deploy Color | The color the stratagem beam and ball change to when activated |
Text Color | The color of the text on the description and call in display |
Spawn instant Prefab | Game Objects that will be instantly created as soon as the activated stratagem ball hits the ground |
Spawn Prefabs | Game Objects that spawn after the deploy timer is up |
Spawn ObjectIDs | Game Items that spawn after the deploy timer is up |
Spawn Sosig Enemy IDs | SosigEnemyIDs that will spawn after the deploy timer is up |