Merge pull request #821 from nullworks/totallynotelite
Hotfix: Remove scoreboard color
This commit is contained in:
commit
3782c66bc3
6
attach
6
attach
@ -30,9 +30,9 @@ echo Attaching to "$proc"
|
||||
|
||||
# pBypass for crash dumps being sent
|
||||
# You may also want to consider using -nobreakpad in your launch options.
|
||||
sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
sudo chown root:root /tmp/dumps # Claim it as root
|
||||
sudo chmod 000 /tmp/dumps # No permissions
|
||||
mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
chown root:root /tmp/dumps # Claim it as root
|
||||
chmod 000 /tmp/dumps # No permissions
|
||||
|
||||
FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)"
|
||||
|
||||
|
@ -30,9 +30,9 @@ echo Attaching to "$proc"
|
||||
|
||||
# pBypass for crash dumps being sent
|
||||
# You may also want to consider using -nobreakpad in your launch options.
|
||||
sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
sudo chown root:root /tmp/dumps # Claim it as root
|
||||
sudo chmod 000 /tmp/dumps # No permissions
|
||||
mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
chown root:root /tmp/dumps # Claim it as root
|
||||
chmod 000 /tmp/dumps # No permissions
|
||||
|
||||
FILENAME="/tmp/.gl$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 6)"
|
||||
|
||||
|
@ -26,16 +26,16 @@ echo Attaching to "$proc"
|
||||
|
||||
# pBypass for crash dumps being sent
|
||||
# You may also want to consider using -nobreakpad in your launch options.
|
||||
sudo mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
sudo chown root:root /tmp/dumps # Claim it as root
|
||||
sudo chmod 000 /tmp/dumps # No permissions
|
||||
mkdir -p /tmp/dumps # Make it as root if it doesnt exist
|
||||
chown root:root /tmp/dumps # Claim it as root
|
||||
chmod 000 /tmp/dumps # No permissions
|
||||
|
||||
# Get a Random name from the build_names file.
|
||||
FILENAME=$(shuf -n 1 build_names)
|
||||
|
||||
# Create directory if it doesn't exist
|
||||
if [ ! -d "/lib/i386-linux-gnu/" ]; then
|
||||
sudo mkdir /lib/i386-linux-gnu/
|
||||
mkdir /lib/i386-linux-gnu/
|
||||
fi
|
||||
|
||||
# In case this file exists, get another one. ( checked it works )
|
||||
|
@ -562,11 +562,11 @@ static CatCommand dump_vars_by_name("debug_dump_netvars_name", "Dump netvars of
|
||||
}
|
||||
});
|
||||
#if ENABLE_VISUALS && !ENFORCE_STREAM_SAFETY
|
||||
// This makes us able to see enemy class and status in scoreboard and player panel
|
||||
/*// This makes us able to see enemy class and status in scoreboard and player panel
|
||||
static std::unique_ptr<BytePatch> patch_playerpanel;
|
||||
static std::unique_ptr<BytePatch> patch_scoreboard1;
|
||||
static std::unique_ptr<BytePatch> patch_scoreboard2;
|
||||
static std::unique_ptr<BytePatch> patch_scoreboard3;
|
||||
static std::unique_ptr<BytePatch> patch_scoreboard3;*/
|
||||
|
||||
// Credits to UNKN0WN
|
||||
namespace ScoreboardColoring
|
||||
@ -719,10 +719,10 @@ void Shutdown()
|
||||
// unpatching local player
|
||||
render_zoomed = false;
|
||||
#if ENABLE_VISUALS && !ENFORCE_STREAM_SAFETY
|
||||
patch_playerpanel->Shutdown();
|
||||
/*patch_playerpanel->Shutdown();
|
||||
patch_scoreboard1->Shutdown();
|
||||
patch_scoreboard2->Shutdown();
|
||||
patch_scoreboard3->Shutdown();
|
||||
patch_scoreboard3->Shutdown();*/
|
||||
if (ScoreboardColoring::addr1 == 3 || ScoreboardColoring::addr2 == 2)
|
||||
return;
|
||||
|
||||
@ -739,7 +739,7 @@ static InitRoutine init([]() {
|
||||
render_zoomed.installChangeCallback(tryPatchLocalPlayerShouldDraw);
|
||||
EC::Register(EC::Draw, DrawText, "draw_misc_hacks", EC::average);
|
||||
#if !ENFORCE_STREAM_SAFETY
|
||||
patch_playerpanel = std::make_unique<BytePatch>(gSignatures.GetClientSignature, "0F 94 45 DF", 0x0, std::vector<unsigned char>{ 0xC6, 0x45, 0xDF, 0x01 });
|
||||
/*patch_playerpanel = std::make_unique<BytePatch>(gSignatures.GetClientSignature, "0F 94 45 DF", 0x0, std::vector<unsigned char>{ 0xC6, 0x45, 0xDF, 0x01 });
|
||||
uintptr_t addr_scrbrd = gSignatures.GetClientSignature("8B 10 89 74 24 04 89 04 24 FF 92 ? ? ? ? 83 F8 02 75 09");
|
||||
patch_scoreboard1 = std::make_unique<BytePatch>(addr_scrbrd, std::vector<unsigned char>{ 0xEB, 0x31, 0xE8, 0x08, 0x46, 0x10, 0x00, 0xE9, 0xC9, 0x06, 0x00, 0x00 });
|
||||
patch_scoreboard2 = std::make_unique<BytePatch>(addr_scrbrd + 0xA0, std::vector<unsigned char>{ 0xE9, 0x5D, 0xFF, 0xFF, 0xFF });
|
||||
@ -747,7 +747,7 @@ static InitRoutine init([]() {
|
||||
patch_playerpanel->Patch();
|
||||
patch_scoreboard1->Patch();
|
||||
patch_scoreboard2->Patch();
|
||||
patch_scoreboard3->Patch();
|
||||
patch_scoreboard3->Patch();*/
|
||||
|
||||
static BytePatch stealth_kill{ gSignatures.GetClientSignature, "84 C0 75 28 A1", 2, { 0x90, 0x90 } }; // stealth kill patch
|
||||
stealth_kill.Patch();
|
||||
|
Reference in New Issue
Block a user