Good Guy Greg.DaRk wrote:Just to make it not look like S_hift is talking to himself.
Shift, we're all keeping up with updates. Thanks.
Good Guy Greg.DaRk wrote:Just to make it not look like S_hift is talking to himself.
Code: Select all
$Presto::screenSize["320x240(V)"] = "320 240";
$Presto::screenSize["400x300(V)"] = "400 300";
$Presto::screenSize["480x360(V)"] = "480 360";
$Presto::screenSize["512x384"] = "512 384";
$Presto::screenSize["640x400"] = "640 400";
$Presto::screenSize["640x480"] = "640 480";
$Presto::screenSize["800x600"] = "800 600";
$Presto::screenSize["1024x768"] = "1024 768";
function Presto::ScreenSize() {
%res = $pref::videoFullScreenRes;
if ($pref::VideoFullScreen) {
%posRes = $Presto::screenSize[%res];
if (%posRes != "")
return %posRes;
}
return $Presto::screenSize["640x480"];
}
Code: Select all
function mHUD::CreateBitmap(%frame, %name) {
%var = newobject(%name, FearGuiFormattedText, 0, 0, 255, 255);
addToSet(%frame, %var);
if ($mHUD::DebugMode) echo(%name @ "\(" @ %var @ "\) Created in " @ %frame);
return %var;
}
Code: Select all
function onClientMessage(%client, %msg)
{
if(%client)
$lastClientMessage = %client;
// filter messages here
if(%msg == "~wButton3.wav");
{
%maxWinks = 2;
%WinksPerSecond = 2;
for(%i = 0; %i < %maxWinks * 2; %i++)
Schedule("mHUD::SetVisible(reticle, "@ %i % 2 @");", %i / (%WinksPerSecond * 2));
}
return true;
}