View Single Post
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-07-2004 , 03:11  
Reply With Quote #10

Sorry I'm not into NS but if AMX can do it I'm sure we can do it as well. Not like we're working on different HL engines here. ;-)

You could try hooking a few function calls using the fakemeta module, like setmodel or other that are called at/before precache time, to see if you need to precache these models.

A very hacky solution could be to use the c-style file functions to read through the whole map file in plugin_precache to see how many times "commchair" occurs, that should be the number of entities used.

Btw why not write like this:
Code:
check_cc_num() {     new entity = 0, commchairs = 0     while ((entity = find_ent_by_class(entity, "team_command")))         commchairs++         return commchairs }
Johnny got his gun is offline