void Count2Blue() { int DT=0; while(CTest() != 1) { Count1(); DT++; LineCheck(); Move(); } ShootTarget(); Return(DT); }
void Gabriel::UpdateAggressive() { CServerDE* pServerDE = GetServerDE(); if (!pServerDE || !m_hObject || !m_hTarget) return; CBaseCharacter* pB = (CBaseCharacter*) pServerDE->HandleToObject(m_hTarget); if (!pB) return; if (pB->IsDead()) { // Stop coming after Sanjuro... SetNewTarget(DNULL); m_bSpottedPlayer = DFALSE; // Set to idle (after script)... SetState(IDLE); BuildTauntScript(); SetScript(); PlayDialogSound("Sounds\\MajorCharacter\\Gabriel\\sanjurodead.wav"); } // Try to shoot sanjuro..... if (SanjuroInRange()) { ShootTarget(); } // Always try to get a better shot... ApproachSanjuro(); }