]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply correct buff bbox after it respawns
authorterencehill <piuntn@gmail.com>
Sun, 4 Dec 2016 20:15:08 +0000 (21:15 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 4 Dec 2016 20:15:08 +0000 (21:15 +0100)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc
qcsrc/common/mutators/mutator/buffs/sv_buffs.qh

index 32c61eb6aa2a8cb5d0d5fdea98fdf333a7e82056..45037186d01c230777694969e04c9b8603a2957f 100644 (file)
@@ -231,6 +231,7 @@ void buff_Think(entity this)
                this.skin = buff.m_skin;
 
                setmodel(this, MDL_BUFF);
                this.skin = buff.m_skin;
 
                setmodel(this, MDL_BUFF);
+               setsize(this, BUFF_MIN, BUFF_MAX);
 
                if(this.buff_waypoint)
                {
 
                if(this.buff_waypoint)
                {
index b9fc1e42d2ba09c6bc1ee68ef02c8b2ebe1ccf98..5b14c39f41c96804bbe04bfa4e10d3b59128cc96 100644 (file)
@@ -70,8 +70,8 @@ float autocvar_g_buffs_luck_damagemultiplier = 3;
 .int oldbuffs; // for updating effects
 .entity buff_model; // controls effects (TODO: make csqc)
 
 .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;
 
 // client side options
 .float cvar_cl_buffs_autoreplace;