home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2000 January / CD-Gamer_2000-01_04_cd.bin / games / phoenix.exe / Tactics / Dogfight / 2on2FighterGetTogether.tac < prev    next >
Text File  |  1999-09-15  |  1KB  |  59 lines

  1. // Role class A is used for BOTH roles A and B
  2. A: CANTPICK
  3.  
  4. // Role Class B is used for BOTH roles C and D
  5. B: CANTPICK
  6.  
  7. Targets(B)
  8.  
  9. Link: A,A
  10. Link: B,A
  11. Link: C,B
  12. Link: D,B
  13.  
  14. Start(A)
  15.  
  16.  
  17. Timer(A,4000)
  18. FlyFormation1(AB)
  19. Set Priority(A,10)
  20. Label(ENEMY_TOGETHER)
  21. // Are we together?
  22. If(ShotByOther[A,F]): Gosub(A_SHOT_BY_OTHER)
  23. If(CloseTogether[A,B,20000]): Goto(SQUAD_TOGETHER)
  24. If(CloseTogether[C,D,20000]): If(Timer[A]): Goto(ENEMY_TOGETHER)
  25. If(CloseTogether[C,D,20000]): Goto(GO_FOR_IT)
  26. //Tactic Message({A}:{}THEYRE BREAKING FORMATION.)
  27. Split(ABCD,2on2Fighter)
  28. Goto(Adone)
  29.  
  30. Label(GO_FOR_IT)
  31. Split(AC,1on1Fighter)
  32. Split(BD,1on1Fighter)
  33. Goto(Adone)
  34.  
  35. Label(SQUAD_TOGETHER)
  36. Split(ABCD,2on2Fighter)
  37. Goto(Adone)
  38.  
  39.  
  40.  
  41. Label(Adone)
  42. Goto(Adone)
  43.  
  44. Label(A_SHOT_BY_OTHER)
  45. Split(ABF,2on1Fighter)
  46. Goto(Adone)
  47.  
  48.  
  49.  
  50. Start(B)
  51. FlyFormation2(BA)
  52. Label(Bdone)
  53. If(ShotByOther[B,F]): Gosub(B_SHOT_BY_OTHER)
  54. Goto(Bdone)
  55.  
  56. Label(B_SHOT_BY_OTHER)
  57. Split(BAF,2on1Fighter)
  58. Label(Done)
  59. Goto(Done)