Files
vgstation13/code/defines/procs
giacomand@gmail.com d5b3b537bf Added recursive_mob_check() proc. It will recursively loop through an atom's contents and check for mobs, then it will loop through every atom in that atom's contents. It will keep doing this until it checks every content possible. This will fix any problems with mobs, that are inside objects, being unable to hear people due to being in a box within a bag.
I then changed the get_mobs_in_view() to use this proc for gathering mobs and radios. 

The old system would loop through lists for a total of 5000 per function call, in an empty server. This new system will loop at around 1000 in an empty server.

I made get_mobs_in_radio_ranges() use a level parameter to help make it more effecient by only bothering with the mobs that are in the Z level that are getting the radio message.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4365 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-11 07:08:58 +00:00
..
2012-04-01 06:39:22 +00:00
2012-08-08 19:32:08 +00:00
2012-08-08 19:32:08 +00:00
2012-08-08 19:32:08 +00:00
2012-08-09 12:40:17 +00:00