From 7b81f5de44bdb9d7d65adbf593895e3d80bbe336 Mon Sep 17 00:00:00 2001 From: Sir-Skurpsalot <87043120+Sir-Skurpsalot@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:08:58 -0700 Subject: [PATCH] Update client.tscript Added execution of keybinds script, if generated by UI module --- .../game/core/clientServer/scripts/client/client.tscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/clientServer/scripts/client/client.tscript b/Templates/BaseGame/game/core/clientServer/scripts/client/client.tscript index 55fcc3b99..d13eab89f 100644 --- a/Templates/BaseGame/game/core/clientServer/scripts/client/client.tscript +++ b/Templates/BaseGame/game/core/clientServer/scripts/client/client.tscript @@ -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(); -} \ No newline at end of file +}