void CObject::MakeMeCrow () { if (Props.crow) return ; if (!processing_enabled()) return ; Props.crow = true ; MakeMeCrow_internal () ; }
void CCustomMonster::shedule_Update ( u32 DT ) { VERIFY (!g_Alive() || processing_enabled()); // Queue shrink VERIFY (_valid(Position())); u32 dwTimeCL = Level().timeServer()-NET_Latency; VERIFY (!NET.empty()); while ((NET.size()>2) && (NET[1].dwTimeStamp<dwTimeCL)) NET.pop_front(); float dt = float(DT)/1000.f; // *** general stuff if (g_Alive()) { if ( false && g_mt_config.test(mtAiVision) ) #ifndef DEBUG Device.seqParallel.push_back (fastdelegate::FastDelegate0<>(this,&CCustomMonster::Exec_Visibility)); #else // DEBUG { if (!psAI_Flags.test(aiStalker) || !!smart_cast<CActor*>(Level().CurrentEntity())) Device.seqParallel.push_back(fastdelegate::FastDelegate0<>(this,&CCustomMonster::Exec_Visibility)); else Exec_Visibility (); } #endif // DEBUG else Exec_Visibility (); memory().update (dt); }