Code: Select all
(GetCVar("vid_defwidth") / 4) + 0.0Code: Select all
(GetCVar("vid_defwidth") / 4) + 0.0Code: Select all
hudmessage (s:"The Slots Are Rolling..."; HUDMSG_FADEOUT, 1, 5, (GetCVar("vid_defwidth") / 4) + 0.0, 32.0, 2.0, 1.0);Code: Select all
int x = (GetCVar("vid_defwidth") / 4);
hudmessage (s:"The Slots Are Rolling..."; HUDMSG_FADEOUT, 1, 5, (x << 16), 32.0, 2.0, 1.0);
Code: Select all
int ar = GetAspectRatio();
if (ar != ASPECT_4_3)
{
SetHUDSize((GetCVar("vid_defwidth") / 2.5), (GetCVar("vid_defheight") / 2), 1); //SetHudSize(640, 400, 1);
} else {
SetHUDSize((GetCVar("vid_defwidth") / 2), (GetCVar("vid_defheight") / 2), 1); //SetHudSize(640, 400, 1);
}Fixed point division is a special case that should be done with [wiki]FixedDiv[/wiki]. Otherwise, "vid_defwidth / 2.5" is the same thing as "vid_defwidth / 327682".Kinsie wrote:Code: Select all
(GetCVar("vid_defwidth") / 2.5)
But Serpent does use SetHudSize.Nash wrote:Large overlapping texts all over the place (as was the case with Serpent: Resurrection and Reelism).
1) Predetermine a HUD size so that the message will appear at a consistant size, independant of the user's screen settings ([wiki]SetHudSize[/wiki]). This is a modding convention that I have practiced for many years, even before I noticed my first annoyance with the issue at hand.
Sorry to bump this, but can someone handle this for me? I still can't seem to get the horizontal scaling right on widescreen (line 4), even with this.Zippy wrote:Fixed point division is a special case that should be done with [wiki]FixedDiv[/wiki]. Otherwise, "vid_defwidth / 2.5" is the same thing as "vid_defwidth / 327682".Kinsie wrote:Code: Select all
(GetCVar("vid_defwidth") / 2.5)
Code: Select all
ar = GetAspectRatio();
if (ar != ASPECT_4_3)
{
SetHUDSize((GetCVar("vid_defwidth") / 3), (GetCVar("vid_defheight") / 2), 1); //SetHudSize(640, 400, 1);
fuckhacksforever = (GetCVar("vid_defwidth") / 6);
} else {
SetHUDSize((GetCVar("vid_defwidth") / 2), (GetCVar("vid_defheight") / 2), 1); //SetHudSize(640, 400, 1);
fuckhacksforever = (GetCVar("vid_defwidth") / 4);
}Code: Select all
SetHUDSize(FixedDiv(GetCVar("vid_defwidth"), 2.5), GetCVar("vid_defheight") / 2, 1);