From 354ba0fb87570aa40ca006e8807edaebe12132a3 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 24 Dec 2022 21:42:14 +1000 Subject: [PATCH] Save a byte on each casing message by omitting roll angle --- qcsrc/common/effects/qc/casings.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/effects/qc/casings.qc b/qcsrc/common/effects/qc/casings.qc index 4f91acf91..0e851da7f 100644 --- a/qcsrc/common/effects/qc/casings.qc +++ b/qcsrc/common/effects/qc/casings.qc @@ -45,7 +45,7 @@ void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float ran WriteShort(MSG_ONE, compressShortVector(vel)); // actually compressed velocity WriteByte(MSG_ONE, ang.x * 256 / 360); WriteByte(MSG_ONE, ang.y * 256 / 360); - WriteByte(MSG_ONE, ang.z * 256 / 360); + // weapons only have pitch and yaw, so no need to send ang.z }); } #endif @@ -150,7 +150,6 @@ NET_HANDLE(casings, bool isNew) casing.velocity = decompressShortVector(ReadShort()); casing.angles_x = ReadByte() * 360 / 256; casing.angles_y = ReadByte() * 360 / 256; - casing.angles_z = ReadByte() * 360 / 256; return = true; -- 2.39.2