Advertisement
SebaSophia

Ruggenham County [logic]

Feb 4th, 2022
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 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("killsForBoss", 70);
  5.  
  6. \\The numbers in these three lines control where the boss will spawn.
  7. \\-3972.0,167.0,3802.0
  8. \\-3938.0,167.0,2966.0
  9. \\-4080.0,167.0,2437.0
  10. VariableFloat.Set("bossX", -3972.0);
  11. VariableFloat.Set("bossY", 167.0);
  12. VariableFloat.Set("bossZ", 3802.0);
  13.  
  14. \\The number in this sets what type of titan the boss is.
  15. \\0=Normal, 1=Abberant, 2=Jumper, 3=Crawler, 4=Punk
  16. VariableInt.Set("bossType", 2);
  17.  
  18. \\The number in this sets the size of the boss.
  19. VariableFloat.Set("bossSize", 5.0);
  20.  
  21. \\The number in this sets the boss's HP.
  22. VariableInt.Set("bossHP", 5000);
  23.  
  24. VariableInt.Set("titansDead", 0);
  25. }
  26.  
  27. OnTitanDie("t","p")
  28. {
  29. VariableInt.Add("titansDead", 1);
  30. If(Int.Equals(VariableInt("titansDead"),VariableInt("killsForBoss")))
  31. {
  32. Titan.SpawnTitanAt(VariableInt("bossType"), VariableFloat("bossSize"), 10000, 1, VariableFloat("bossX"), VariableFloat("bossY"), VariableFloat("bossZ"));
  33. Titan.SpawnTitanAt(4, VariableFloat("bossSize"), VariableInt("bossHP"), 1, -3938.0, 167.0, 2966.0);
  34. Titan.SpawnTitanAt(VariableInt("bossType"), VariableFloat("bossSize"), 10000, 1, VariableFloat("bossX"), 167.0, 2437.0);
  35. Game.PrintMessage("<size=20><color=#ff3333>The_Ruggenham_Creatures_have_spawned!</color> <color=#ffffaa>Secure_the_City!</color></size>");
  36. }
  37. }
  38.  
  39. OnChatInput("input")
  40. {
  41. If(String.Equals(VariableString("input"),"/med"))
  42. {
  43. 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>");
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement