How semi auto function is achieved in an airgun