]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/items/items.qc
items: temp kludge to reduce visibility of prediction errors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / items / items.qc
index c1bcfe6e5468b7754feacd420aadf0bf7f1a05d9..755f0f9cd40d0a52aff03018e70a485ef9574d17 100644 (file)
@@ -315,6 +315,15 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
                set_movetype(this, MOVETYPE_TOSS);
                this.velocity = ReadVector();
        }
+       else if (this.gravity) // caution: kludge FIXME (with sv_legacy_bbox_expand)
+       {
+               // workaround for prediction errors caused by bbox discrepancy between SVQC and CSQC
+               this.gravity = 0; // don't do this kludge again
+               this.pushable = false; // no fun allowed
+               set_movetype(this, MOVETYPE_NONE); // disable physics
+               this.velocity = '0 0 0'; // disable it more
+               SET_ONGROUND(this); // extra overkill
+       }
 
        this.entremove = ItemRemove;