Adds revolver spin sound.

This commit is contained in:
Chinsky
2015-09-01 12:18:49 +03:00
parent a15fb44d0e
commit 28cf860332
2 changed files with 1 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
chamber_offset = 0
visible_message("<span class='warning'>\The [usr] spins the cylinder of \the [src]!</span>", \
"<span class='notice'>You hear something metallic spin and click.</span>")
playsound(src.loc, 'sound/weapons/revolver_spin.ogg', 100, 1)
loaded = shuffle(loaded)
if(rand(1,max_shells) > loaded.len)
chamber_offset = rand(0,max_shells - loaded.len)