mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-01-20 01:10:13 +00:00
Lowered the maximum distance between hitbox effects
This commit is contained in:
parent
d6471d5961
commit
32ea23682a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void generate_hitbox_effects(L2CAgent *l2c_agent, L2CValue *bone, L2CValue *size
|
|||
yDist = y2->raw_float - y->raw_float;
|
||||
zDist = z2->raw_float - z->raw_float;
|
||||
float dist = sqrtf(xDist * xDist + yDist * yDist + zDist * zDist);
|
||||
nEffects = (int)ceilf(dist / (size->raw_float * 1.875f)) + 1; // just enough effects to form a continuous line
|
||||
nEffects = (int)ceilf(dist / (size->raw_float * 1.75f)) + 1; // just enough effects to form a continuous line
|
||||
if (nEffects < 2)
|
||||
nEffects = 2;
|
||||
if (nEffects > MAX_EFFECTS_PER_HITBOX)
|
||||
|
|
Loading…
Reference in a new issue