Files
ForeverCore/src
Karrz1 5e99649786 Units: SIN's collision height fix as he wrote it
SIN's fix for creature models whose client data stores a negative
'unset' collision height (-20000000, model 34 and others): such a model
now gets the default collision height (2.03128), and a mount height
that is not set is ignored. Some raptors' melee swings failed the line
of sight check because of it.

This replaces our fix for the same bug, which took the top of the
model's bounding box instead (CreatureModelDataEntry::GetCollisionHeight,
removed). For those 68 models the height is now the default, not the
model's own.

Code by SIN (1amcoff1n), Invalid creature collision heights for 0.1.35.
Applied as written; only the hunk position differs in our Unit.cpp. To build,
the bot module's collisionprobe command now prints the raw model height
(it called the removed helper).
2026-11-16 20:48:01 +00:00
..