09 Jun 13, 03:58PM
(09 Jun 13, 02:31PM)Luc@s Wrote: sure you don't have a bind that change gamespeed ?
when this happens, check the gamespeed value;
(this value is reset on map load)
Yes, indeed I have one, a little neat script Bukz made a while ago. I just didn't think about it cause the bind is far away from wasd.
[cubescript]bind l [changespeed 40 2; onrelease [ changespeed 100 2 ] ]
changespeed = [
curspeed = $gamespeed
targetspeed = $arg1
increments = $arg2
if (!= $curspeed $targetspeed) [
if (> $curspeed $targetspeed) [
loops = (- $curspeed $targetspeed)
] [ loops = (- $targetspeed $curspeed) ]
loop i $loops [
sleep (* $i $increments) [
gamespeed ((at "+ -" (> $curspeed $targetspeed)) $gamespeed 1)
]
]
]
][/cubescript]