См. определение в файле Land_Underground_WaterReservoir.c строка 533
Перекрестные ссылки AnimateValve(), g_Game и m_ValveManipulatedIndex.