Code:
function Create(self)
self.isSlowed = false --switch var
end
function Update(self)
if self:GetController():IsState(3) and not self.isSlowed then
--NOTE: slowmo is bound to "MOVE RIGHT" for now, cant remember how to do specific keys (look at darkstorm for that)
TimerMan.TimeScale = TimerMan.TimeScale / 100;
TimerMan.DeltaTimeSecs = TimerMan.DeltaTimeSecs / 100;
--if this works (untested) it should prevent the game from getting VERY choppy, and instead make everything beautifully slow.
self.isSlowed = true;
end
if self:GetController():IsState(4) and self.isSlowed then
--unslowmo is bound to "MOVE LEFT"
TimerMan.TimeScale = TimerMan.TimeScale * 100;
TimerMan.DeltaTimeSecs = TimerMan.DeltaTimeSecs * 100;
self.isSlowed = false;
end
end
Should work, but just air-typed, not sure if its typo free or if setting deltatime ingame works. This slows it to 1 percent speed, which should be more than enough for setting AI modes etc. No idea how the interface will respond though, as I said, I haven't tried it.