From: Mario Date: Tue, 6 Feb 2018 23:15:58 +0000 (+1000) Subject: Network colormod to clients and adjust its scaler to allow larger than 1 values with... X-Git-Tag: xonotic-v0.8.5~2345 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e18cea6bb3bf8efb0a09a3a319c8da1b5c9af15;p=xonotic%2Fxonotic-data.pk3dir.git Network colormod to clients and adjust its scaler to allow larger than 1 values with a bit less accuracy (fixes g_player_brightness and anything colormod related) --- diff --git a/qcsrc/common/csqcmodel_settings.qh b/qcsrc/common/csqcmodel_settings.qh index 125ef6bf3..836c3983c 100644 --- a/qcsrc/common/csqcmodel_settings.qh +++ b/qcsrc/common/csqcmodel_settings.qh @@ -40,10 +40,10 @@ CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_x, 254, -1, 254) \ CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_y, 254, -1, 254) \ CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_z, 254, -1, 254) \ - CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_x, 254, -1, 254) \ - CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_y, 254, -1, 254) \ - CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_z, 254, -1, 254) \ CSQCMODEL_ENDIF \ + CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_x, 16, 0, 255) \ + CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_y, 16, 0, 255) \ + CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_z, 16, 0, 255) \ CSQCMODEL_IF(isplayer) \ CSQCMODEL_PROPERTY(BIT(7), int, ReadByte, WriteByte, anim_state) \ CSQCMODEL_PROPERTY(BIT(7), float, ReadApproxPastTime, WriteApproxPastTime, anim_time) \