]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Team radar: make teammate arrow icon rotation smoother
authorterencehill <piuntn@gmail.com>
Tue, 8 Nov 2022 14:09:24 +0000 (15:09 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 8 Nov 2022 14:09:24 +0000 (15:09 +0100)
qcsrc/common/ent_cs.qc

index 5366371458fe52fadb86e3c2d7fc3dd8b2ca44db..f8e1941f59fc2608e2fb2c0bdf2d1a4d28115992 100644 (file)
@@ -115,7 +115,7 @@ ENTCS_PROP(ORIGIN, false, origin, origin, ENTCS_SET_NORMAL,
        { WriteVector(chan, ent.origin); },
        { ent.has_sv_origin = true; vector v = ReadVector(); setorigin(ent, v); })
 
-#define DEC_FACTOR (360 / 32)
+#define DEC_FACTOR (360 / 64)
 ENTCS_PROP_CODED(ANGLES, false, angles_y, angles_y, ENTCS_SET_NORMAL, DEC_FACTOR,
        { WriteByte(chan, ent.angles.y / DEC_FACTOR); },
        { vector v = '0 0 0'; v.y = ReadByte() * DEC_FACTOR; ent.angles = v; })