remake of an as2 smoke generating script

