]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply colormaps to gibs and apply a red tint by default, fixes #2476
authorMario <zacjardine@y7mail.com>
Tue, 1 Dec 2020 13:54:51 +0000 (23:54 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 1 Dec 2020 13:54:51 +0000 (23:54 +1000)
qcsrc/common/effects/qc/gibs.qc

index 3759248cb62c35729fe982b9c3d7f2a3bba05b2d..5500e85ae8a8cbf3ca4184f09ffdcc479f7cc863 100644 (file)
@@ -174,6 +174,8 @@ void TossGib (string mdlname, vector safeorg, vector org, vector vconst, vector
        gib.solid = SOLID_CORPSE;
        gib.cnt = specnum;
        gib.silent = issilent;
+       gib.colormap = 4; // red
+       gib.colormap |= BIT(10); // RENDER_COLORMAPPED
        Gib_setmodel(gib, mdlname, specnum);
 
        setsize (gib, '-8 -8 -8', '8 8 8');