From b7632e9514c60d100634f3c9ef8a523a54308f41 Mon Sep 17 00:00:00 2001 From: OsaPL Date: Tue, 27 Jul 2021 19:25:39 +0200 Subject: [PATCH] fixes old mentions, also manifest file is okay now --- Osa.BulletKinesis/BulletKinesis/manifest.json | 2 +- Osa.BulletKinesis/Osa.BulletKinesis.csproj | 4 ++++ Osa.BulletKinesis/src/BulletKinesis.cs | 12 ++++++------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Osa.BulletKinesis/BulletKinesis/manifest.json b/Osa.BulletKinesis/BulletKinesis/manifest.json index 197fdb4..eb5faa1 100644 --- a/Osa.BulletKinesis/BulletKinesis/manifest.json +++ b/Osa.BulletKinesis/BulletKinesis/manifest.json @@ -12,7 +12,7 @@ "hookgen.conf": "deli:monomod.hookgen" }, "setup": { - "Osa.BulletGrabber.dll": "deli:assembly" + "Osa.BulletKinesis.dll": "deli:assembly" } } } diff --git a/Osa.BulletKinesis/Osa.BulletKinesis.csproj b/Osa.BulletKinesis/Osa.BulletKinesis.csproj index 21d4b80..7d3804a 100644 --- a/Osa.BulletKinesis/Osa.BulletKinesis.csproj +++ b/Osa.BulletKinesis/Osa.BulletKinesis.csproj @@ -22,6 +22,10 @@ ..\..\TakeAndHoldSplitter\Osa.TakeAndHoldSplitter\dependencies\MMHOOK_Assembly-CSharp.dll + + + + $(MSBuildProjectDirectory) diff --git a/Osa.BulletKinesis/src/BulletKinesis.cs b/Osa.BulletKinesis/src/BulletKinesis.cs index cc02ea5..996987b 100644 --- a/Osa.BulletKinesis/src/BulletKinesis.cs +++ b/Osa.BulletKinesis/src/BulletKinesis.cs @@ -17,7 +17,7 @@ public BulletKinesis() { // There is 1 log message in each of the methods here. // Run this mod to see the order of execution logged to console. - Logger.LogInfo("BulletGrabber loading..."); + Logger.LogInfo("BulletKinesis loading..."); // Hook to the setup stage (the first stage we can access) // Do not forget! Awake is still ran before ANY event. @@ -44,10 +44,10 @@ private void Awake() // use an asset loader of some sort. private void LoadCfg() { - var hand = Config.Bind("BulletGrabber", "HandMode", "both", "Defines which hands can grab bullets. Valid options are: 'both', 'left' or 'right'."); - var delay = Config.Bind("BulletGrabber", "Delay", 150, "Defines delay (in milliseconds) between each bullet grab."); - var range = Config.Bind("BulletGrabber", "Range", Hooks.MaxLegitRange, $"Defines range (in meters) of grab. Setting it higher than {Hooks.MaxLegitRange} will disable TnH scoring."); - var bulet = Config.Bind("BulletGrabber", "BulletGrabMode", "firstTheSame", "Defines how compatible bullets finder should work. Valid options are: 'onlyTheSame', 'firstTheSame' or 'closest'."); + var hand = Config.Bind("BulletKinesis", "HandMode", "both", "Defines which hands can grab bullets. Valid options are: 'both', 'left' or 'right'."); + var delay = Config.Bind("BulletKinesis", "Delay", 150, "Defines delay (in milliseconds) between each bullet grab."); + var range = Config.Bind("BulletKinesis", "Range", Hooks.MaxLegitRange, $"Defines range (in meters) of grab. Setting it higher than {Hooks.MaxLegitRange} will disable TnH scoring."); + var bulet = Config.Bind("BulletKinesis", "BulletGrabMode", "firstTheSame", "Defines how compatible bullets finder should work. Valid options are: 'onlyTheSame', 'firstTheSame' or 'closest'."); Logger.LogInfo($"Loaded in: '{hand.Value}' hand(s) mode"); Logger.LogInfo($"Loaded in: '{delay.Value}' ms of delay"); @@ -70,7 +70,7 @@ private void OnDestroy() private void Start() { - Logger.LogInfo("BulletGrabber loaded."); + Logger.LogInfo("BulletKinesis loaded."); } } } \ No newline at end of file