const CStalkerAnimationScript &CStalkerAnimationManager::assign_script_animation () { VERIFY (!script_animations().empty()); const CStalkerAnimationScript &animation = script_animations().front(); if ( animation.use_movement_controller() || script().use_animation_movement_control(m_skeleton_animated, animation.animation())) script().target_matrix (object().XFORM()); return (script_animations().front()); }
IC bool CStalkerAnimationManager::script_callback () const { if (script_animations().empty()) return (false); return (object().callback(GameObject::eScriptAnimation)); }
bool CStalkerAnimationManager::play_script () { if (script_animations().empty()) { script().reset (); return (false); } play_script_impl (); return (true); }
const CStalkerAnimationScript &CStalkerAnimationManager::assign_script_animation () const { VERIFY (!script_animations().empty()); return (script_animations().front()); }