Skip to content

Cutscenes

Subclass of SceneNotificationData:

Example how to start/play:

MBInformationManager.ShowSceneNotification(new MarriageSceneNotificationItem(Hero.MainHero, Hero.MainHero.Spouse, CampaignTime.Now, SceneNotificationData.RelevantContextType.Any));

Change scene for default cutscene

[HarmonyPatch]
public class NewBornSceneNotificationItem_SceneID_Patch
{
    [HarmonyPostfix]
    [HarmonyPatch(typeof(NewBornSceneNotificationItem), "SceneID", MethodType.Getter)]
    public static void Postfix(NewBornSceneNotificationItem __instance, ref string __result)
    {
        __result = "scn_born_baby_custom";
    }
}

Important to know when changing just a scene for a default cutscene

  • Do not delete characters - they are referenced in code and they should remain in the scene. Move them out of the view if you don't need them.
  • You can freely delete objects (tables, walls, etc) and add new ones - that should not lead to the crash.

Open palm pose

Artem

Set/force agent to LOD0.

MBAgentVisuals.SetAgentLodZeroOrMax

Custom cameras have this issue though. If you spawn the camera too far away from the agents and then zoom in on them their hand/face morphs won't change during the entirety of the cameras duration.