From 92a3af630573c1f4184ead3b12056f84a4f809a2 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Fri, 16 Mar 2012 01:22:09 +0200 Subject: [PATCH] Cvar the speeds of punchangle and punchvector, and make them a little faster --- data/defaultVT.cfg | 3 +++ data/qcsrc/server/cl_physics.qc | 4 ++-- docs/TODO.txt | 8 +------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 12929ae9..c7793319 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -334,6 +334,9 @@ set g_leanplayer_acceleration_max 10 "acceleration leaning is limited to this am set sv_gibhealth -150 "Amount of health a dead body must have in order to get gibbed, influenced by player size" +set sv_punchangle_speed 16 "speed at which punchangle returns to normal" +set sv_punchvector_speed 32 "speed at which punchvector returns to normal" + // fragmessage: This allows extra information to be displayed with the frag centerprints. set sv_fragmessage_information_ping 0 "Enable ping display information, 0 = Never display; 1 = Always display (If the player is a bot, it will say bot instead of the ping.)" set sv_fragmessage_information_handicap 1 "Enable handicap display information, 0 = Never display; 1 = Only when the player has handicap on; 2 = Always display (Displays Off if off)" diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 20e08f71..541994f2 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -738,7 +738,7 @@ void SV_PlayerPhysics() if (self.punchangle != '0 0 0') { - f = vlen(self.punchangle) - 15 * frametime; + f = vlen(self.punchangle) - cvar("sv_punchangle_speed") * frametime; if (f > 0) self.punchangle = normalize(self.punchangle) * f; else @@ -747,7 +747,7 @@ void SV_PlayerPhysics() if (self.punchvector != '0 0 0') { - f = vlen(self.punchvector) - 30 * frametime; + f = vlen(self.punchvector) - cvar("sv_punchvector_speed") * frametime; if (f > 0) self.punchvector = normalize(self.punchvector) * f; else diff --git a/docs/TODO.txt b/docs/TODO.txt index d9ebf2ce..77af6320 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -144,10 +144,4 @@ - 0.8: scoreboard doesn't show when HUD is disabled (sbar_hudselector is 0) -- 0.7: Weapons menu: Center setting for the gun? - -- 0.7: Slower swallow progress - -- 0.7: Is the grab sound subject to pitch? - -- 0.7 | 0.8: Cvar the speed of punchangles, and increase it a bit \ No newline at end of file +- 0.7: Weapons menu: Center setting for the gun? \ No newline at end of file -- 2.39.2