Fix intro
This commit is contained in:
parent
967cfff5ec
commit
705ab362f0
@ -238,6 +238,7 @@ namespace Components
|
|||||||
|
|
||||||
// intro stuff
|
// intro stuff
|
||||||
Utils::Hook::Nop(0x60BEE9, 5); // Don't show legals
|
Utils::Hook::Nop(0x60BEE9, 5); // Don't show legals
|
||||||
|
Utils::Hook::Nop(0x60BEF6, 5); // Don't reset the intro dvar
|
||||||
Utils::Hook::Set<char*>(0x60BED2, "unskippablecinematic IW_logo\n");
|
Utils::Hook::Set<char*>(0x60BED2, "unskippablecinematic IW_logo\n");
|
||||||
|
|
||||||
// Redirect logs
|
// Redirect logs
|
||||||
|
@ -37,14 +37,14 @@ namespace Components
|
|||||||
Game::vec4_t color = { 0, 0, 0, 0.7f };
|
Game::vec4_t color = { 0, 0, 0, 0.7f };
|
||||||
Game::vec4_t wColor = { 1.0f, 1.0f, 1.0f, 1.0f };
|
Game::vec4_t wColor = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||||
|
|
||||||
|
height /= 5;
|
||||||
|
height *= 4;
|
||||||
|
|
||||||
if (Game::Com_Milliseconds() < startTime || (startTime + duration) < Game::Com_Milliseconds()) return;
|
if (Game::Com_Milliseconds() < startTime || (startTime + duration) < Game::Com_Milliseconds()) return;
|
||||||
|
|
||||||
// Fadein stuff
|
// Fadein stuff
|
||||||
else if (Game::Com_Milliseconds() - startTime < slideTime)
|
else if (Game::Com_Milliseconds() - startTime < slideTime)
|
||||||
{
|
{
|
||||||
height /= 5;
|
|
||||||
height *= 4;
|
|
||||||
|
|
||||||
int diffH = Renderer::Height() / 5;
|
int diffH = Renderer::Height() / 5;
|
||||||
int diff = Game::Com_Milliseconds() - startTime;
|
int diff = Game::Com_Milliseconds() - startTime;
|
||||||
double scale = 1.0 - ((1.0 * diff) / (1.0 * slideTime));
|
double scale = 1.0 - ((1.0 * diff) / (1.0 * slideTime));
|
||||||
@ -55,9 +55,6 @@ namespace Components
|
|||||||
// Fadeout stuff
|
// Fadeout stuff
|
||||||
else if (Game::Com_Milliseconds() - startTime > (duration - slideTime))
|
else if (Game::Com_Milliseconds() - startTime > (duration - slideTime))
|
||||||
{
|
{
|
||||||
height /= 5;
|
|
||||||
height *= 4;
|
|
||||||
|
|
||||||
int diffH = Renderer::Height() / 5;
|
int diffH = Renderer::Height() / 5;
|
||||||
int diff = (startTime + duration) - Game::Com_Milliseconds();
|
int diff = (startTime + duration) - Game::Com_Milliseconds();
|
||||||
double scale = 1.0 - ((1.0 * diff) / (1.0 * slideTime));
|
double scale = 1.0 - ((1.0 * diff) / (1.0 * slideTime));
|
||||||
@ -65,12 +62,6 @@ namespace Components
|
|||||||
height += diffH;
|
height += diffH;
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
height /= 5;
|
|
||||||
height *= 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
height += bHeight / 2 + aCorners - cornerSize;
|
height += bHeight / 2 + aCorners - cornerSize;
|
||||||
|
|
||||||
// Calculate width data
|
// Calculate width data
|
||||||
|
Loading…
Reference in New Issue
Block a user