case "BOAL_Control":
if(dialogRun || dialogSelf || CheckAttribute(PChar,"paused")) break;//MAXIMUS
// NK basetime 05-04-25 -->
if(CheckAttribute(PChar,"basetime")) basetime = stf(PChar.basetime);
if(!CheckAttribute(PChar,"timescale")) PChar.timescale = 1;
AddPerkToActiveList("TimeSpeed");
switch(sti(PChar.timescale))
{
case 1: PChar.timescale = 3; break;
case 3: PChar.timescale = 10; break;
case 10: PChar.timescale = 30; break;
}
SetTimeScale(basetime*sti(PChar.timescale));
LogIt(XI_ConvertString("Time") + " x" + PChar.timescale);
//Log_SetStringToLog("Test R");
/* if(IsPerkIntoList("TimeSpeed"))
{
SetTimeScale(basetime);
DelPerkFromActiveList("TimeSpeed");
Log_SetStringToLog(XI_ConvertString("Time") + " " + "x1");
PChar.timeaccel1030 = "30";
}
else
{
SetTimeScale(3.0 * basetime);
Log_SetStringToLog(XI_ConvertString("Time") + " " + "x3");
AddPerkToActiveList("TimeSpeed");
PChar.timeaccel1030 = "30";
}*/
break;
case "BOAL_Control0":
if(dialogRun || dialogSelf || CheckAttribute(PChar,"paused")) break;//MAXIMUS
if(CheckAttribute(PChar,"basetime")) basetime = stf(PChar.basetime);
if(!CheckAttribute(PChar,"timescale")) PChar.timescale = 1;
switch(sti(PChar.timescale))
{
case 30: PChar.timescale = 10; break;
case 10: PChar.timescale = 3; break;
case 3: PChar.timescale = 1;
DelPerkFromActiveList("TimeSpeed"); break;
}
SetTimeScale(basetime*sti(PChar.timescale));
LogIt(XI_ConvertString("Time") + " x" + PChar.timescale);
//Log_SetStringToLog("Test G");
// NK Fixed 04-09-08 to actually toggle.
/* if(!IsPerkIntoList("TimeSpeed")) { AddPerkToActiveList("TimeSpeed"); }
if(!CheckAttribute(PChar, "timeaccel1030")) PChar.timeaccel1030 = "30";
if(PChar.timeaccel1030 != "30")
{
PChar.timeaccel1030 = "30";
SetTimeScale(30.0 * basetime0);
Log_SetStringToLog(XI_ConvertString("Time") + " " + "x30");
}
else
{
PChar.timeaccel1030 = "10";
SetTimeScale(10.0 * basetime0);
Log_SetStringToLog(XI_ConvertString("Time") + " " + "x10");
}*/
// NK basetime <--
break;