From: MirceaKitsune Date: Sat, 3 Mar 2012 19:26:16 +0000 (+0200) Subject: Lastly, make the earthquake effect only be caused by macro players, based on their... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ab34f6b5f93df4d429161976502e1b369b68978;p=voretournament%2Fvoretournament.git Lastly, make the earthquake effect only be caused by macro players, based on their size from normal to maximum size --- diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 73de9931..99c50099 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -897,7 +897,7 @@ void SV_PlayerPhysics() shake = vlen(head.origin - self.origin); if(shake) shake = 1 - bound(0, shake / cvar("g_healthsize_quake_fall_radius"), 1); - shake *= cvar("g_healthsize_quake_fall"); + shake *= playersize_macro(self) * cvar("g_healthsize_quake_fall"); head.punchvector_x += crandom() * shake; head.punchvector_y += crandom() * shake; diff --git a/data/qcsrc/server/sv_main.qc b/data/qcsrc/server/sv_main.qc index 451a0b87..1e80f138 100644 --- a/data/qcsrc/server/sv_main.qc +++ b/data/qcsrc/server/sv_main.qc @@ -132,7 +132,7 @@ void CreatureFrame (void) shake = vlen(head.origin - self.origin); if(shake) shake = 1 - bound(0, shake / cvar("g_healthsize_quake_step_radius"), 1); - shake *= cvar("g_healthsize_quake_step"); + shake *= playersize_macro(self) * cvar("g_healthsize_quake_step"); head.punchvector_x += crandom() * shake; head.punchvector_y += crandom() * shake;