Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

Please Don't Banned Me Just Asking

 

I used aiw old leak files so I can play in Lan but I want to add the sliding text from iw4m to the lan project

 

This One:

// ==========================================================
// IW4M project
// 
// Component: clientdll
// Sub-component: steam_api
// Purpose: support code for the main menu news ticker
//
// Initial author: NTAuthority
// Started: 2012-04-19
// ==========================================================

#include "StdInc.h"

CallHook newsTickerGetTextHook;
DWORD newsTickerGetTextHookLoc = 0x6388C1;

char* Auth_GetUsername();
char ticker[1024];
const char* NewsTicker_GetText(const char* garbage)
{
if (!ticker[0])
{
	strcpy(ticker, va("Welcome to IW4M multiplayer, %s!", Auth_GetUsername()));
}
return ticker;
}

void PatchMW2_NewsTicker()
{
// hook for getting the news ticker string
*(WORD*)0x6388BB = 0x9090; // skip the "if (item->text[0] == '@')" localize check

// replace the localize function
newsTickerGetTextHook.initialize(newsTickerGetTextHookLoc, NewsTicker_GetText);
newsTickerGetTextHook.installHook();

// make newsfeed (ticker) menu items not cut off based on safe area
memset((void*)0x63892D, 0x90, 5);
}

Featured Replies

Опубликовано:
Please Don't Banned Me Just Asking

 

I used aiw old leak files so I can play in Lan but I want to add the sliding text from iw4m to the lan project

 

This One:

// ==========================================================
// IW4M project
// 
// Component: clientdll
// Sub-component: steam_api
// Purpose: support code for the main menu news ticker
//
// Initial author: NTAuthority
// Started: 2012-04-19
// ==========================================================

#include "StdInc.h"

CallHook newsTickerGetTextHook;
DWORD newsTickerGetTextHookLoc = 0x6388C1;

char* Auth_GetUsername();
char ticker[1024];
const char* NewsTicker_GetText(const char* garbage)
{
if (!ticker[0])
{
	strcpy(ticker, va("Welcome to IW4M multiplayer, %s!", Auth_GetUsername()));
}
return ticker;
}

void PatchMW2_NewsTicker()
{
// hook for getting the news ticker string
*(WORD*)0x6388BB = 0x9090; // skip the "if (item->text[0] == '@')" localize check

// replace the localize function
newsTickerGetTextHook.initialize(newsTickerGetTextHookLoc, NewsTicker_GetText);
newsTickerGetTextHook.installHook();

// make newsfeed (ticker) menu items not cut off based on safe area
memset((void*)0x63892D, 0x90, 5);
}

Compile it with that instead?

Опубликовано:

1) StdInc is in the project folder, I'm pretty sure old builds used that file too

2) You need to call PatchMW2_NewsTicker from the PatchMW2_182 function

3) You need to update the addresses for the hooks (a simple scan in IDA should do)

4) You need to get custom menus working (PatchMW2UILoading iirc)

-a) You need to call PatchMW2_UILoading from the PatchMW2_182 function

-B) You need to update the addresses for the hooks (a simple scan in IDA should do)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.