mirror of
https://github.com/r4sas/ExtraMirror
synced 2025-01-09 06:18:07 +00:00
Add files via upload
This commit is contained in:
parent
f7c984cd58
commit
74e5397d33
@ -149,8 +149,9 @@ void InitHack(){
|
|||||||
g_blockedCvars[g_blockedCvarCount++] = strdup(psKeyName2);
|
g_blockedCvars[g_blockedCvarCount++] = strdup(psKeyName2);
|
||||||
psKeyName2 += strlen(psKeyName2) + 1;
|
psKeyName2 += strlen(psKeyName2) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
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 v1.8\n");
|
ConsolePrintColor(0, 255, 11, "-- Extra Mirror v1.8e\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");
|
||||||
@ -173,7 +174,6 @@ void InitHack(){
|
|||||||
|
|
||||||
void HookEventMessages(){
|
void HookEventMessages(){
|
||||||
pEventMsgBase = (PEventMsg)offset.FindEventMsgBase();
|
pEventMsgBase = (PEventMsg)offset.FindEventMsgBase();
|
||||||
pEvent_usp = HookEventMsg("events/usp.sc", Event_usp);
|
|
||||||
pEvent_ak47 = HookEventMsg("events/ak47.sc", Event_ak47);
|
pEvent_ak47 = HookEventMsg("events/ak47.sc", Event_ak47);
|
||||||
pEvent_aug = HookEventMsg("events/aug.sc", Event_aug);
|
pEvent_aug = HookEventMsg("events/aug.sc", Event_aug);
|
||||||
pEvent_awp = HookEventMsg("events/awp.sc", Event_awp);
|
pEvent_awp = HookEventMsg("events/awp.sc", Event_awp);
|
||||||
@ -209,7 +209,8 @@ void HookEventMessages(){
|
|||||||
void HUD_Frame(double time){
|
void HUD_Frame(double time){
|
||||||
if (!FirstFrame){
|
if (!FirstFrame){
|
||||||
g_Screen.iSize = sizeof(SCREENINFO);offset.HLType = g_Studio.IsHardware() + 1;offset.ConsoleColorInitalize();
|
g_Screen.iSize = sizeof(SCREENINFO);offset.HLType = g_Studio.IsHardware() + 1;offset.ConsoleColorInitalize();
|
||||||
offset.GetGameInfo(&BuildInfo);HookUserMessages(); HookEventMessages(); HookEngineMessages();InitHack();FirstFrame = true;
|
offset.GetGameInfo(&BuildInfo);HookUserMessages(); HookEngineMessages();InitHack();FirstFrame = true;
|
||||||
|
HookEventMessages();
|
||||||
}
|
}
|
||||||
g_Engine.pfnGetScreenInfo(&g_Screen);
|
g_Engine.pfnGetScreenInfo(&g_Screen);
|
||||||
g_Client.HUD_Frame(time);
|
g_Client.HUD_Frame(time);
|
||||||
|
@ -55,7 +55,6 @@ bool cOffset::GetModuleInfo()
|
|||||||
void cOffset::Error(char* Msg)
|
void cOffset::Error(char* Msg)
|
||||||
{
|
{
|
||||||
MessageBoxA(0, Msg, OFF_ERROR, MB_OK | MB_ICONERROR);
|
MessageBoxA(0, Msg, OFF_ERROR, MB_OK | MB_ICONERROR);
|
||||||
ExitProcess(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD cOffset::FindClientTable()
|
DWORD cOffset::FindClientTable()
|
||||||
@ -239,11 +238,16 @@ DWORD cOffset::FindSVCMessages()
|
|||||||
|
|
||||||
return (DWORD)pEngineMsgBase;
|
return (DWORD)pEngineMsgBase;
|
||||||
}
|
}
|
||||||
|
#define equali !stricmp
|
||||||
DWORD cOffset::FindEventMsgBase()
|
DWORD cOffset::FindEventMsgBase()
|
||||||
{
|
{
|
||||||
DWORD PatternAddress = FindPattern(OFF_EVENT_MSG_BASE, HwBase, HwEnd, 0);
|
DWORD PatternAddress = FindPattern(OFF_EVENT_MSG_BASE, HwBase, HwEnd, 0);
|
||||||
DWORD ReferenAddress = FindReference(HwBase, HwEnd, PatternAddress) - 0x07;
|
DWORD ReferenAddress;
|
||||||
|
if (equali(BuildInfo.GameVersion,"4554")){
|
||||||
|
ReferenAddress = FindReference(HwBase, HwEnd, PatternAddress) - 0x06;
|
||||||
|
}
|
||||||
|
else { ReferenAddress = FindReference(HwBase, HwEnd, PatternAddress) - 0x07; }
|
||||||
|
|
||||||
if (FarProc(ReferenAddress, HwBase, HwEnd))
|
if (FarProc(ReferenAddress, HwBase, HwEnd))
|
||||||
{
|
{
|
||||||
Error(OFF_EVENT_MSG_ERROR);
|
Error(OFF_EVENT_MSG_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user