Browse Source

2.2n

master
shelru 8 years ago committed by GitHub
parent
commit
499d562749
  1. 8
      MiniBase/client.cpp
  2. 1
      MiniBase/enginemsg.cpp

8
MiniBase/client.cpp

@ -21,7 +21,6 @@ cvar_t *events_block; @@ -21,7 +21,6 @@ cvar_t *events_block;
cvar_t *ex_thud;
cvar_t *motd_block;
cvar_t *type;
void HookEngineMessages(){
pEngineMsgBase = (PEngineMsg)offset.FindSVCMessages();
pSVC_StuffText = HookEngineMsg("svc_stufftext", SVC_StuffText);
@ -96,8 +95,6 @@ void Reload(){ @@ -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));
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));
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);
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(){ @@ -151,7 +148,7 @@ void InitHack(){
}
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, "-- Thank's to Realwar for title\n");
ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n");
@ -167,9 +164,6 @@ void InitHack(){ @@ -167,9 +164,6 @@ void InitHack(){
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);
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(){

1
MiniBase/enginemsg.cpp

@ -29,7 +29,6 @@ HL_MSG_ReadBitVec3Coord MSG_ReadBitVec3Coord = nullptr; @@ -29,7 +29,6 @@ HL_MSG_ReadBitVec3Coord MSG_ReadBitVec3Coord = nullptr;
HL_MSG_ReadBits MSG_ReadBits = nullptr;
HL_MSG_StartBitReading MSG_StartBitReading = nullptr;
HL_MSG_EndBitReading MSG_EndBitReading = nullptr;
extern cvar_t *type;
void MSG_SaveReadCount(){
MSG_SavedReadCount = *MSG_ReadCount;
}

Loading…
Cancel
Save