]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Network colormod even to players (g_player_brightness)
authorMario <zacjardine@y7mail.com>
Sun, 22 Feb 2015 02:15:40 +0000 (13:15 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 22 Feb 2015 02:15:40 +0000 (13:15 +1100)
qcsrc/common/csqcmodel_settings.qh

index 95937216853d2254be61b350e13194c9f2b242d2..af693c29880a74c37319a0b3191a3bc546105023 100644 (file)
                CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, glowmod_x, 254, -1, 254) \
                CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, glowmod_y, 254, -1, 254) \
                CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, glowmod_z, 254, -1, 254) \
-               CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, colormod_x, 254, -1, 254) \
-               CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, colormod_y, 254, -1, 254) \
-               CSQCMODEL_PROPERTY_SCALED(256, float, ReadByte, WriteByte, colormod_z, 254, -1, 254) \
        CSQCMODEL_ENDIF \
+       CSQCMODEL_PROPERTY(256, float, ReadCoord, WriteCoord, colormod_x) \
+       CSQCMODEL_PROPERTY(256, float, ReadCoord, WriteCoord, colormod_y) \
+       CSQCMODEL_PROPERTY(256, float, ReadCoord, WriteCoord, colormod_z) \
        CSQCMODEL_IF(isplayer) \
                CSQCMODEL_PROPERTY(128, int, ReadByte, WriteByte, anim_state) \
                CSQCMODEL_PROPERTY(128, float, ReadApproxPastTime, WriteApproxPastTime, anim_time) \