daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jul 17th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public void Tick(IAgentUpdateInfo agentUpdate)
  2.         {
  3.             if (agentUpdate.Node.OpposingAgents.Any()) FightOrFlight(agentUpdate);
  4.             else SeekEnemiesAndBuffUp(agentUpdate);
  5.         }
  6.         private void FightOrFlight(IAgentInfo agentInfo)
  7.         {
  8.             if (IsOutnumbered(agentInfo) || IsOutgunned(agentInfo)) Move(agentInfo, FleeStrategy);
  9.             else Fight(agentInfo);
  10.         }
  11.  
  12.         private void SeekEnemiesAndBuffUp(IAgentInfo agentInfo)
  13.         {
  14.             if (IsPinned(agentInfo) || !IsBuffed(agentInfo)) Buff();
  15.             else Move(agentInfo, HuntStrategy);
  16.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top