Skip to content

Commit

Permalink
Change some parameters
Browse files Browse the repository at this point in the history
- Also disable moving sounds from dedicated (even though it never moves)
  • Loading branch information
Lacyway committed Aug 2, 2024
1 parent cbe748e commit dc0cc41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Fika.Dedicated/Classes/DedicatedMovementContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ public override void ApplyGravity(ref Vector3 motion, float deltaTime, bool stic
DedicatedMovementContext movementContext = Create<DedicatedMovementContext>(player, animatorGetter, characterControllerGetter, groundMask);
return movementContext;
}

public override void DirectApplyMotion(Vector3 motion, float deltaTime)
{
// Do nothing
}
}
}
2 changes: 1 addition & 1 deletion Fika.Dedicated/Classes/DedicatedRaidController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void Update()
}

Vector3 currentPosition = targetPlayer.Position;
MainPlayer.Teleport(new(currentPosition.x, currentPosition.y - 50, currentPosition.z));
MainPlayer.Teleport(new(currentPosition.x, currentPosition.y - 100, currentPosition.z));
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Fika.Dedicated/FikaDedicatedPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Fika.Dedicated
{
[BepInPlugin("com.fika.dedicated", "Dedicated", "1.0.1")]
[BepInPlugin("com.fika.dedicated", "Dedicated", "1.0.2")]
[BepInDependency("com.fika.core", BepInDependency.DependencyFlags.HardDependency)]
[BepInDependency("com.SPT.custom", BepInDependency.DependencyFlags.HardDependency)]
public class FikaDedicatedPlugin : BaseUnityPlugin
Expand Down
2 changes: 1 addition & 1 deletion Fika.Dedicated/Patches/Player_Init_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private static void Postfix(Player __instance)
}

Vector3 currentPosition = __instance.Position;
__instance.Teleport(new(currentPosition.x, currentPosition.y - 50f, currentPosition.z));
__instance.Teleport(new(currentPosition.x, currentPosition.y - 100f, currentPosition.z));
}
}
}
Expand Down

0 comments on commit dc0cc41

Please sign in to comment.