Has anyone done anything like this? I was bored and it's raining...
https://www.sendspace.com/file/7v19z5
https://www.sendspace.com/file/7v19z5
Last edited:
// netset gui
$options::predictmethod = "PredictMethodBox";
$options::terp = "TerpSlider";
$options::predict = "PredictSlider";
// defaults
if ( $pref::netsetpredict >= 0 )
$net::PredictForwardTime = $pref::netsetpredict;
else
{
$pref::netsetpredict = 32;
$net::PredictForwardTime = 32;
}
if ( $pref::netsetterp >= 0 )
$net::interpolatetime = $pref::netsetterp;
else
{
$pref::netsetterp = 64;
$net::InterpolateTime = 64;
}
if ( $pref::netsetmethod )
$net::PredictForwardTimeMethod = 1;
else
{
$pref::netsetmethod = "FALSE";
$net::PredictForwardTimeMethod = 0;
}
function Init::NetSetGUI() after OptionsGame::General::init
{
Control::setValue( OptionsGui::PredictMethod, $pref::netsetmethod );
Control::setActive( $options::predict, $pref::netsetmethod );
setPredictSlider();
setTerpSlider();
}
function SetPredictMethod()
{
%method = Control::getValue( $options::predictmethod );
Control::setActive( $options::predict, %method );
if( %method )
$net::PredictForwardTimeMethod = 1;
else
$net::PredictForwardTimeMethod = 0;
$pref::netsetmethod = %method;
}
function setTerpSlider()
{
%value = $pref::netsetterp;
switch ( %value ) {
case "0":
Control::setValue( TerpSlider, 0 );
break;
case "32":
Control::setValue( TerpSlider, 1 );
break;
case "64":
Control::setValue( TerpSlider, 2 );
break;
case "96":
Control::setValue( TerpSlider, 3 );
break;
case "128":
Control::setValue( TerpSlider, 4 );
break;
default:
Control::setValue( TerpSlider, 2 );
$net::interpolatetime = 64;
break;
}
}
function NetInterpolation::onAction()
{
%value = Control::getValue( TerpSlider );
switch ( %value ) {
case "0":
$net::interpolatetime = 0;
break;
case "1":
$net::interpolatetime = 32;
break;
case "2":
$net::interpolatetime = 64;
break;
case "3":
$net::interpolatetime = 96;
break;
case "4":
$net::interpolatetime = 128;
break;
default:
$net::interpolatetime = 64;
break;
}
$pref::netsetterp = $net::interpolatetime;
}
function setPredictSlider()
{
%value = $pref::netsetpredict;
switch ( %value ) {
case "0":
Control::setValue( PredictSlider, 0 );
break;
case "32":
Control::setValue( PredictSlider, 1 );
break;
case "64":
Control::setValue( PredictSlider, 2 );
break;
case "96":
Control::setValue( PredictSlider, 3 );
break;
case "128":
Control::setValue( PredictSlider, 4 );
break;
default:
Control::setValue( PredictSlider, 1 );
$net::predictforwardtime = 32;
break;
}
}
function NetPrediction::onAction()
{
%value = Control::getValue( PredictSlider );
switch ( %value ) {
case "0":
$net::predictforwardtime = 0;
break;
case "1":
$net::predictforwardtime = 32;
break;
case "2":
$net::predictforwardtime = 64;
break;
case "3":
$net::predictforwardtime = 96;
break;
case "4":
$net::predictforwardtime = 128;
break;
default:
$net::predictforwardtime = 32;
break;
}
$pref::netsetpredict = $net::predictforwardtime;
}
echoc(2, "NetSet GUI Loaded");
// line 3671 'extent = "282 505";' (change 305 to 505)
// insert code below on line 4069 BEFORE the "};"
instant FearGui::FGSimpleText {
position = "7 247";
extent = "126 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.819608 0.945098 0.952941";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.745098 0.811765 0.870588";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "True";
messageTag = "";
fontNameTag = "IDFNT_10_HILITE";
fontNameTagHL = "IDFNT_10_SELECTED";
fontNameTagDisabled = "IDFNT_10_DISABLED";
textTag = "";
text = "NetSet";
align = "left";
textVPosDelta = "0";
};
instant FearGui::FGSimpleText {
position = "40 271";
extent = "67 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.819608 0.945098 0.952941";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.745098 0.811765 0.870588";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "False";
messageTag = "";
fontNameTag = "IDFNT_10_HILITE";
fontNameTagHL = "IDFNT_10_SELECTED";
fontNameTagDisabled = "IDFNT_10_DISABLED";
textTag = "";
text = "Use NetSet Prediction";
align = "left";
textVPosDelta = "0";
};
instant FearGui::FGUniversalButton "PredictMethodBox" {
position = "14 274";
extent = "18 15";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "$pref::netsetmethod";
consoleCommand = "SetPredictMethod();";
altConsoleCommand = "SetPredictMethod();";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.772549 0.796078 0.788235";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.772549 0.796078 0.788235";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "True";
messageTag = "";
isCheckbox = "True";
radioTag = "";
bitmapRoot = "BTN_CheckBox";
isSet = "True";
mirrorConsoleVar = "True";
};
instant FearGui::FGSimpleText {
position = "14 294";
extent = "52 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.819608 0.945098 0.952941";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.745098 0.811765 0.870588";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "False";
messageTag = "";
fontNameTag = "IDFNT_10_HILITE";
fontNameTagHL = "IDFNT_10_SELECTED";
fontNameTagDisabled = "IDFNT_10_DISABLED";
textTag = "";
text = "Interpolate Time:";
align = "left";
textVPosDelta = "0";
};
instant FearGui::FGSlider "TerpSlider" {
position = "122 296";
extent = "140 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "NetInterpolation::onAction();";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.2 0.184314 0.090196";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.772549 0.796078 0.788235";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "True";
messageTag = "";
minVal = "0";
maxVal = "4";
numDiscreteValues = "5";
};
instant FearGui::FGSlider "PredictSlider" {
position = "122 326";
extent = "140 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "NetPrediction::onAction();";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.2 0.184314 0.090196";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.772549 0.796078 0.788235";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "True";
messageTag = "";
minVal = "0";
maxVal = "4";
numDiscreteValues = "5";
};
instant FearGui::FGSimpleText {
position = "14 324";
extent = "101 17";
horizSizing = "right";
vertSizing = "bottom";
consoleVariable = "";
consoleCommand = "";
altConsoleCommand = "";
deleteOnLoseContent = "True";
ownObjects = "True";
opaque = "False";
fillColor = "0 0 0";
selectFillColor = "0 0 0";
ghostFillColor = "0.819608 0.945098 0.952941";
border = "False";
borderColor = "0 0 0";
selectBorderColor = "0.745098 0.811765 0.870588";
ghostBorderColor = "0 0 0";
visible = "True";
tag = "";
active = "False";
messageTag = "";
fontNameTag = "IDFNT_10_HILITE";
fontNameTagHL = "IDFNT_10_SELECTED";
fontNameTagDisabled = "IDFNT_10_DISABLED";
textTag = "";
text = "Prediction Time:";
align = "left";
textVPosDelta = "0";
};
ah yes ping0 for 1.40
98 is back! nice work