]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Lastly, make the earthquake effect only be caused by macro players, based on their...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 19:26:16 +0000 (21:26 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 19:26:16 +0000 (21:26 +0200)
data/qcsrc/server/cl_physics.qc
data/qcsrc/server/sv_main.qc

index 73de99315478b195d454d0136e0737b166cd733f..99c50099482d8d68a602a27edb45b4a3588e183d 100644 (file)
@@ -897,7 +897,7 @@ void SV_PlayerPhysics()
                                                        shake = vlen(head.origin - self.origin);\r
                                                        if(shake)\r
                                                                shake = 1 - bound(0, shake / cvar("g_healthsize_quake_fall_radius"), 1);\r
-                                                       shake *= cvar("g_healthsize_quake_fall");\r
+                                                       shake *= playersize_macro(self) * cvar("g_healthsize_quake_fall");\r
 \r
                                                        head.punchvector_x += crandom() * shake;\r
                                                        head.punchvector_y += crandom() * shake;\r
index 451a0b8725298cd658b8ca6d78eda001aca2afe1..1e80f1389d942c5e58efc131ace1b7e89377c969 100644 (file)
@@ -132,7 +132,7 @@ void CreatureFrame (void)
                                                                        shake = vlen(head.origin - self.origin);\r
                                                                        if(shake)\r
                                                                                shake = 1 - bound(0, shake / cvar("g_healthsize_quake_step_radius"), 1);\r
-                                                                       shake *= cvar("g_healthsize_quake_step");\r
+                                                                       shake *= playersize_macro(self) * cvar("g_healthsize_quake_step");\r
 \r
                                                                        head.punchvector_x += crandom() * shake;\r
                                                                        head.punchvector_y += crandom() * shake;\r