feat: admen abooze

This commit is contained in:
2026-09-09 21:14:45 +02:00
parent 043f8f07c0
commit 02ba3b3663
68 changed files with 228 additions and 2039 deletions
+14 -17
View File
@@ -126,11 +126,11 @@ namespace colors
if (index == '8')
{
*color = *reinterpret_cast<DWORD*>(SELECT_VALUE(0x145FFD958, 0x1480E85BC));
*color = *reinterpret_cast<DWORD*>(0x1480E85BC);
}
else if (index == '9')
{
*color = *reinterpret_cast<DWORD*>(SELECT_VALUE(0x145FFD95C, 0x1480E85C0));
*color = *reinterpret_cast<DWORD*>(0x1480E85C0);
}
else if (index == ':')
{
@@ -138,7 +138,7 @@ namespace colors
}
else if (index == ';')
{
*color = *reinterpret_cast<DWORD*>(SELECT_VALUE(0x145FFD964, 0x1480E85C8));
*color = *reinterpret_cast<DWORD*>(0x1480E85C8);
}
else
{
@@ -157,25 +157,22 @@ namespace colors
return;
}
if (!game::environment::is_sp())
{
// allows colored name in-game
utils::hook::call(0x1403881CF, com_clean_name_stub);
utils::hook::call(0x140388224, com_clean_name_stub);
// allows colored name in-game
utils::hook::call(0x1403881CF, com_clean_name_stub);
utils::hook::call(0x140388224, com_clean_name_stub);
// don't apply colors to overhead names
utils::hook::call(0x14025CE79, cl_get_client_name_and_clan_tag_stub);
// don't apply colors to overhead names
utils::hook::call(0x14025CE79, cl_get_client_name_and_clan_tag_stub);
// don't apply colors to overhead names of agents (like dogs or juggernauts)
// hook Com_sprintf in CL_GetAgentName
utils::hook::call(0x1402CF760, com_sprintf_stub);
// don't apply colors to overhead names of agents (like dogs or juggernauts)
// hook Com_sprintf in CL_GetAgentName
utils::hook::call(0x1402CF760, com_sprintf_stub);
// patch I_CleanStr
utils::hook::jump(0x1404F63C0, i_clean_str_stub);
}
// patch I_CleanStr
utils::hook::jump(0x1404F63C0, i_clean_str_stub);
// force new colors
utils::hook::jump(SELECT_VALUE(0x14055DCC0, 0x14062AE80), rb_lookup_color_stub);
utils::hook::jump(0x14062AE80, rb_lookup_color_stub);
// add colors
add(0, 0, 0); // 0 - Black