ForbodingAngel

Untitled

May 11th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. __rand = 13
  2. function math.random()
  3. __rand = (1664525 * __rand + 12345) % 2^16
  4. return __rand
  5. end
  6.  
  7. local randomizedExplosions = {
  8. smallExplosionGeneric,
  9. mediumExplosionGeneric,
  10. largeExplosionGeneric,
  11. hugeExplosionGeneric,
  12. smallExplosionGenericBlue,
  13. mediumExplosionGenericBlue,
  14. largeExplosionGenericBlue,
  15. hugeExplosionGenericBlue,
  16. }
  17.  
  18. for name, ud in pairs(UnitDefs) do
  19. ud.explodeAs = randomizedExplosions[math.random(#randomizedExplosions)]
  20. Spring.Echo(randomizedExplosions[math.random(#randomizedExplosions)])
  21. ud.selfDestructAs = randomizedExplosions[math.random(#randomizedExplosions)]
  22. end
Advertisement
Add Comment
Please, Sign In to add comment