Esempio n. 1
0
        public virtual BaseEntity GetPlayerSpawnSpot(BasePlayer pPlayer)
        {
            var spawnSpot = PlayerUtils.EntSelectSpawnPoint(pPlayer);

            pPlayer.Origin     = spawnSpot.Origin + new Vector(0, 0, 1);
            pPlayer.ViewAngle  = WorldConstants.g_vecZero;
            pPlayer.Velocity   = WorldConstants.g_vecZero;
            pPlayer.Angles     = spawnSpot.Angles;
            pPlayer.PunchAngle = WorldConstants.g_vecZero;
            pPlayer.FixAngle   = FixAngleMode.ForceViewAngles;

            return(spawnSpot);
        }