Ejemplo n.º 1
0
        protected bool UpdateRenderEntity(idRenderEntity renderEntity, idRenderView renderView)
        {
            // TODO: cinematic

            /*if ( gameLocal.inCinematic && gameLocal.skipCinematic ) {
             *      return false;
             * }*/

            idAnimator animator = this.Animator;

            if (animator != null)
            {
                return(animator.CreateFrame(idR.Game.Time, false));
            }

            return(false);
        }
Ejemplo n.º 2
0
        private void UpdateModel()
        {
            UpdateModelTransform();

            // check if the entity has an MD5 model
            idAnimator animator = this.Animator;

            if ((animator != null) && (animator.Model != null))
            {
                // set the callback to update the joints
                _renderEntity.Callback = ModelCallback;
            }

            // set to invalid number to force an update the next time the PVS areas are retrieved
            ClearPVSAreas();

            // ensure that we call Present this frame
            BecomeActive(EntityThinkFlags.UpdateVisuals);
        }
Ejemplo n.º 3
0
 public idAnimatedEntity()
     : base()
 {
     _animator = new idAnimator(this);
 }