Quasar
Moderator

Posts: 4615
Registered: 08-00 |
Polyobjects now clip mobj_t's, tracers, explosions, and lines of sight. Interestingly, I found that in Hexen they rewrote the entirety of p_sight.c to work on a tracer-based system instead of DOOM's method of using the BSP. They probably did this because of polyobjects, but it is an undesirable change and certainly not one I even thought about following.
At any rate, I figured out how to block line of sight with polyobj lines using the BSP, although it is not perfectly accurate -- the LOS checking will actually use the subsector attachments from the previous frame rather than those where the polyobjects should currently be attached. I do not anticipate that this will be a major or possibly even at all noticeable problem.
Now all that is left is to add code that can actually move polyobjects around, and push or crush mobj_t's that get in the way.
|