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