mirror of
https://github.com/r4sas/ExtraMirror
synced 2025-01-08 22:07:56 +00:00
2.2n
This commit is contained in:
parent
fb6ed6c0e4
commit
499d562749
@ -21,7 +21,6 @@ cvar_t *events_block;
|
|||||||
|
|
||||||
cvar_t *ex_thud;
|
cvar_t *ex_thud;
|
||||||
cvar_t *motd_block;
|
cvar_t *motd_block;
|
||||||
cvar_t *type;
|
|
||||||
void HookEngineMessages(){
|
void HookEngineMessages(){
|
||||||
pEngineMsgBase = (PEngineMsg)offset.FindSVCMessages();
|
pEngineMsgBase = (PEngineMsg)offset.FindSVCMessages();
|
||||||
pSVC_StuffText = HookEngineMsg("svc_stufftext", SVC_StuffText);
|
pSVC_StuffText = HookEngineMsg("svc_stufftext", SVC_StuffText);
|
||||||
@ -96,8 +95,6 @@ void Reload(){
|
|||||||
sprintf(cvarname, "logs %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
sprintf(cvarname, "logs %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
||||||
sprintf(cvarname, "motd_block %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
sprintf(cvarname, "motd_block %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
|
||||||
sprintf(cvarname, "type %s", value); g_Engine.pfnClientCmd(cvarname); memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("events_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
GetPrivateProfileString(TEXT("Settings"), TEXT("events_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
||||||
sprintf(cvarname, "events_block %s", value); g_Engine.pfnClientCmd(cvarname); memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
sprintf(cvarname, "events_block %s", value); g_Engine.pfnClientCmd(cvarname); memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname));
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ void InitHack(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(g_Engine.Con_IsVisible() != 0))g_Engine.pfnClientCmd("toggleconsole");
|
if (!(g_Engine.Con_IsVisible() != 0))g_Engine.pfnClientCmd("toggleconsole");
|
||||||
ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.2\n");
|
ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.2n\n");
|
||||||
ConsolePrintColor(255, 255, 255, "-- Use 'credits' for more information\n");
|
ConsolePrintColor(255, 255, 255, "-- Use 'credits' for more information\n");
|
||||||
ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n");
|
ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n");
|
||||||
ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n");
|
ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n");
|
||||||
@ -167,9 +164,6 @@ void InitHack(){
|
|||||||
events_block = g_pEngine->pfnRegisterVariable("events_block", value, 0); memset(value, 0, sizeof(value));
|
events_block = g_pEngine->pfnRegisterVariable("events_block", value, 0); memset(value, 0, sizeof(value));
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
||||||
motd_block = g_pEngine->pfnRegisterVariable("motd_block", value, 0);memset(value, 0, sizeof(value));
|
motd_block = g_pEngine->pfnRegisterVariable("motd_block", value, 0);memset(value, 0, sizeof(value));
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
|
||||||
type = g_pEngine->pfnRegisterVariable("type", value, 0); memset(value, 0, sizeof(value));
|
|
||||||
GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HookEventMessages(){
|
void HookEventMessages(){
|
||||||
|
@ -29,7 +29,6 @@ HL_MSG_ReadBitVec3Coord MSG_ReadBitVec3Coord = nullptr;
|
|||||||
HL_MSG_ReadBits MSG_ReadBits = nullptr;
|
HL_MSG_ReadBits MSG_ReadBits = nullptr;
|
||||||
HL_MSG_StartBitReading MSG_StartBitReading = nullptr;
|
HL_MSG_StartBitReading MSG_StartBitReading = nullptr;
|
||||||
HL_MSG_EndBitReading MSG_EndBitReading = nullptr;
|
HL_MSG_EndBitReading MSG_EndBitReading = nullptr;
|
||||||
extern cvar_t *type;
|
|
||||||
void MSG_SaveReadCount(){
|
void MSG_SaveReadCount(){
|
||||||
MSG_SavedReadCount = *MSG_ReadCount;
|
MSG_SavedReadCount = *MSG_ReadCount;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user