...or, most likely, do you want the return value adjusted by HitX/YOffset?

Pretty much, do you need:
CenterX(x+HitXOffset)
or
CenterX(x) + HitXOffset

I could make it do either, as CenterX(lweapon l) with overloads for eweapon, item, and item; as well as CenterLinkX(bool offsets)

The Center* functions are one of the things going into locale too. It's annoying to type the 're' backwards, and can lead to invisible script errors.[/QUOTE]

Pretty much like this. Thanks for advice. Now the thread should be marked as "Not a bug".