From 0ca59cc640878efece3c0d5c80436643a32e72a0 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 8 Nov 2022 15:09:24 +0100 Subject: [PATCH] Team radar: make teammate arrow icon rotation smoother --- qcsrc/common/ent_cs.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index 536637145..f8e1941f5 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -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; }) -- 2.39.2