Roof check for entity, limited by time (anti-spam solution)
См. определение в файле ItemBase.c строка 4031
4032 {
4033 super.CheckForRoofLimited(timeTresholdMS);
4034
4036 if ((time - m_PreviousRoofTestTime) >= timeTresholdMS)
4037 {
4038 m_PreviousRoofTestTime = time;
4039 SetRoofAbove(MiscGameplayFunctions.IsUnderRoof(this));
4040 }
4041 }
proto int GetTime()
returns mission time in milliseconds
proto native CGame GetGame()
Перекрестные ссылки GetGame() и CGame::GetTime().