We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79bf209 + 7edc207 commit 6b1f7b0Copy full SHA for 6b1f7b0
src/sv_init.c
@@ -130,6 +130,16 @@ static void SV_CreateBaseline (void)
130
svent->e.baseline.colormap = 0;
131
svent->e.baseline.modelindex = svent->v->modelindex;
132
}
133
+
134
+#ifdef FTE_PEXT_TRANS
135
+ svent->e.baseline.trans = svent->xv.alpha >= 1.0f ? 0 : bound(0, (byte)(svent->xv.alpha * 254.0), 254);
136
+#endif
137
+#ifdef FTE_PEXT_COLOURMOD
138
+ svent->e.baseline.colourmod[0] = bound(0, svent->xv.colourmod[0] * (256.0f / 8.0f), 255);
139
+ svent->e.baseline.colourmod[1] = bound(0, svent->xv.colourmod[1] * (256.0f / 8.0f), 255);
140
+ svent->e.baseline.colourmod[2] = bound(0, svent->xv.colourmod[2] * (256.0f / 8.0f), 255);
141
142
143
144
sv.num_baseline_edicts = sv.num_edicts;
145
0 commit comments