properly configure hitbox radius

This commit is contained in:
2025-03-11 19:52:46 -05:00
parent 32563e3f5f
commit f4361113ed
2 changed files with 8 additions and 9 deletions
+3 -1
View File
@@ -1046,7 +1046,9 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if (MBServerStatics.COMBAT_TARGET_HITBOX_DEBUG) {
Logger.info("Hit box radius for " + this.getFirstName() + " is " + (this.statStrCurrent / 200f));
}
return ((PlayerCharacter) this).getStrForClient() / 200f;
int strength = ((PlayerCharacter) this).statStrBase;
float radius = strength * 0.1f * 0.5f;
return radius;
//TODO CALCULATE MOB HITBOX BECAUSE FAIL EMU IS FAIL!!!!!!!
} else if (this.getObjectType() == GameObjectType.Mob) {
if (MBServerStatics.COMBAT_TARGET_HITBOX_DEBUG) {