Пример #1
0
        public void SetPlayerPosition(int player, float x, float y, float z)
        {
            ServerEntityPositionAndOrientation pos = server.clients[player].entity.position.Clone();

            pos.x = x;
            pos.y = z;
            pos.z = y;
            server.clients[player].positionOverride = pos;
        }
Пример #2
0
        public ServerEntityPositionAndOrientation Clone()
        {
            ServerEntityPositionAndOrientation ret = new ServerEntityPositionAndOrientation();

            ret.x       = x;
            ret.y       = y;
            ret.z       = z;
            ret.heading = heading;
            ret.pitch   = pitch;
            ret.stance  = stance;
            return(ret);
        }