organic_analyzer 
Swarmer mob analyzer
Allows swarmers to analyze mobs for organic resources.
Vars | |
| air_contents | The contents of the gas to be distributed to an occupant. Set in Initialize() |
|---|---|
| occupant | Current mob in src |
| organs_blacklist | List of organs we don't remove |
| sound_loop | Active processing sound loop |
| spark_system | Spark system (since we use them a lot) |
| weather_protection | The list of weathers we protect the occupant from. |
Procs | |
| adjust_resources | Proc used to adjust resources based on occupant mob |
| finish_analyzing | Callback proc from signal proc |
| refresh_air | Refreshes air_contents variable after each occupant |
| take_random_organs | Proc used to get rid of random bodyparts and organs |
| teleport_to_safe | Proc used to get rid of the occupant (teleport it to a safe place) |
| try_load_mob | Handles loading in a mob, checks if we have any space for them. Returns TRUE if we have space. Returns FALSE otherwise. |
Var Details
air_contents 
The contents of the gas to be distributed to an occupant. Set in Initialize()
occupant 
Current mob in src
organs_blacklist 
List of organs we don't remove
sound_loop 
Active processing sound loop
spark_system 
Spark system (since we use them a lot)
weather_protection 
The list of weathers we protect the occupant from.
Proc Details
adjust_resources
Proc used to adjust resources based on occupant mob
Adjusts twice less from corpses.
finish_analyzing
Callback proc from signal proc
Deletes a random non critical bodypart/organ, adjusts swarmer resources, teleports the target to a safe place.
refresh_air
Refreshes air_contents variable after each occupant
take_random_organs
Proc used to get rid of random bodyparts and organs
Removes organs not included in organs_blacklist typecache list with a SWARMER_ANALYZE_ORGAN_REMOVE_CHANCE chance, one by one. Has a limit for removed external bodyparts - SWARMER_ANALYZE_FINISH_EXTERNAL_BODYPART_TAKE_MAX.
teleport_to_safe
Proc used to get rid of the occupant (teleport it to a safe place)
try_load_mob
Handles loading in a mob, checks if we have any space for them. Returns TRUE if we have space. Returns FALSE otherwise.