Advertisement
Chronos_Ouroboros

Untitled

Nov 23rd, 2014
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. script "FDDemonModeAltDamage" (void) {
  2. int Randomizer = Random (0, 2);
  3. int Result = 50;
  4.  
  5. int x = Random (1, 10) * Random (1, 8);
  6.  
  7. Switch (Randomizer) {
  8. Case 1:
  9. Result = (x * Random (2, 4)) + ((x / Random (2, 5)) * Random (1, 2));
  10.  
  11. Case 2:
  12. Result = (x + Random (2, 4)) * (x / Random (2, 5));
  13.  
  14. Default:
  15. Result = x * Random (2, 3);
  16. }
  17.  
  18. SetResultValue (Result);
  19. }
  20.  
  21. script "FDDemonModeAltExpDamage" (void) {
  22. SetResultValue (256 / Random (1, 4));
  23. }
  24.  
  25. script "FDDemonModeAltExpRadius" (void) {
  26. SetResultValue (128 / Random (1, 4));
  27. }
  28.  
  29. #define FDDemonModeAltExpRTMass_Count 13
  30. int FDDemonModeAltExpRTMass [FDDemonModeAltExpRTMass_Count] = {
  31. 100,
  32. 250,
  33. 580,
  34. 379,
  35. 158,
  36. 190,
  37. 129,
  38. 1598,
  39. 2000,
  40. 1299,
  41. 1598,
  42. 159,
  43. 1795
  44. };
  45.  
  46. #define FDDemonModeAltExpRTForce_Count 12
  47. int FDDemonModeAltExpRTForce [FDDemonModeAltExpRTForce_Count] = {
  48. 25,
  49. 30,
  50. 45,
  51. 10,
  52. 100,
  53. 94,
  54. 38,
  55. 19,
  56. 67,
  57. 198,
  58. 279,
  59. 17
  60. };
  61.  
  62. script "FDDemonModeAltExpRT" (void) {
  63. // Mass randomizer
  64. int Randomizer1 = Random (1, FDDemonModeAltExpRTMass_Count) - 1;
  65. // Force randomizer
  66. int Randomizer2 = Random (1, FDDemonModeAltExpRTForce_Count) - 1;
  67.  
  68. // Result = Force * (2 * Mass)
  69. int Result = FDDemonModeAltExpRTForce [Randomizer2] * (2 * FDDemonModeAltExpRTMass [Randomizer1]);
  70.  
  71. SetResultValue (Result);
  72. }
  73.  
  74. script "FDDemonModeAltExpFlagRandomizer" (void) {
  75. if (GetCVar ("FD_IDontBelieveInGod"))
  76. SetResultValue (0);
  77. else
  78. SetResultValue (Random (0, 1));
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement