// assuming we run on 100Hz
// variables description
const float clutch_max_speed = 0.25 / 100;
float clutch; // the value you will put in the physics calculation
float user_input_clutch; // the value you get from your input system every frame
// now follows the code you run every frame
{
float delta = user_input_clutch - clutch;
if (abs(delta) > clutch_max_speed) {
clutch += sign(delta) * clutch_max_speed;
} else {
clutch = user_input_clutch;
}
}
1.4.0
+ Translation mechanism implemented (see docs/Translating.txt)
+ Translation to russian
+ Translation to german
+ Can use NONE for hlvc_checks
- Fixed help window displaying !top and !recent info in a wrong way
- Fixed corrupted sections/splits switch messing the table pretty much
- Fixed printing excessive info on new laps (now will only print one
of the TOP TBS or TB laps, since TOP means also new TB and TBS, and
TBS means also TB)
- Removed !stb command, since we have all the data in the !stint
IS_MTC message;
message.PLID = CON.B.PLID;
message.Msg = "I am sorry " + players[CON.B.PLID].PName;
insim.Send(message);
+ Configurable !log command added: option to restrict to admins, max
messages limit. Long messages are split to 2 strings
+ Split/sections preference is now saved to database, so you can
switch it once and it will always appear the same after reconnect
+ Use SystemSemaphore instead of running.pid file. No longer need to
remove running.pid file if program crashes
+ !ver command shows memory usage
+ Added Clang compiler build flags
- Fixed options window which showed all laptime updates options "On"
until you change them
- Will not run importer if lfstop is running in the directory
- Database query window optimised (!top, !tb, !tbs and !avg printed up
to 20 times faster)
- A lot of minor fixes, refactoring, code formatting :)