Adjusted the distance check for players in player's path, effectively making the collision area of players larger. This can be changed in Bounds PlayerCollisionPoint method by increasing or decreasing the minDistance var.

This commit is contained in:
2024-09-24 21:36:12 -05:00
parent a67fee76c3
commit 962bebab6c
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ public class Bounds {
// Now check for player collisions
HashSet<AbstractWorldObject> nearbyPlayers = WorldGrid.getObjectsInRangePartial(player, distance + 2, MBServerStatics.MASK_PLAYER);
float minDistance = 1.0f; // Minimum distance between players
float minDistance = 5.0f; // Minimum distance between players
for (AbstractWorldObject awo : nearbyPlayers) {
PlayerCharacter otherPlayer = (PlayerCharacter) awo;
-4
View File
@@ -205,9 +205,6 @@ public class PlayerCharacter extends AbstractCharacter {
this.guildStatus = new AtomicInteger(0);
this.bindBuildingID = -1;
Vector3fImmutable center = new Vector3fImmutable(0, 0, 0);
Vector3fImmutable extents = new Vector3fImmutable(0.5f, 1.0f, 0.5f);
}
/**
@@ -5359,7 +5356,6 @@ public class PlayerCharacter extends AbstractCharacter {
moveToMsg.setSourceType(GameObjectType.PlayerCharacter.ordinal());
moveToMsg.setSourceID(this.getObjectUUID());
ChatManager.chatSystemInfo(this, "This is a test");
Dispatch dispatch = Dispatch.borrow(this, moveToMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);