]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvar the speeds of punchangle and punchvector, and make them a little faster
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 23:22:09 +0000 (01:22 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 23:22:09 +0000 (01:22 +0200)
data/defaultVT.cfg
data/qcsrc/server/cl_physics.qc
docs/TODO.txt

index 12929ae9d60120d0c81876e93960d3dad462c03e..c7793319295582ba9f777ca20097ac0f67502c03 100644 (file)
@@ -334,6 +334,9 @@ set g_leanplayer_acceleration_max 10 "acceleration leaning is limited to this am
 \r
 set sv_gibhealth -150 "Amount of health a dead body must have in order to get gibbed, influenced by player size"\r
 \r
+set sv_punchangle_speed 16 "speed at which punchangle returns to normal"\r
+set sv_punchvector_speed 32 "speed at which punchvector returns to normal"\r
+\r
 // fragmessage: This allows extra information to be displayed with the frag centerprints. \r
 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.)"\r
 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)"\r
index 20e08f713e5dff8da6e2cb5dedeb1af18465773c..541994f21135d7a0fdb2a1fa9ca4ea2657d0f782 100644 (file)
@@ -738,7 +738,7 @@ void SV_PlayerPhysics()
 \r
        if (self.punchangle != '0 0 0')\r
        {\r
-               f = vlen(self.punchangle) - 15 * frametime;\r
+               f = vlen(self.punchangle) - cvar("sv_punchangle_speed") * frametime;\r
                if (f > 0)\r
                        self.punchangle = normalize(self.punchangle) * f;\r
                else\r
@@ -747,7 +747,7 @@ void SV_PlayerPhysics()
 \r
        if (self.punchvector != '0 0 0')\r
        {\r
-               f = vlen(self.punchvector) - 30 * frametime;\r
+               f = vlen(self.punchvector) - cvar("sv_punchvector_speed") * frametime;\r
                if (f > 0)\r
                        self.punchvector = normalize(self.punchvector) * f;\r
                else\r
index d9ebf2ce6e2374d4e16b08c678efa5975aeac287..77af6320e702e63860aa2aa81545f2dcd7a0a591 100644 (file)
 \r
 - 0.8: scoreboard doesn't show when HUD is disabled (sbar_hudselector is 0)\r
 \r
-- 0.7: Weapons menu: Center setting for the gun?\r
-\r
-- 0.7: Slower swallow progress\r
-\r
-- 0.7: Is the grab sound subject to pitch?\r
-\r
-- 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