Holding fire

Sometimes your monsters won’t let up. You’re writing a custom CheckAttack function for a creature which has a decent missile attack, but a better melee attack. By the time you get to handling mid-range combat, you’d like her to choose between attacking right now with the missile or running towards the player with melee in mind. Continue reading

Overlapping Fields

As promised, this post will look at overlapping fields, following up on the naming tricks from yesterday. This trick does not rely on a quirk of naming fields in QuakeC, but it has a useful effect on how mappers can use named fields. In addition the trick is greatly improved by use of the hidden fields quirk. If you re-read yesterday’s explanation of vector compilation, from which we discovered hidden fields, you might notice some talk about overlapping. Today we intend to do the same with fields of our choosing. Continue reading