shithub: qk1

Download patch

ref: 0dc9ef358fb9de3a87a1f54ffaf6ce4b05892f24
parent: a6e0affe834cf1fcbaad864506f2647566890fd2
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Feb 4 18:35:52 EST 2024

with "always run" enabled use +speed to DEcrease the speed (walk)

--- a/cl_input.c
+++ b/cl_input.c
@@ -278,7 +278,11 @@
 	// adjust for speed key
 	if (in_speed.state & 1)
 	{
-		cmd->forwardmove *= cl_movespeedkey.value;
+		if((cmd->forwardmove > 0 && cl_forwardspeed.value > 200) ||
+		   (cmd->forwardmove < 0 && cl_backspeed.value > 200))
+			cmd->forwardmove /= cl_movespeedkey.value;
+		else
+			cmd->forwardmove *= cl_movespeedkey.value;
 		cmd->sidemove *= cl_movespeedkey.value;
 		cmd->upmove *= cl_movespeedkey.value;
 	}
--- a/menu.c
+++ b/menu.c
@@ -1105,7 +1105,7 @@
 	{"+back", 			"backpedal"},
 	{"+left", 			"turn left"},
 	{"+right", 			"turn right"},
-	{"+speed", 			"run"},
+	{"+speed", 			"run / walk"},
 	{"+moveleft", 		"step left"},
 	{"+moveright", 		"step right"},
 	{"+strafe", 		"sidestep"},