Пример #1
0
 private void ButtonRandom_Click(object sender, EventArgs e)
 {
     //this method is not accessible from the UI. It randomizes all lightmaps in a given bsp. (this power is too great to be handled by mere mortals)
     if (map != null)
     {
         map.file.Close();
     }
     map = new Bsp(new FileInfo(textBoxBsp.Text));
     surface.randoLightmaps(new Random());
 }
Пример #2
0
        public void randoLightmap()
        {
            Random rand = new Random();

            for (int i = 0; i < bsp.offsets[7].Value / 56; i++)
            {
                Dface_t face = new Dface_t(i, bsp);
                face.randoLightmaps(rand);
                face.writeLightmap();
            }
        }