viva a Heroes Select Table, Orbs pops up with Hero Icons etc… if you shot ana you get ana, if you shot bap, you get bap- etc
variables
{
global:
29: AllowButton
30: Layer0_Button
33: ControllerPlayerHeroes
34: ControllerBotHeroes
}
subroutines
{
11: Layer1_Button
12: DisallowButton
}
rule("ControllerPlayerHeroes | Select")
{
event
{
Ongoing - Each Player;
Team 1;
All;
}
conditions
{
Is Button Held(Event Player, Button(Primary Fire)) == True;
Global.ControllerPlayerHeroes[0] == 0;
Distance Between(Global.Layer0_Button[0], Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player)
+ Facing Direction Of(Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True)) <= 1;
Global.AllowButton == True;
Global.ControllerBotHeroes == False;
}
actions
{
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer0_Button[0], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Global.ControllerPlayerHeroes[0] = 1;
Call Subroutine(Layer1_Button);
Call Subroutine(DisallowButton);
}
}
variables
{
global:
29: AllowButton
31: List_Heroes
33: ControllerPlayerHeroes
38: Layer1_Button
}
subroutines
{
12: DisallowButton
}
rule("Start Forcing Player To Be Hero [Ana]")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Button Held(Event Player, Button(Primary Fire)) == True;
Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(Event Player)
* 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[0]) <= 0.666;
Global.ControllerPlayerHeroes == 1;
Global.AllowButton == True;
}
actions
{
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[0], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[0]);
Call Subroutine(DisallowButton);
}
}
rule("Start Forcing Player To Be Hero [Baptiste]")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Button Held(Event Player, Button(Primary Fire)) == True;
Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(Event Player)
* 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[1]) <= 0.666;
Global.ControllerPlayerHeroes == 1;
Global.AllowButton == True;
}
actions
{
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[1], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[1]);
Call Subroutine(DisallowButton);
}
}
is there a way how i can make one Rule for this ? and not 38 ?^^
- Button for the hero select pop up with a subroutine
- one button for each hero (38 total 0-37)
EDIT: Better Way to do this ?
variables
{
global:
29: AllowButton
31: List_Heroes
33: ControllerPlayerHeroes
38: Layer1_Button
}
subroutines
{
12: DisallowButton
}
rule("Start Forcing Player To Be Hero |")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
disabled (Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Vector(0, 0, 0), All Players(All Teams), Event Player, True),
Vector(0, 0, 0)) ? 0 : (True ? 0 : 0)) == True;
disabled Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(Event Player)
* 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[0]) <= 0.666;
Is Button Held(Event Player, Button(Primary Fire)) == True;
Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(Event Player)
* 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Index Of Array Value(Global.Layer1_Button,
True)) <= 0.666;
Global.ControllerPlayerHeroes == 1;
Global.AllowButton == True;
}
actions
{
"0"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[0])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[0], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[0]);
Call Subroutine(DisallowButton);
End;
"1"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[1])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[1], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[1]);
Call Subroutine(DisallowButton);
End;
"2"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[2])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[2], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[2]);
Call Subroutine(DisallowButton);
End;
"3"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[3])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[3], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[3]);
Call Subroutine(DisallowButton);
End;
"4"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[4])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[4], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[4]);
Call Subroutine(DisallowButton);
End;
"5"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[5])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[5], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[5]);
Call Subroutine(DisallowButton);
End;
"6"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[6])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[6], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[6]);
Call Subroutine(DisallowButton);
End;
"7"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[7])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[7], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[7]);
Call Subroutine(DisallowButton);
End;
"8"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[8])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[8], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[8]);
Call Subroutine(DisallowButton);
End;
"9"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[9])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[9], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[9]);
Call Subroutine(DisallowButton);
End;
"10"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[10])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[10], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[10]);
Call Subroutine(DisallowButton);
End;
"11"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[11])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[11], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[11]);
Call Subroutine(DisallowButton);
End;
"12"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[12])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[12], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[12]);
Call Subroutine(DisallowButton);
End;
"13"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[13])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[13], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[13]);
Call Subroutine(DisallowButton);
End;
"14"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[14])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[14], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[14]);
Call Subroutine(DisallowButton);
End;
"15"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[15])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[15], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[15]);
Call Subroutine(DisallowButton);
End;
"16"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[16])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[16], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[16]);
Call Subroutine(DisallowButton);
End;
"17"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[17])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[17], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[17]);
Call Subroutine(DisallowButton);
End;
"18"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[18])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[18], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[18]);
Call Subroutine(DisallowButton);
End;
"19"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[19])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[19], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[19]);
Call Subroutine(DisallowButton);
End;
"20"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[20])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[20], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[20]);
Call Subroutine(DisallowButton);
End;
"21"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[21])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[21], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[21]);
Call Subroutine(DisallowButton);
End;
"22"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[22])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[22], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[22]);
Call Subroutine(DisallowButton);
End;
"23"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[23])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[23], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[23]);
Call Subroutine(DisallowButton);
End;
"24"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[24])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[24], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[24]);
Call Subroutine(DisallowButton);
End;
"25"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[25])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[25], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[25]);
Call Subroutine(DisallowButton);
End;
"26"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[26])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[26], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[26]);
Call Subroutine(DisallowButton);
End;
"27"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[27])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[27], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[27]);
Call Subroutine(DisallowButton);
End;
"28"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[28])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[28], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[28]);
Call Subroutine(DisallowButton);
End;
"29"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[29])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[29], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[29]);
Call Subroutine(DisallowButton);
End;
"30"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[30])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[30], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[30]);
Call Subroutine(DisallowButton);
End;
"31"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[31])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[31], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[31]);
Call Subroutine(DisallowButton);
End;
"32"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[32])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[32], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[32]);
Call Subroutine(DisallowButton);
End;
"33"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[33])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[33], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[33]);
Call Subroutine(DisallowButton);
End;
"34"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[34])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[34], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[34]);
Call Subroutine(DisallowButton);
End;
"35"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[35])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[35], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[35]);
Call Subroutine(DisallowButton);
End;
"36"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[36])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[36], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[36]);
Call Subroutine(DisallowButton);
End;
"37"
If(Distance Between(Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player) + Facing Direction Of(
Event Player) * 1000, All Players(Opposite Team Of(Team Of(Event Player))), Event Player, True), Global.Layer1_Button[37])
<= 0.666);
Play Effect(All Players(All Teams), Good Explosion, Color(Green), Global.Layer1_Button[37], 1);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(Green), Event Player, 100);
Wait(0.250, Ignore Condition);
Start Forcing Player To Be Hero(Event Player, Global.List_Heroes[37]);
Call Subroutine(DisallowButton);
End;
}
}