Advertisement
SebaSophia

Reidval Falls [logic]

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