Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 6.16 KB | None | 0 0
  1.  
  2. rule ("") {
  3.     event {
  4.         ongoing-global;
  5.     }
  6.  
  7.     actions {
  8.         setGlobalVariable(B, currentMap);
  9.         createHudText(allPlayers(AllTeams), customString("Interact: Spawn {0}", hero(D.va), null, null), null, null, Left, 0, Aqua, White, White, VisibleToAndString, Visiblealways);
  10.     }
  11. }
  12.  
  13. rule ("") {
  14.     event {
  15.         ongoing-global;
  16.     }
  17.  
  18.     conditions {
  19.         globalVariable(B) == Map(Ayutthaya);
  20.     }
  21.  
  22.     actions {
  23.         setGlobalVariable(A, vector(30, 21, 110));
  24.     }
  25. }
  26.  
  27. rule ("") {
  28.     event {
  29.         ongoing-global;
  30.     }
  31.  
  32.     conditions {
  33.         globalVariable(B) == Map(Black Forest);
  34.     }
  35.  
  36.     actions {
  37.         setGlobalVariable(A, vector(-10.71, 22.11, 34.75));
  38.     }
  39. }
  40.  
  41. rule ("") {
  42.     event {
  43.         ongoing-global;
  44.     }
  45.  
  46.     conditions {
  47.         globalVariable(B) == Map(Castillo);
  48.     }
  49.  
  50.     actions {
  51.         setGlobalVariable(A, vector(-108.15, 38.31, 26.32));
  52.     }
  53. }
  54.  
  55. rule ("") {
  56.     event {
  57.         ongoing-global;
  58.     }
  59.  
  60.     conditions {
  61.         globalVariable(B) == Map(Ecopoint: Antartica);
  62.     }
  63.  
  64.     actions {
  65.         setGlobalVariable(A, vector(31.82, 16, 4.28));
  66.     }
  67. }
  68.  
  69. rule ("") {
  70.     event {
  71.         ongoing-global;
  72.     }
  73.  
  74.     conditions {
  75.         globalVariable(B) == Map(necropolis);
  76.     }
  77.  
  78.     actions {
  79.         setGlobalVariable(A, vector(-39.5, 9, 0));
  80.     }
  81. }
  82.  
  83. rule ("") {
  84.     event {
  85.         ongoing-global;
  86.     }
  87.  
  88.     conditions {
  89.         globalVariable(B) == Map(Hanamura);
  90.     }
  91.  
  92.     actions {
  93.         setGlobalVariable(A, vector(89.68, -3.51, 94.48));
  94.     }
  95. }
  96.  
  97. rule ("") {
  98.     event {
  99.         ongoing-global;
  100.     }
  101.  
  102.     conditions {
  103.         globalVariable(B) == Map(Blizzard World);
  104.     }
  105.  
  106.     actions {
  107.         setGlobalVariable(A, vector(3, -5, -106.62));
  108.     }
  109. }
  110.  
  111. rule ("") {
  112.     event {
  113.         ongoing-global;
  114.     }
  115.  
  116.     conditions {
  117.         globalVariable(B) == Map(Busan);
  118.     }
  119.  
  120.     actions {
  121.         setGlobalVariable(A, vector(210.21, 9.21, 201.92));
  122.     }
  123. }
  124.  
  125. rule ("") {
  126.     event {
  127.         ongoing-global;
  128.     }
  129.  
  130.     conditions {
  131.         globalVariable(B) == Map(Dorado);
  132.     }
  133.  
  134.     actions {
  135.         setGlobalVariable(A, vector(76.15, 20, 16));
  136.     }
  137. }
  138.  
  139. rule ("") {
  140.     event {
  141.         ongoing-global;
  142.     }
  143.  
  144.     actions {
  145.         createDummyBot(hero(D.va), Team1, 3, globalVariable(A), vector(0, 0, 0));
  146.         createDummyBot(hero(D.va), Team1, 4, globalVariable(A), vector(0, 0, 0));
  147.         createDummyBot(hero(D.va), Team1, 5, globalVariable(A), vector(0, 0, 0));
  148.         createDummyBot(hero(D.va), Team2, 3, globalVariable(A), vector(0, 0, 0));
  149.         createDummyBot(hero(D.va), Team2, 4, globalVariable(A), vector(0, 0, 0));
  150.         createDummyBot(hero(D.va), Team2, 5, globalVariable(A), vector(0, 0, 0));
  151.     }
  152. }
  153.  
  154. rule ("") {
  155.     event {
  156.         ongoing-eachplayer;
  157.         all;
  158.         all;
  159.     }
  160.  
  161.     conditions {
  162.         isDummyBot(eventPlayer) == false;
  163.         hasSpawned(eventPlayer) == true;
  164.     }
  165.  
  166.     actions {
  167.         setPlayerVariable(eventPlayer, D, playersInSlot(add(slotOf(eventPlayer), 3), teamOf(eventPlayer)));
  168.         createHudText(eventPlayer, playerVariable(eventPlayer, C), null, null, Left, 1, Yellow, White, White, VisibleToAndString, Defaultvisibility);
  169.         chasePlayerVariableAtRate(eventPlayer, C, 0, 1, DestinationAndRate);
  170.     }
  171. }
  172.  
  173. rule ("") {
  174.     event {
  175.         ongoing-eachplayer;
  176.         all;
  177.         all;
  178.     }
  179.  
  180.     conditions {
  181.         isButtonHeld(eventPlayer, Interact) == true;
  182.         playerVariable(eventPlayer, C) == 0;
  183.     }
  184.  
  185.     actions {
  186.         setFacing(playerVariable(eventPlayer, D), facingDirectionOf(eventPlayer), ToWorld);
  187.         setPlayerVariable(playerVariable(eventPlayer, D), E, positionOf(eventPlayer));
  188.         setPlayerVariable(playerVariable(eventPlayer, D), B, true);
  189.         setPlayerVariable(eventPlayer, C, 3);
  190.         createEffect(allPlayers(AllTeams), LightShaft, Purple, add(positionOf(eventPlayer), vector(0, -2, 0)), 1.5, VisibleTo);
  191.         setPlayerVariable(eventPlayer, F, lastCreatedEntity);
  192.         wait(2.1, IgnoreCondition);
  193.         destroyEffect(playerVariable(eventPlayer, F));
  194.     }
  195. }
  196.  
  197. rule ("") {
  198.     event {
  199.         ongoing-eachplayer;
  200.         all;
  201.         all;
  202.     }
  203.  
  204.     conditions {
  205.         isDummyBot(eventPlayer) == true;
  206.         heroOf(eventPlayer) == hero(D.va);
  207.         hasSpawned(eventPlayer) == true;
  208.     }
  209.  
  210.     actions {
  211.         wait(1, IgnoreCondition);
  212.         setDamageDealt(eventPlayer, 0);
  213.         setStatus(eventPlayer, null, PhasedOut, 9999);
  214.         setInvisible(eventPlayer, All);
  215.         setPlayerVariable(eventPlayer, A, positionOf(eventPlayer));
  216.         teleport(eventPlayer, globalVariable(A));
  217.     }
  218. }
  219.  
  220. rule ("") {
  221.     event {
  222.         ongoing-eachplayer;
  223.         all;
  224.         D.va;
  225.     }
  226.  
  227.     conditions {
  228.         hasSpawned(eventPlayer) == true;
  229.         isDummyBot(eventPlayer) == true;
  230.     }
  231.  
  232.     actions {
  233.         setDamageReceived(eventPlayer, 300);
  234.     }
  235. }
  236.  
  237. rule ("") {
  238.     event {
  239.         ongoing-eachplayer;
  240.         all;
  241.         all;
  242.     }
  243.  
  244.     conditions {
  245.         playerVariable(eventPlayer, B) == true;
  246.         heroOf(eventPlayer) == hero(D.va);
  247.         isDummyBot(eventPlayer) == true;
  248.     }
  249.  
  250.     actions {
  251.         wait(0.032, IgnoreCondition);
  252.         teleport(eventPlayer, playerVariable(eventPlayer, A));
  253.         setUltimateCharge(eventPlayer, 100);
  254.         pressButton(eventPlayer, Ultimate);
  255.         wait(1.936, IgnoreCondition);
  256.         setUltimateCharge(eventPlayer, 100);
  257.         pressButton(eventPlayer, Ultimate);
  258.         wait(0.016, IgnoreCondition);
  259.         setUltimateCharge(eventPlayer, 100);
  260.         pressButton(eventPlayer, Ultimate);
  261.         wait(0.032, IgnoreCondition);
  262.         teleport(eventPlayer, playerVariable(eventPlayer, E));
  263.         playEffect(allPlayers(AllTeams), GoodExplosion, Purple, add(playerVariable(eventPlayer, E), vector(0, 1, 0)), 2);
  264.         wait(0.176, IgnoreCondition);
  265.         kill(eventPlayer, null);
  266.         resurrect(eventPlayer);
  267.         wait(0.35, IgnoreCondition);
  268.         teleport(eventPlayer, globalVariable(A));
  269.         setPlayerVariable(eventPlayer, B, false);
  270.     }
  271. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement