From 9d593b11225bf9e6255cbb2bf5d43e5ed1e72683 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 4 Dec 2016 21:15:08 +0100 Subject: [PATCH] Apply correct buff bbox after it respawns --- qcsrc/common/mutators/mutator/buffs/sv_buffs.qc | 1 + qcsrc/common/mutators/mutator/buffs/sv_buffs.qh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc index 32c61eb6a..45037186d 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc @@ -231,6 +231,7 @@ void buff_Think(entity this) this.skin = buff.m_skin; setmodel(this, MDL_BUFF); + setsize(this, BUFF_MIN, BUFF_MAX); if(this.buff_waypoint) { diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qh b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qh index b9fc1e42d..5b14c39f4 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qh +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qh @@ -70,8 +70,8 @@ float autocvar_g_buffs_luck_damagemultiplier = 3; .int oldbuffs; // for updating effects .entity buff_model; // controls effects (TODO: make csqc) -const vector BUFF_MIN = ('-16 -16 -20'); -const vector BUFF_MAX = ('16 16 20'); +const vector BUFF_MIN = ('-16 -16 0'); +const vector BUFF_MAX = ('16 16 60'); // client side options .float cvar_cl_buffs_autoreplace; -- 2.39.2