Well, it depends how much ammo that machine has to make it work for ever. If you need it to work until the end of time on that mission, its a simple addition ot that loop the LCD gave you to fix the problem.
And if you dont want the machine ot work forever, then its a small addition to LCD's mini-script he gave you.
IE: Want the sucker to run for 5 minutes.
First, transform 5 minutes into second. So 300 seconds. Change the _duration variable from 300 to whatever you want.
_duration = 300
_loops = 0.1 / _duration
_i = 0
#loop
~0.1
lynx fire "kegsmokegenerator"
_i = _i + 1
?( _i < _loops) : goto "loop"
exit