1v1黑百合对狙
settings
{
main
{
Description: "CODE:CE2J1 1V1 WIDOW LIJIANG made by reptilee + OW2 Fix and No bounce by Smokelia"
Mode Name: "Widow hs 1V1"
}
lobby
{
Allow Players Who Are In Queue: Yes
Match Voice Chat: Enabled
Max Spectators: 12
}
modes
{
Deathmatch
{
enabled maps
{
Lijiang Night Market 0
}
}
General
{
Game Mode Start: Immediately
Respawn As Random Hero: On
Self Initiated Respawn: Off
Spawn Health Packs: Disabled
}
}
heroes
{
General
{
Cassidy
{
Projectile Speed: 0%
}
Soldier: 76
{
Biotic Field: Off
}
Widowmaker
{
No Automatic Fire: On
Receive Headshots Only: On
Venom Mine: Off
}
enabled heroes
{
Widowmaker
}
}
}
}
variables
{
global:
0: BotDistance
4: SetRandomFacing
player:
4: DamageFloatTimer
}
rule("Init")
{
event
{
Ongoing - Global;
}
actions
{
If(Current Map == Map(Lijiang Night Market));
"챔피언위치"
Global.BotDistance = Vector(13.677, 1.500, -29.911);
"도전자위치"
Modify Global Variable(BotDistance, Append To Array, Vector(-12.033, 4.360, -29.887));
End;
Global.G = Empty Array;
Disable Built-In Game Mode Scoring;
Create HUD Text(Filtered Array(All Players(All Teams), Global.C > 4 && Global.SetRandomFacing != Global.C), Custom String(
"RECORD: {0} {1} STREAK", Global.F, Global.C), Null, Null, Left, -6, Color(Red), Color(White), Color(White),
Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Global.SetRandomFacing > 1), Custom String("{2} {0} {1} STREAK!", Global.D,
Global.SetRandomFacing, Global.SetRandomFacing < 4 ? Custom String("") : (Global.SetRandomFacing < 9 ? Custom String("EPIC")
: (Global.SetRandomFacing < 14 ? Custom String("CRAZY") : Custom String("LEGENDARY")))), Null, Null, Left, -5, Color(Purple),
Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 2), Custom String("WAITING LIST"), Null,
Null, Right, 0, Color(White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 2), Global.G[2], Null, Null, Right, 2, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 3), Global.G[3], Null, Null, Right, 3, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 4), Global.G[4], Null, Null, Right, 4, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 5), Global.G[5], Null, Null, Right, 5, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 6), Global.G[6], Null, Null, Right, 6, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 7), Global.G[7], Null, Null, Right, 7, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 8), Global.G[8], Null, Null, Right, 8, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 9), Global.G[9], Null, Null, Right, 9, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 10), Global.G[10], Null, Null, Right, 10,
Color(White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(Filtered Array(All Players(All Teams), Number Of Players(All Teams) > 11), Global.G[11], Null, Null, Right, 11,
Color(White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(All Players(All Teams), Custom String("{0} vs {1}", Global.G[0], Global.G[1]), Null, Null, Top, -2, Color(White),
Color(White), Color(White), Visible To and String, Default Visibility);
Set Match Time(0);
Create HUD Text(All Players(All Teams), Null, Null, Custom String("CODE: CE2J1"), Right, -10, Color(White), Color(White), Color(
White), Visible To and String, Default Visibility);
Disable Built-In Game Mode Announcer;
Disable Built-In Game Mode Completion;
Disable Built-In Game Mode Music;
Wait(1, Ignore Condition);
Set Match Time(0);
Create HUD Text(All Players(All Teams), Null, Custom String(
"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"),
Custom String(
"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"),
Top, -1, Color(White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(All Players(All Teams), Custom String("TIMER {0}", Global.K), Null, Null, Left, 0, Color(White), Color(White),
Color(White), Visible To and String, Default Visibility);
Global.K = 20;
}
}
rule("Player init")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Has Spawned(Event Player) == True;
}
actions
{
Disable Built-In Game Mode Respawning(Event Player);
Enable Death Spectate Target HUD(Event Player);
Enable Death Spectate All Players(Event Player);
Modify Global Variable(G, Append To Array, Event Player);
}
}
rule("Kill")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Index Of Array Value(Global.G, Event Player) > 1;
}
actions
{
Kill(Event Player, Null);
}
}
rule("Start")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Event Player == Global.G[1];
Global.B == False;
}
actions
{
Stop Scaling Player(All Players(All Teams));
Start Scaling Player(All Players(All Teams), 1, True);
Stop Chasing Global Variable(K);
Global.K = 20;
Global.Z = 1;
Teleport(First Of(Global.G), First Of(Global.BotDistance));
Teleport(Global.G[1], Global.BotDistance[1]);
Resurrect(Array Slice(Global.G, 0, 2));
Start Forcing Player To Be Hero(Array Slice(Global.G, 0, 2), Randomized Array(Allowed Heroes(Event Player)));
Heal(Array Slice(Global.G, 0, 2), Null, 10000);
Set Status(Array Slice(Global.G, 0, 2), Null, Rooted, 3);
Set Primary Fire Enabled(Array Slice(Global.G, 0, 2), False);
Set Secondary Fire Enabled(Array Slice(Global.G, 0, 2), False);
Set Ability 1 Enabled(Array Slice(Global.G, 0, 2), False);
Set Ability 2 Enabled(Array Slice(Global.G, 0, 2), False);
Set Ultimate Ability Enabled(Array Slice(Global.G, 0, 2), False);
Small Message(All Players(All Teams), 3);
Play Effect(All Players(All Teams), Ring Explosion Sound, Color(White), (First Of(Global.BotDistance) + Last Of(
Global.BotDistance)) / 2, 200);
Wait(1, Abort When False);
Press Button(Global.G, Button(Reload));
Small Message(All Players(All Teams), 2);
Play Effect(All Players(All Teams), Ring Explosion Sound, Color(White), (First Of(Global.BotDistance) + Last Of(
Global.BotDistance)) / 2, 200);
Wait(1, Abort When False);
Small Message(All Players(All Teams), 1);
Play Effect(All Players(All Teams), Ring Explosion Sound, Color(White), (First Of(Global.BotDistance) + Last Of(
Global.BotDistance)) / 2, 200);
Wait(1, Abort When False);
Small Message(All Players(All Teams), Custom String("START"));
Play Effect(All Players(All Teams), Buff Impact Sound, Color(White), (First Of(Global.BotDistance) + Last Of(Global.BotDistance))
/ 2, 200);
Set Primary Fire Enabled(Array Slice(Global.G, 0, 2), True);
Set Secondary Fire Enabled(Array Slice(Global.G, 0, 2), True);
Set Ability 1 Enabled(Array Slice(Global.G, 0, 2), True);
disabled Set Ability 2 Enabled(Array Slice(Global.G, 0, 2), True);
Set Ultimate Ability Enabled(Array Slice(Global.G, 0, 2), True);
Global.Z = 0;
Chase Global Variable Over Time(K, 0, 20, Destination and Duration);
}
}
rule("Cooldown")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Array Contains(Array Slice(Global.G, 0, 2), Event Player) == True;
Global.B == False;
}
actions
{
Set Ability Cooldown(Event Player, Button(Secondary Fire), 0);
Set Ability Cooldown(Event Player, Button(Ability 1), 0);
Set Ability Cooldown(Event Player, Button(Ability 2), 0);
Set Ability Cooldown(Event Player, Button(Crouch), 0);
}
}
rule("Disconnect")
{
event
{
Player Left Match;
All;
All;
}
actions
{
Modify Global Variable(G, Remove From Array By Value, Event Player);
}
}
rule("Win")
{
event
{
Player Died;
All;
All;
}
conditions
{
Array Contains(Array Slice(Global.G, 0, 2), Event Player) == True;
}
actions
{
Global.Z = 0;
Global.B = True;
Global.P = Global.G[!Index Of Array Value(Global.G, Event Player)];
Cancel Primary Action(Global.P);
Wait(0.050, Ignore Condition);
Big Message(All Players(All Teams), Custom String("{0} WON!", Global.P));
Skip If(Global.D != Global.P, 2);
Global.SetRandomFacing += 1;
Skip(2);
Global.D = Global.P;
Global.SetRandomFacing = 1;
If(Global.SetRandomFacing > Global.C);
Global.C = Global.SetRandomFacing;
Global.F = Custom String("{0}", Global.P);
End;
Modify Global Variable(G, Remove From Array By Value, Event Player);
Modify Global Variable(G, Append To Array, Event Player);
If(Global.P == Host Player);
Modify Player Score(Global.P, 2);
Else;
Modify Player Score(Global.P, 1);
End;
Wait(1, Ignore Condition);
Global.B = False;
}
}
disabled rule("Dummy bot")
{
event
{
Ongoing - Global;
}
actions
{
Create Dummy Bot(Hero(Widowmaker), All Teams, 1, Vector(0, 0, 0), Vector(0, 0, 0));
}
}
rule("Bounce Zone")
{
event
{
Player Took Damage;
All;
All;
}
conditions
{
disabled Y Component Of(Position Of(Event Player)) < 1;
Global.Z == 0;
disabled Event Player == Global.G[1];
}
actions
{
disabled Set Status(Event Player, Null, Rooted, 9999);
disabled Teleport(Event Player, Vector(Random Real(-20, 20), Random Real(-9, -8), Global.BotDistance + -90));
disabled Apply Impulse(Event Player, Vector(X Component Of(Position Of(Event Player)) * -1, Random Real(35, 45), 0), Random Real(20, 30),
To World, Cancel Contrary Motion);
disabled Stop Facing(Event Player);
disabled Skip If(Global.SetRandomFacing == False, 2);
disabled Set Facing(Event Player, Vector(Random Real(-1, 1), 0, Random Real(-1, 1)), To World);
disabled Skip(1);
disabled Start Facing(Event Player, Direction Towards(Eye Position(Event Player), Eye Position(Host Player)), 100, To World,
Direction and Turn Rate);
disabled Skip If(Event Player.DamageFloatTimer > 0, 1);
disabled Heal(Event Player, Null, Max Health(Event Player) * 0.100);
disabled Wait(2, Abort When False);
disabled Loop;
}
}
disabled rule("Position debug")
{
event
{
Ongoing - Each Player;
All;
All;
}
actions
{
Create HUD Text(All Players(All Teams), Custom String("{0}", Position Of(Event Player)), Null, Null, Left, 0, Color(White), Color(
White), Color(White), Visible To and String, Default Visibility);
}
}
disabled rule("Effect")
{
event
{
Player Took Damage;
All;
All;
}
actions
{
Play Effect(All Players(All Teams), Good Explosion, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Bad Explosion, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Ring Explosion, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Ring Explosion Sound, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Buff Explosion Sound, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Explosion Sound, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Buff Impact Sound, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Debuff Impact Sound, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Bad Pickup Effect, Color(White), Event Player, 200);
Play Effect(All Players(All Teams), Good Pickup Effect, Color(White), Event Player, 200);
Big Message(All Players(All Teams), Custom String("BOOM"));
}
}
rule("Timer")
{
event
{
Ongoing - Global;
}
conditions
{
Global.K == 0;
}
actions
{
Start Scaling Player(All Players(All Teams), 3, True);
}
}
0 Comments