Quote
struct CampaignMission
{
char *missionName;
int missionIndex;
};
SCBW_DATA(CampaignMission, campaignMissions, 0x4FFF60);
void *loadInitCreditsBIN(char *a1) {
int address = 0x4d8df0;
void * result_;
__asm {
mov eax, a1
call address
mov result_, eax
}
return result_;
}
void __cdecl sub_4D9200()
{
if (!multiPlayerMode && !(CHEAT_STATE & CheatFlags::CHEAT_NoGlues) && campaignIndex)
{
for (int i = 0; i < 65; i++)
{
if (campaignMissions[i].missionIndex == CampaignIndex)
loadInitCreditsBIN(campaignMissions[i].missionName);
}
}
// The code above is the original function at address 0x4D9200
// The code below is my patch:
else if (campaignIndex == 0 && CurrentMapFileName)
{
SFileOpenArchive(CurrentMapFileName, 0, 0, &mapArchiveHandle);
HANDLE unusedHandle;
bool establishingShotExists = SFileOpenFileEx(mapArchiveHandle, "rez\\est.txt", 0, &unusedHandle);
if (establishingShotExists)
{
loadInitCreditsBIN_("est");
}
SFileCloseArchive(mapArchiveHandle);
}
}
{
char *missionName;
int missionIndex;
};
SCBW_DATA(CampaignMission, campaignMissions, 0x4FFF60);
void *loadInitCreditsBIN(char *a1) {
int address = 0x4d8df0;
void * result_;
__asm {
mov eax, a1
call address
mov result_, eax
}
return result_;
}
void __cdecl sub_4D9200()
{
if (!multiPlayerMode && !(CHEAT_STATE & CheatFlags::CHEAT_NoGlues) && campaignIndex)
{
for (int i = 0; i < 65; i++)
{
if (campaignMissions[i].missionIndex == CampaignIndex)
loadInitCreditsBIN(campaignMissions[i].missionName);
}
}
// The code above is the original function at address 0x4D9200
// The code below is my patch:
else if (campaignIndex == 0 && CurrentMapFileName)
{
SFileOpenArchive(CurrentMapFileName, 0, 0, &mapArchiveHandle);
HANDLE unusedHandle;
bool establishingShotExists = SFileOpenFileEx(mapArchiveHandle, "rez\\est.txt", 0, &unusedHandle);
if (establishingShotExists)
{
loadInitCreditsBIN_("est");
}
SFileCloseArchive(mapArchiveHandle);
}
}
With this code (directly from discord) embedded and plugged in to a mod, he was able to come up with this (from Pr0nogo):
https://youtu.be/9LHbfyHP9K4
CREDITS TO - X405
By Diogo Mainardi:
"Brazil is the country of the future. But we won't get better. It's everyone else who'll get worse."
"My ideology, as a public figure whom writes an opinion column, is very well set: Press IS NOT propaganda. Should a journalist make propaganda for the government, I don't have the slightest corporate shame. I'll mock him."
"The government once called me an 'unreliable source'. It was the greatest compliment I could ever receive, I'd frame it and hang it on the wall. Imagine if I were considered a 'trustworthy man'. I'd change profession."
"I was once tired of the firefights at my doorstep. Now it's gone better - they started bombing."
"Brazil is the country of the future. But we won't get better. It's everyone else who'll get worse."
"My ideology, as a public figure whom writes an opinion column, is very well set: Press IS NOT propaganda. Should a journalist make propaganda for the government, I don't have the slightest corporate shame. I'll mock him."
"The government once called me an 'unreliable source'. It was the greatest compliment I could ever receive, I'd frame it and hang it on the wall. Imagine if I were considered a 'trustworthy man'. I'd change profession."
"I was once tired of the firefights at my doorstep. Now it's gone better - they started bombing."