Skip to content

Commit

Permalink
Fix experiment bug, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Sep 10, 2024
1 parent edc4620 commit 0649701
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Added XR Mirror View patches that allow moving the monitor view around a bit. Invalid values will cause the monitor view to break.
- Added an option to change UI press sensitivity, which has also been made more sensitive by default
- Added a toast notification for when VR fails informing the user to **check the damn logs**
- Added an experiment that can be enabled by passing `--lcvr-disable-car-ownership-patch` to the start options, which might fix the car exploding randomly

**Changes**:

Expand All @@ -23,6 +24,7 @@
- Fixed TZP steering the player towards the wrong direction
- Fixed potential denial-of-service exploit in networking system
- Fixed issues with positioning when standing on top of physics objects (car, elevator)
- Fixed crash on death in V64 caused by stack corruption

# 1.3.1

Expand Down
2 changes: 1 addition & 1 deletion Source/Patches/Spectating/AIPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static IEnumerable<CodeInstruction> LineOfSightPlayerIgnoreDeadPlayer(
}

/// <summary>
/// Prevent the closest player line of sight detection for dead players
/// Prevent "closest player line of sight detection" for dead players
/// </summary>
[HarmonyPatch(typeof(EnemyAI), nameof(EnemyAI.CheckLineOfSightForClosestPlayer))]
[HarmonyTranspiler]
Expand Down
2 changes: 1 addition & 1 deletion Source/Patches/Spectating/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static void OnPlayerDeath(PlayerControllerB __instance)
shipDoorWall.GetComponent<BoxCollider>().isTrigger = true;

// Make sure any cars are not owned by us if we're the host
if (NetworkManager.Singleton.IsHost)
if (NetworkManager.Singleton.IsHost && !Plugin.Flags.HasFlag(Flags.ExperimentalDisableCarOwnershipPatch))
{
var alivePlayer = StartOfRound.Instance.allPlayerScripts.FirstOrDefault(player => !player.isPlayerDead);
if (alivePlayer)
Expand Down

0 comments on commit 0649701

Please sign in to comment.