From d80a53951f73816ff076a74072c1cb11dd832277 Mon Sep 17 00:00:00 2001 From: yellows111 Date: Mon, 11 Mar 2024 08:45:41 +0000 Subject: [PATCH] add the respawn key to marble/client/scripts/default.bind.cs TODO: make this rebindable --- marble/client/scripts/default.bind.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/marble/client/scripts/default.bind.cs b/marble/client/scripts/default.bind.cs index 536049a..edf5740 100644 --- a/marble/client/scripts/default.bind.cs +++ b/marble/client/scripts/default.bind.cs @@ -40,6 +40,9 @@ function escapeFromGame() moveMap.bindCmd(keyboard, "escape", "", "escapeFromGame();"); +// respawn key TODO: make this one remapable +// usage: bindCmd(device, action, onDown, onUp) +moveMap.bindCmd(keyboard, "r", "", "if($Game::State !$= \"End\"){ClientGroup.getObject(0).respawnPlayer();}"); //------------------------------------------------------------------------------ // Movement Keys