Exemple #1
0
        public Viewpoint(Base_Entity boundEnt)
        {
            BindToEntity(boundEnt);

            mPos = boundEnt.mPosition;
            mAngles = boundEnt.mAngles;
        }
Exemple #2
0
        public Viewpoint()
        {
            mBoundEnt = null;
            mBoundToEnt = false;

            mPos = new Vector2(2.5f, 2.5f);
            mAngles = new Angle2D(-1, 0);
        }
Exemple #3
0
        public void BindToEntity(Base_Entity ent)
        {
            if (ent == null)
                return;

            mBoundEnt = ent;
            mBoundToEnt = true;

            if (ent.GetType() == typeof(player))
                mBoundType = ENT_TYPE.ENT_PLAYER;
            else
                mBoundType = ENT_TYPE.ENT_GENERIC;
        }