Blender, food processor, gibber, monkey recycler shaking when processing

This commit makes the machines listen in the title shake quickly, as if
vibrating, when used.
This commit is contained in:
kingofkosmos
2015-06-07 14:30:01 -07:00
committed by Tigercat2000
parent 9119f1fd08
commit 0f48bef705
4 changed files with 16 additions and 0 deletions
@@ -1257,8 +1257,11 @@
if (!beaker || (beaker && beaker.reagents.total_volume >= beaker.reagents.maximum_volume))
return
playsound(src.loc, 'sound/machines/juicer.ogg', 20, 1)
var/offset = prob(50) ? -2 : 2
animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 200) //start shaking
inuse = 1
spawn(50)
pixel_x = initial(pixel_x) //return to its spot after shaking
inuse = 0
interact(usr)
//Snacks
@@ -1294,8 +1297,11 @@
if (!beaker || (beaker && beaker.reagents.total_volume >= beaker.reagents.maximum_volume))
return
playsound(src.loc, 'sound/machines/blender.ogg', 50, 1)
var/offset = prob(50) ? -2 : 2
animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 200) //start shaking
inuse = 1
spawn(60)
pixel_x = initial(pixel_x) //return to its spot after shaking
inuse = 0
interact(usr)
//Snacks and Plants