This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallyTesting.workshop
104 lines (96 loc) · 2.69 KB
/
allyTesting.workshop
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import "settings/allyTestingSettings.lobby";
import 'utilities/AntiCrash.del';
import '../OSTWUtils/ServerLoad.del';
import "shared.workshop";
rule: '[allyTesting.workshop] Set Ultimate Charge'
if (IsTrueForAny(AllLivingPlayers(), UltimateChargePercent(ArrayElement()) < 100))
{
SetUltimateCharge(AllLivingPlayers(), 100);
Wait(0.25);
LoopIfConditionIsTrue();
}
rule: '[allyTesting.workshop] Setup Bots'
{
for (define slot = 0; 4; 1)
{
CreateDummyBot(Hero.Tracer, Team.Team1, slot);
}
CreateDummyBot(Hero.Mercy, Team.Team1, 4, Left() * 5);
Wait(1);
CreateDummyBot(Hero.Lucio, Team.Team2, 0, Forward() * 5);
Wait(1);
CreateDummyBot(Hero.Roadhog, Team.Team2, 1, Backward() * 5);
Wait(1);
CreateDummyBot(Hero.Baptiste, Team.Team2, 2, Backward() * 10);
Wait(1);
CreateDummyBot(Hero.Zarya, Team.Team2, 3, Forward() * 10);
Wait(1);
CreateDummyBot(Hero.Mercy, Team.Team2, 4, Right() * 10);
}
rule: '[allyTesting.workshop] Damage Bots'
Event.OngoingPlayer
Team.Team1
if (IsDummyBot())
if (NormalizedHealth() == 1)
{
Damage(EventPlayer(), null, Health() - 1);
}
rule: '[allyTesting.workshop] Mercy Angelic Blessing'
Event.OngoingPlayer
Player.Mercy
if (IsDummyBot())
if (AbilityCooldown(Button: Button.Ability2) == 0)
{
PressButton(Button: Button.Ability2);
Wait(1);
LoopIfConditionIsTrue();
}
rule: '[allyTesting.workshop] Echo Duplication'
Event.OngoingPlayer
Team.Team2
Player.Echo
if (IsDummyBot())
{
SetUltimateCharge(ChargePercent: 100);
PressButton(Button: Button.Ultimate);
Wait(2);
LoopIfConditionIsTrue();
}
rule: '[allyTesting.workshop] Symmetra Ultimate'
Event.OngoingPlayer
Team.Team2
Player.Symmetra
if (IsDummyBot())
if (SlotOf() == 2)
if (UltimateChargePercent() == 100)
{
Wait(2);
PressButton(Button: Button.Ultimate);
LoopIfConditionIsTrue();
}
rule: '[allyTesting.workshop] Return to Hero Select'
Event.OngoingPlayer
if (!IsDummyBot())
if (IsButtonHeld(Button: Button.Reload))
{
Wait(0.5, WaitBehavior.AbortWhenFalse);
SetAllowedHeroes(EventPlayer(), AllowedHeroes().Remove(HeroOf()));
ResetHeroAvailability();
}
rule: '[allyTesting.workshop] Hud'
{
CreateHudText(
VisibleTo: AllPlayers(),
Text: <"Hold [<0>] to return to hero select", InputBindingString(Button.Reload)>,
TextColor: Color.Yellow,
Location: Location.Right,
SortOrder: -8,
);
CreateHudText(
VisibleTo: AllPlayers(),
Text: <"Entities: <0> | Texts: <1> | Damage Mods: <2> | Healing Mods: <3>", EntityCount(), TextCount(), DamageModificationCount(), HealingModificationCount()>,
TextColor: Color.White,
Location: Location.Right,
SortOrder: -9,
);
}