Advertisement
Chronos_Ouroboros

Untitled

Nov 23rd, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. DECORATE:
  2. Actor DemonModeAltfire : FastProjectile {
  3. RenderStyle Add
  4. Radius 13
  5. Height 13
  6. Scale 0.1
  7. Speed 0
  8. Damage (CallACS ("FDDemonModeDamage"))
  9. Projectile
  10. States {
  11. Spawn:
  12. TNT1 A 0 A_ScaleVelocity (35)
  13. Idle:
  14. DMNA A 1 Bright
  15. Loop
  16. }
  17. }
  18.  
  19. ACS:
  20. script "FDDemonModeDamage" (void) {
  21. // Pray to the RNG god
  22. int BaseDamage = Random (Random (1, 3), Random (4, 8));
  23. int Randomizer1 = Random (Random (1, 10), Random (1, 10));
  24. int Randomizer2 = Random (0, Random (1, 2));
  25. int Result = 0;
  26.  
  27. int x = Randomizer1 * BaseDamage;
  28. if (Randomizer2 == 1) {
  29. Result = (x * Random (2, 4)) + ((x / Random (2, 5)) >> 16 * Random (1, 2));
  30. } else if (Randomizer2 == 2)
  31. Result = x + Random (2, 4) * (x / Random (2, 5));
  32. else
  33. Result = x;
  34.  
  35. SetResultValue (Result);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement