How to Create a Stratagem Mod

Updated 8 months ago

How 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

  1. To build Stratagem mods you first will need a MeatKit project running, tutorial can be found here

2. Importing Stratagem Mod

  1. Download the Stratagem Mod Kit
  2. 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

  1. Create a new folder in the Project tab in Assets named as your mod, e.g. ExampleMod
  2. Within the new mod folder right click and Create > Stratagem > New Stratagem, the file name should remain Stratagem
  3. Click the newly created Stratagem file, set Package Name to the same as your folder name, e.g. ExampleMod
  4. 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 to Sprite (2D and UI)
  5. Fill all fields with their relevant data, see descriptions by mousing over each Variable and Stratagem Package below
  6. 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

  1. Select the Stratagem file in the mod folder, click Build Package
  2. Assets will be built into your Unity Project's folder MeatKit > AssetsBundles > ExampleMod.stratagem
  3. Place both stratagem and stratagem.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