So I was wondering how to do the following things. I'm willing to work with the source code (i.e. I'm not relying on existing features), but not willing to rely on 'custom' builds. Id est, changes that cannot be committed to trunk do not suit my needs.
1. Modifying/altering the default Esc behavior, in-mission. What would the best way? That is, so that instead of bringing up the end mission dialog, it could either be modified to do something else, or disabled outright. Since the context I'm interested in is the RTS mod, which is already using extensive scripting, I was thinking a scripting hook with +override capability. However, the people who I mentioned the idea to seemed to think that was overkill. Problem is, although I'm willing to do code changes, I'm hoping to avoid having to use 'custom' builds... so they would have to be changes that are commit-worthy. And flat-out removing that dialog isn't commit-worthy.
2. Drawing a grid. The grid would have a fixed position and orientation (but customizability wouldn't hurt). So far I've been able to do this by having a ship which uses an enormous textured quad as its model. The problem is, this is all kinds of messed up, as far as depth sorting. For example, if any ship goes through it, the stuff on the far side is invisible. Beams that intersect its plane are clipped. Et cetera.