Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Update BepInEx
Browse files Browse the repository at this point in the history
  • Loading branch information
xifangczy committed Nov 18, 2021
1 parent 14ba865 commit f38f428
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 138 deletions.
5 changes: 0 additions & 5 deletions BmMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,6 @@ void LateUpdate()
foreach (NewPlayerObject newPlayerObject in monsters)
{
Transform weakTrans = newPlayerObject.BodyPartCom.GetWeakTrans();
//if (weakTrans.localScale.x < ZoomWeakNum)
//{
// weakTrans.localScale *= ZoomWeakNum;
//}
weakTrans.localScale = new Vector3(ZoomWeakNum, ZoomWeakNum, ZoomWeakNum);
}
}
Expand Down Expand Up @@ -522,7 +518,6 @@ void ZoomShield()
var Shields = GameObject.FindGameObjectsWithTag("Monster_Shield");
foreach (var Shield in Shields)
{
//Destroy(Shield); //有BUG
Shield.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
}
}
Expand Down
5 changes: 5 additions & 0 deletions BmMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
<HintPath>dll\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass, Version=3.7.1.6, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\SteamLibrary\steamapps\common\Gunfire Reborn\BepInEx\unhollowed\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BepInEx.Core">
<HintPath>dll\BepInEx.Core.dll</HintPath>
<Private>False</Private>
Expand Down
52 changes: 0 additions & 52 deletions MainMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,56 +111,4 @@ class NoRecoil
{
static bool Prefix() { return !BmMod.NoRecoilState; }
}
//取消GM限制
//[HarmonyPatch(typeof(MainManager), "HaveGMLimit")]
//class HaveGMLimit
//{
// static bool Prefix(ref bool __result)
// {
// __result = true;
// return false;
// }
//}
//反小黑屋
[HarmonyPatch(typeof(Game.SecurityManager), "IsImmortal")]
class FuckDuoyi1
{
static bool Prefix(ref bool __result)
{
__result = false;
return false;
}
}
[HarmonyPatch(typeof(Game.SecurityManager), "CheckCurImmortal")]
class FuckDuoyi2
{
static bool Prefix(ref bool __result)
{
__result = false;
return false;
}
}
[HarmonyPatch(typeof(Game.SecurityManager), "UsedToBeImmortal")]
class FuckDuoyi3
{
static bool Prefix(ref bool __result)
{
__result = false;
return false;
}
}
[HarmonyPatch(typeof(s2cnetwar), "C2GSImmortal")]
class FuckDuoyi4
{
static bool Prefix() { return false; }
}
//测试
//[HarmonyPatch(typeof(), "")]
//class Test
//{
// static bool Prefix()
// {
// return true;
// }
//}
}
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@

需要MOD框架 BepInEx 6
https://builds.bepis.io/projects/bepinex_be
下载 BepInEx Unity IL2CPP for Windows x64 machines
下载本项目DLL文件到 BepInEx\plugins 目录内

1. 下载 BepInEx Unity IL2CPP for Windows x64 machines 并解压到游戏目录
2. 下载本项目DLL文件到 BepInEx\plugins 目录内
3. 运行游戏,第一次运行,BepInEx会生成所需的DLL,期间会较长时间无响应
可以先打开BepInEx的控制台,具体教程在 https://docs.bepinex.dev/master/articles/user_guide/troubleshooting.html
4. 开玩

本项目实验性质,为了学习Unity 和 C#
因辅助造成的问题,概不负责。
因辅助造成的问题,概不负责。

如果你需要修改它,需要引用 Gunfire Reborn\BepInEx\unhollowed 内的所有DLL
Loading

0 comments on commit f38f428

Please sign in to comment.