// default fov value.. set this 90-120
$rag::defaultfov = 110;
// default interval between fov levels
$rag::interval = 5;
// don't touch line below
editactionmap("playmap.sae");
// bind for lowering the fov
bindcommand(keyboard0, make, "[", to, "rag::fov(0);");
bindcommand(keyboard0, break, "[", to, "");
// bind for raising the fov
bindcommand(keyboard0, make, "]", to, "rag::fov(1);");
bindcommand(keyboard0, break, "]", to, "");
// CODE BELOW DON'T EDIT
$pref:
layerfov = $rag::defaultfov;
$rag::currentfov = $pref:
layerfov;
function rag::fov(%x)
{
if (%x==1)
{
if ($pref:
layerfov == 120) {}
else
{
$rag::currentfov = $rag::currentfov + $rag::interval;
$pref:
layerfov = $rag::currentfov;
}
}
else
{
if ($pref:
layerfov == 90) {}
else
{
$rag::currentfov = $rag::currentfov - $rag::interval;
$pref:
layerfov = $rag::currentfov;
}
}
remotebp(2048, " <f1>Current FOV is <f2>" @ $pref:
layerfov @ " <f1>degrees.", 1);
}
// CODE ABOVE DON'T EDIT