some tidying and attempt to use flying animation when smartmoving is installed and player is moving quickly