Advertisement
SebaSophia

Yegrocia Region [logic]

Feb 4th, 2022
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. OnRoundStart()
  2. {
  3. \\The last number in this line is how many kills are needed for the boss to spawn.
  4. VariableInt.Set("killsForBoss1", 40);
  5. VariableInt.Set("killsForBoss2", 75);
  6.  
  7. \\The numbers in these three lines control where the boss will spawn.
  8. \\-198.0,1.5,179.0
  9. \\3286.0,13.0,-2944.0
  10. \\3617.0,74.0,-2426.0
  11. VariableFloat.Set("bossX", -198.0);
  12. VariableFloat.Set("bossY", 1.5);
  13. VariableFloat.Set("bossZ", 179.0);
  14.  
  15. \\The number in this sets what type of titan the boss is.
  16. \\0=Normal, 1=Abberant, 2=Jumper, 3=Crawler, 4=Punk
  17. VariableInt.Set("bossType", 4);
  18.  
  19. \\The number in this sets the size of the boss.
  20. VariableFloat.Set("bossSize", 5.0);
  21.  
  22. \\The number in this sets the boss's HP.
  23. VariableInt.Set("bossHP", 5000);
  24.  
  25. VariableInt.Set("titansDead", 0);
  26. }
  27.  
  28. OnTitanDie("t","p")
  29. {
  30. VariableInt.Add("titansDead", 1);
  31. If(Int.Equals(VariableInt("titansDead"),VariableInt("killsForBoss1")))
  32. {
  33. Titan.SpawnTitanAt(VariableInt("bossType"), VariableFloat("bossSize"), VariableInt("bossHP"), 1, VariableFloat("bossX"), VariableFloat("bossY"), VariableFloat("bossZ"));
  34. Game.PrintMessage("<size=20><color=#ff3333>The_Yegrocia_Boss_has_spawned!</color> <color=#ffffaa>Return_back_to_the_center!</color></size>");
  35. }
  36.  
  37. If(Int.Equals(VariableInt("titansDead"),VariableInt("killsForBoss2")))
  38. {
  39. Titan.SpawnTitanAt(2, VariableFloat("bossSize"), 10000, 1, 3286.0, 13.0, -2944.0);
  40. Titan.SpawnTitanAt(2, VariableFloat("bossSize"), 10000, 1, 3617.0, 74.0, -2426.0);
  41. Game.PrintMessage("<size=20><color=#ff3333>The_Canyon_Guardians_have_spawned!</color> <color=#ffffaa>Be_on_alert!</color></size>");
  42. }
  43. }
  44.  
  45. OnChatInput("input")
  46. {
  47. If(String.Equals(VariableString("input"),"/med"))
  48. {
  49. Game.PrintMessage("<size=16><color=#ffaaaa>ATTENTION!</color> There's_a_medbay_around! Look_for_the_red_cross_and_<color=#aaffaa>touch_a_bed</color> <color=#ffffaa>Shout_MEDIC_for_a_revive!</color></size>");
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement