File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -252,13 +252,18 @@ static void UpdateFlagOutline(entity flag) {
252
252
}
253
253
254
254
float UpdateFlag(float isnew) {
255
- if (isnew) {
256
- float mindex = self.modelindex;
257
- AddOutline(self);
258
- // Flags have their own shader already, just make them shiny for now.
259
- }
255
+ /* if (isnew) { */
256
+ /* float mindex = self.modelindex; */
257
+ /* AddOutline(self); */
258
+ /* // Flags have their own shader already, just make them shiny for now. */
259
+ /* } */
260
+
261
+ /* UpdateFlagOutline(self); */
260
262
261
- UpdateFlagOutline(self);
263
+ if (self.skin == team_no) {
264
+ local float distance = vlen(self.origin - PM_Org());
265
+ self.alpha = min(0.25 + (distance / 200), 1);
266
+ }
262
267
263
268
return TRUE;
264
269
}
@@ -309,4 +314,8 @@ void TF_Init() {
309
314
310
315
shader_over_outline = shaderforname(rnds("over_outline"), "{ sort 7 }");
311
316
#endif
317
+
318
+ deltalisten("progs/ff_flag.mdl", UpdateFlag, 0);
319
+ deltalisten("progs/tf_flag.mdl", UpdateFlag, 0);
320
+ deltalisten("progs/tf_stan.mdl", UpdateFlag, 0);
312
321
}
You can’t perform that action at this time.
0 commit comments