Create
Return to post

Comparing difference between and

View raw
  • settings
  • {
  • main
  • {
  • Description: "B36E5 - Scale Deathmatch - Increase size with kill, decrease with death - discord.gg/YP544CH"
  • Description: "3WYARV - Scale Deathmatch - Increase size with kill, decrease with death - discord.gg/YP544CH"
  • }
  • lobby
  • {
  • Allow Players Who Are In Queue: Yes
  • Map Rotation: After A Game
  • Match Voice Chat: Enabled
  • Max Spectators: 12
  • Return To Lobby: Never
  • }
  • modes
  • {
  • Deathmatch
  • General
  • {
  • Game Mode Start: Immediately
  • Hero Limit: Off
  • Kill Cam: Off
  • Score To Win: 25
  • }
  • }
  • }
  • variables
  • {
  • global:
  • 0: Option_Scale_Factor_Increase
  • 1: Option_Scale_Factor_Decrease
  • 2: Option_Player_Minimum_Scale
  • 3: Option_Player_Maximum_Scale
  • 4: Option_Collision_Disable_At
  • 15: Option_Debug
  • player:
  • 0: Player_Scale
  • 1: Player_Health_Level
  • }
  • rule("Options")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • Global.Option_Debug = Workshop Setting Toggle(Custom String("General"), Custom String("Debug Mode"), False);
  • Global.Option_Scale_Factor_Increase = Workshop Setting Real(Custom String("General"), Custom String("Scale Factor - Increase"), 2,
  • 0, 100);
  • Global.Option_Scale_Factor_Decrease = Workshop Setting Real(Custom String("General"), Custom String("Scale Factor - Decrease"), 2,
  • 0, 100);
  • Global.Option_Player_Minimum_Scale = Workshop Setting Real(Custom String("General"), Custom String("Scale - Minimum"), 0.250, 0,
  • 100);
  • Global.Option_Player_Maximum_Scale = Workshop Setting Real(Custom String("General"), Custom String("Scale - Maximum"), 50, 0, 100);
  • Global.Option_Collision_Disable_At = Workshop Setting Real(Custom String("General"), Custom String(
  • "Disable collision with walls at scale"), 3, 0, 100);
  • }
  • }
  • rule("Start scaling")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • actions
  • {
  • Event Player.Player_Scale = 1;
  • Start Scaling Player(Event Player, Event Player.Player_Scale, True);
  • Event Player.Player_Health_Level = 0;
  • Add Health Pool To Player(Event Player, Health, Max(0, Event Player.Player_Health_Level * 100), True, True);
  • }
  • }
  • rule("Decrease scale with Death")
  • {
  • event
  • {
  • Player Died;
  • All;
  • All;
  • }
  • actions
  • {
  • If(Event Player.Player_Scale > Global.Option_Player_Minimum_Scale);
  • Event Player.Player_Scale = Event Player.Player_Scale / Global.Option_Scale_Factor_Decrease;
  • Event Player.Player_Health_Level -= 1;
  • Else;
  • Event Player.Player_Scale = Global.Option_Player_Minimum_Scale;
  • End;
  • If(Event Player.Player_Scale <= Global.Option_Collision_Disable_At);
  • Enable Movement Collision With Environment(Event Player);
  • End;
  • }
  • }
  • rule("Increase scale with death")
  • {
  • event
  • {
  • Player Dealt Final Blow;
  • All;
  • All;
  • }
  • actions
  • {
  • If(Event Player.Player_Scale < Global.Option_Player_Maximum_Scale);
  • Event Player.Player_Scale = Event Player.Player_Scale * Global.Option_Scale_Factor_Increase;
  • Event Player.Player_Health_Level += 1;
  • Heal(Event Player, Null, 100);
  • Else;
  • Event Player.Player_Scale = Global.Option_Player_Maximum_Scale;
  • End;
  • If(Event Player.Player_Scale > Global.Option_Collision_Disable_At);
  • Disable Movement Collision With Environment(Event Player, False);
  • End;
  • }
  • }
  • rule("UI - Global")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • Create HUD Text(All Players(All Teams), Null, Custom String("discord.gg/YP544CH"), Custom String("B36E5 - Version 0.1"), Right, 0,
  • Create HUD Text(All Players(All Teams), Null, Custom String("discord.gg/YP544CH"), Custom String("3WYARV - Version 0.1"), Right, 0,
  • White, White, White, Visible To and String, Default Visibility);
  • If(Global.Option_Debug == True);
  • Create HUD Text(All Players(All Teams), Icon String(Exclamation Mark), Custom String("Debug Mode On!"), Null, Left, 0, White,
  • White, White, Visible To and String, Default Visibility);
  • End;
  • }
  • }
  • rule("Debug: Test Bots")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Global.Option_Debug == True;
  • Is Game In Progress == True;
  • }
  • actions
  • {
  • Create Dummy Bot(Hero(Ana), All Teams, -1, Nearest Walkable Position(Vector(Random Integer(-20, 20), 0, Random Integer(-20, 20))),
  • Vector(0, 0, 0));
  • }
  • }
  • rule("Have Fun! --CuddlyFlower")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • }
Join the Workshop.codes Discord