SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  string path = paks + "\\pakchunk0-WindowsClient.pak";
  2.             string path2 = paks + "\\pakchunk10_s2-WindowsClient.pak";
  3.             string path3 = paks + "\\pakchunk10_s2-WindowsClient.pak";
  4.  
  5.             Stream stream2 = File.OpenRead(path3);
  6.             try
  7.             {
  8.                 foreach (long offset in Researcher.FindPosition(stream2, 0, head_index, RenegadeRaider.HeadMesh1))
  9.                 {
  10.                     stream2.Close();
  11.                     BinaryWriter binaryWriter = new BinaryWriter(File.Open(path3, FileMode.Open, FileAccess.ReadWrite));
  12.                     binaryWriter.BaseStream.Seek(offset, SeekOrigin.Begin);
  13.                     binaryWriter.Write(RenegadeRaider.HeadMesh);
  14.                     binaryWriter.Close();
  15.                     ThreadHelperClass.SetText(this, renegade, "[LOG] Hat Texture Removed");
  16.                 }
  17.             }
  18.             finally
  19.             {
  20.             }
  21.  
  22.             Stream stream3 = File.OpenRead(path3);
  23.             try
  24.             {
  25.                 foreach (long offset in Researcher.FindPosition(stream3, 0, head_index, RenegadeRaider.Hat1))
  26.                 {
  27.                     stream3.Close();
  28.                     BinaryWriter binaryWriter = new BinaryWriter(File.Open(path3, FileMode.Open, FileAccess.ReadWrite));
  29.                     binaryWriter.BaseStream.Seek(offset, SeekOrigin.Begin);
  30.                     binaryWriter.Write(RenegadeRaider.Hat);
  31.                     binaryWriter.Close();
  32.                     ThreadHelperClass.SetText(this, renegade, "[LOG] Hat Removed");
  33.                 }
  34.             }
  35.             finally
  36.             {
  37.             }
  38.  
  39.             Stream stream4 = File.OpenRead(path3);
  40.             try
  41.             {
  42.                 foreach (long offset in Researcher.FindPosition(stream4, 0, body_index, RenegadeRaider.Body1))
  43.                 {
  44.                     stream4.Close();
  45.                     BinaryWriter binaryWriter = new BinaryWriter(File.Open(path2, FileMode.Open, FileAccess.ReadWrite));
  46.                     binaryWriter.BaseStream.Seek(offset, SeekOrigin.Begin);
  47.                     binaryWriter.Write(RenegadeRaider.Body);
  48.                     binaryWriter.Close();
  49.                     ThreadHelperClass.SetText(this, renegade, "[LOG] Body Removed");
  50.                 }
  51.             }
  52.             finally
  53.             {
  54.             }
  55.  
  56.          
  57.             Stream stream6 = File.OpenRead(path3);
  58.             try
  59.             {
  60.                 foreach (long offset in Researcher.FindPosition(stream6, 0, head_index, RenegadeRaider.Headtex1))
  61.                 {
  62.                     stream6.Close();
  63.                     BinaryWriter binaryWriter = new BinaryWriter(File.Open(path3, FileMode.Open, FileAccess.ReadWrite));
  64.                     binaryWriter.BaseStream.Seek(offset, SeekOrigin.Begin);
  65.                     binaryWriter.Write(RenegadeRaider.Headtex);
  66.                     binaryWriter.Close();
  67.                 }
  68.             }
  69.             finally
  70.             {
  71.             }
  72.             Stream stream7 = File.OpenRead(path3);
  73.             try
  74.             {
  75.                 foreach (long offset in Researcher.FindPosition(stream7, 0, head_index, RenegadeRaider.Hat))
  76.                 {
  77.                     stream7.Close();
  78.                     BinaryWriter binaryWriter = new BinaryWriter(File.Open(path3, FileMode.Open, FileAccess.ReadWrite));
  79.                     long offset1 = 290;
  80.                     long newoffset = offset + offset1‬;
  81.                     binaryWriter.BaseStream.Seek(newoffset, SeekOrigin.Begin);
  82.                     binaryWriter.Write(RenegadeRaider.hair3);
  83.                     binaryWriter.Close();
  84.                 }
  85.             }
  86.             finally
  87.             {
  88.             }
  89.  
  90.  
  91.             MessageBox.Show("Reverted!");      
  92.             ThreadHelperClass.SetText(this, renegade, "[LOG] Done!");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top