Skip to content

Commit

Permalink
13.1 question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Axwabo committed Jun 26, 2023
1 parent 065cf44 commit bc32909
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion slocLoader.NWAPI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.1.0")]
12 changes: 10 additions & 2 deletions slocLoader.NWAPI/TriggerActions/Handlers/TriggerActionHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using InventorySystem.Items.Pickups;
using InventorySystem.Items.ThrowableProjectiles;
using Mirror;
using PlayerRoles.FirstPersonControl;
using slocLoader.TriggerActions.Enums;
Expand All @@ -23,8 +24,15 @@ public static void ResetVelocityOfPickup(ItemPickupBase pickup, TeleportOptions
{
if (!options.Is(TeleportOptions.ResetVelocity))
return;
pickup._estimatedVelocity = Vector3.zero;
pickup.RigidBody.velocity = Vector3.zero;
switch (pickup.PhysicsModule)
{
case PickupStandardPhysics physics:
physics.Rb.velocity = Vector3.zero;
break;
case Scp018Physics scp018:
scp018._lastVelocity = Vector3.zero;
break;
}
}

public static bool TryGetMovementModule(this ReferenceHub hub, out FirstPersonMovementModule module)
Expand Down
2 changes: 1 addition & 1 deletion slocLoader.NWAPI/slocPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class slocPlugin
[PluginConfig]
public slocConfig Config = new();

[PluginEntryPoint("slocLoader", "4.1.0", "A plugin that loads sloc files.", "Axwabo")]
[PluginEntryPoint("slocLoader", "4.1.1", "A plugin that loads sloc files.", "Axwabo")]
public void OnEnabled()
{
Instance = this;
Expand Down
2 changes: 1 addition & 1 deletion slocLoader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.1.0")]
12 changes: 10 additions & 2 deletions slocLoader/TriggerActions/Handlers/TriggerActionHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using InventorySystem.Items.Pickups;
using InventorySystem.Items.ThrowableProjectiles;
using Mirror;
using PlayerRoles.FirstPersonControl;
using slocLoader.TriggerActions.Enums;
Expand All @@ -23,8 +24,15 @@ public static void ResetVelocityOfPickup(ItemPickupBase pickup, TeleportOptions
{
if (!options.Is(TeleportOptions.ResetVelocity))
return;
pickup._estimatedVelocity = Vector3.zero;
pickup.RigidBody.velocity = Vector3.zero;
switch (pickup.PhysicsModule)
{
case PickupStandardPhysics physics:
physics.Rb.velocity = Vector3.zero;
break;
case Scp018Physics scp018:
scp018._lastVelocity = Vector3.zero;
break;
}
}

public static bool TryGetMovementModule(this ReferenceHub hub, out FirstPersonMovementModule module)
Expand Down
2 changes: 1 addition & 1 deletion slocLoader/slocPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class slocPlugin : Plugin<slocConfig>
public override string Name => "slocLoader";
public override string Prefix => "sloc";
public override string Author => "Axwabo";
public override Version Version { get; } = new(4, 1, 0);
public override Version Version { get; } = new(4, 1, 1);
public override Version RequiredExiledVersion { get; } = new(7, 0, 0);

private Harmony _harmony;
Expand Down

0 comments on commit bc32909

Please # to comment.