Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __rand = 13
- function math.random()
- __rand = (1664525 * __rand + 12345) % 2^16
- return __rand
- end
- local randomizedExplosions = {
- smallExplosionGeneric,
- mediumExplosionGeneric,
- largeExplosionGeneric,
- hugeExplosionGeneric,
- smallExplosionGenericBlue,
- mediumExplosionGenericBlue,
- largeExplosionGenericBlue,
- hugeExplosionGenericBlue,
- }
- for name, ud in pairs(UnitDefs) do
- ud.explodeAs = randomizedExplosions[math.random(#randomizedExplosions)]
- Spring.Echo(randomizedExplosions[math.random(#randomizedExplosions)])
- ud.selfDestructAs = randomizedExplosions[math.random(#randomizedExplosions)]
- end
Advertisement
Add Comment
Please, Sign In to add comment