Improve animation state handling

This improves handling of idle, movement, and death animation states so that it better matches vanilla's behavior (in first-person particularly, as well as with certain weapon types).