mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-30 13:20:13 +00:00
fix crushing bugs
This commit is contained in:
parent
c36e176e18
commit
0ec34e596e
1
.gitignore
vendored
1
.gitignore
vendored
@ -361,3 +361,4 @@ QSB.csproj.user
|
||||
GameAssets/
|
||||
Chert/
|
||||
Riebeck/
|
||||
OWML.Config.json
|
||||
|
@ -8,6 +8,7 @@ using QSB.GeyserSync.Patches;
|
||||
using QSB.ItemSync.Patches;
|
||||
using QSB.LogSync.Patches;
|
||||
using QSB.OrbSync.Patches;
|
||||
using QSB.Player.Patches;
|
||||
using QSB.PoolSync.Patches;
|
||||
using QSB.QuantumSync.Patches;
|
||||
using QSB.RoastingSync.Patches;
|
||||
@ -49,7 +50,8 @@ namespace QSB.Patches
|
||||
new GeyserPatches(),
|
||||
new PoolPatches(),
|
||||
new CampfirePatches(),
|
||||
new RoastingPatches()
|
||||
new RoastingPatches(),
|
||||
new PlayerPatches()
|
||||
};
|
||||
|
||||
DebugLog.DebugWrite("Patch Manager ready.", MessageType.Success);
|
||||
|
20
QSB/Player/Patches/PlayerPatches.cs
Normal file
20
QSB/Player/Patches/PlayerPatches.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using QSB.Patches;
|
||||
|
||||
namespace QSB.Player.Patches
|
||||
{
|
||||
internal class PlayerPatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
public override void DoPatches() => QSBCore.HarmonyHelper.AddPrefix<PlayerCrushedController>("CrushPlayer", typeof(PlayerPatches), nameof(PlayerCrushedController_CrushPlayer));
|
||||
public override void DoUnpatches() => QSBCore.HarmonyHelper.Unpatch<PlayerCrushedController>("CrushPlayer");
|
||||
|
||||
public static bool PlayerCrushedController_CrushPlayer()
|
||||
{
|
||||
// #CrushIt https://www.twitch.tv/videos/846916781?t=00h03m51s
|
||||
// this is what you get from me when you mix tiredness and a headache - jokes and references only i will get
|
||||
Locator.GetDeathManager().KillPlayer(DeathType.Crushed);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
@ -74,7 +74,7 @@
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ParticleSystemModule">
|
||||
<HintPath>D:\EpicGames\OuterWilds\OuterWilds_Data\Managed\UnityEngine.ParticleSystemModule.dll</HintPath>
|
||||
<HintPath>$(GameDir)\OuterWilds_Data\Managed\UnityEngine.ParticleSystemModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
@ -142,6 +142,7 @@
|
||||
<Compile Include="Instruments\QSBCamera\CameraMode.cs" />
|
||||
<Compile Include="Instruments\InstrumentsManager.cs" />
|
||||
<Compile Include="Messaging\BoolMessage.cs" />
|
||||
<Compile Include="Player\Patches\PlayerPatches.cs" />
|
||||
<Compile Include="PoolSync\CustomNomaiRemoteCameraPlatform.cs" />
|
||||
<Compile Include="PoolSync\CustomNomaiRemoteCameraStreaming.cs" />
|
||||
<Compile Include="ItemSync\Events\DropItemEvent.cs" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<GameDir>D:\EpicGames\OuterWilds</GameDir>
|
||||
<GameDir>E:\Epic\Epic Games\OuterWilds</GameDir>
|
||||
<OwmlDir>C:\Users\Henry\AppData\Roaming\OuterWildsModManager\OWML</OwmlDir>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
|
@ -4,6 +4,6 @@
|
||||
"name": "Quantum Space Buddies",
|
||||
"description": "Adds online multiplayer to the game.",
|
||||
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"owmlVersion": "1.1.8"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user