Update client.tscript

Added execution of keybinds script, if generated by UI module
This commit is contained in:
Sir-Skurpsalot 2025-12-12 20:08:58 -07:00 committed by GitHub
parent b3b98cd58e
commit 7b81f5de44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,8 +22,12 @@ function initClient()
moduleExec("initClient");
//keybinds stores user custom keybinds generated by the UI module (if installed), this should be the only place this is executed
if(isScriptFile(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension))
exec(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension);
// Copy saved script prefs into C++ code.
setDefaultFov( $pref::Player::defaultFov );
setZoomSpeed( $pref::Player::zoomSpeed );
loadModuleMaterials();
}
}