Skip to content

Commit

Permalink
chore: lulz
Browse files Browse the repository at this point in the history
  • Loading branch information
sirskunkalot committed Sep 21, 2022
1 parent 17d4e08 commit 00d7d8e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions TestMod/TestMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
Expand Down Expand Up @@ -148,6 +149,17 @@ private void Awake()
// Get current version for the mod compatibility test
CurrentVersion = new System.Version(Info.Metadata.Version.ToString());
SetVersion();

// lulzthing for the win!
CreatureManager.OnVanillaCreaturesAvailable += () =>
{
var fab = PrefabManager.Instance.GetPrefab("piece_lel");
ZNetView.m_forceDisableInit = true;
var inst = Instantiate(fab, FejdStartup.instance.m_characterPreviewPoint.position, FejdStartup.instance.m_characterPreviewPoint.rotation);
ZNetView.m_forceDisableInit = false;
inst.transform.localPosition += new Vector3(-1.5f, 0.6f, -5f);
inst.transform.rotation = Quaternion.Euler(0f, 350f, 0f);
};
}

// Called every frame
Expand Down

0 comments on commit 00d7d8e

Please sign in to comment.