Oooh, I hadn't spotted (or maybe remembered) about that one. Thanks.HotWax wrote:Well there's [wiki]ThingCountName[/wiki], which can count by TID and/or type name...
Personally, I haven't used Thing_Spawn (etc) for some time now (but obviously I have been using Thing_Count).
I think that the continued use of the spawnid versions could be down to lack of publicity for the classname based versions as Zippy said. Perhaps a bit of a publicity campaign, including marking the spawnid based ones as deprecated might help.
However, as has been said, spawnids are still useful for getting an item dropped by something when it is destroyed. This is not just limited to Hexen as it is a quick and easy way to make a Doom enemy drop a key (or something) on its death. So, spawnids are not fully replaced because that can't be done by other non script methods (I don't think) so spawnids themselves should not be deprecated, only the scripting functions that use them.
... actually, thinking about it, the others shouldn't all be deprecated either. Why? Because they have line special numbers and numeric arguments that allow them to be used directly via a linedef (sans scripting) whereas the ones using classnames cannot.