Let's say we've got entity->foo. The entity has a brush model. I'd like create a new surface flag, so that " if entity->foo then all surfaces->flag = SURF_FOO". Where in the code can I dig into that with brush models?
What I'm really talking about is entity->alpha. I can't find the spot where a func_wall could access surface flags. I'd like to do it as soon as brush models and/or entities are loaded.
BTW, I've looked briefly at how Makaqu 1.5 does it. I think this is different, it assigns a blend function per entity. But I don't really have a grasp of that, either.