Regalis11 / scpcb

SCP - Containment Breach
354 stars 101 forks source link

Fixed tank models #232

Closed Saalvage closed 1 year ago

Saalvage commented 1 year ago

Before

image

After

image

Saalvage commented 1 year ago

image That's an issue with the room itself, the tank model is not rotated correctly, I'll see if I can hack it to be correct.

Saalvage commented 1 year ago

End result:

image

I've also written a small C# script to check which rooms contain certain props, it does its job:

string[] check = {
    "tank1.x",
    "tank2.x",
};

var checkBytes = check.Select(x => Encoding.ASCII.GetBytes(x)).ToArray();

foreach (var file in Directory.EnumerateFiles(Console.ReadLine(), "*.rmesh")) {
    var bytes = await File.ReadAllBytesAsync(file);
    foreach (var i in Enumerable.Range(0, bytes.Length)) {
        foreach (var c in checkBytes) {
            if (bytes.Skip(i).Take(c.Length).SequenceEqual(c)) {
                Console.WriteLine(file + "   " + Encoding.ASCII.GetString(c));
            }
        }
    }
}