-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19a20b9
commit acf4289
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using BepInEx; | ||
using BoplFixedMath; | ||
using HarmonyLib; | ||
using System.Reflection; | ||
using UnityEngine; | ||
using Steamworks; | ||
using Steamworks.Data; | ||
|
||
namespace InstantBeam | ||
{ | ||
[BepInPlugin("com.David_Loves_JellyCar_Worlds.InstantBeam", "InstantBeam", "1.0.0")] | ||
public class Plugin : BaseUnityPlugin | ||
{ | ||
private void Awake() | ||
{ | ||
Logger.LogInfo("Plugin InstantBeam is loaded!"); | ||
|
||
Harmony harmony = new Harmony("com.David_Loves_JellyCar_Worlds.InstantBeam"); | ||
|
||
Logger.LogInfo("harmany created"); | ||
harmony.PatchAll(); | ||
Logger.LogInfo("InstantBeam Patch Compleate!"); | ||
} | ||
|
||
|
||
[HarmonyPatch(typeof(Beam))] | ||
public class myPatches | ||
{ | ||
[HarmonyPatch("OnEnterAbility")] | ||
[HarmonyPostfix] | ||
private static void OnChatMessageCallback_InstantBeam_Plug(ref BeamState ___state) | ||
{ | ||
if (___state == BeamState.enter) | ||
{ | ||
___state = BeamState.loop; | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |