adjusted how character Z levels are calculated to properly slide the avatar behind them