SHOW:
|
|
- or go back to the newest paste.
| 1 | local num = math.random(0,2) | |
| 2 | ||
| 3 | if num == 0 then | |
| 4 | hook.Add("PlayerDeathSound", "DeFlatline", function() return true end)
| |
| 5 | local noise = Sound("sadviolin.wav")
| |
| 6 | hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2) vic:EmitSound(noise) end)
| |
| 7 | - | hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2) vic:EmitSound(noise) |
| 7 | + | else |
| 8 | hook.Add("PlayerDeathSound", "Rock", function() return true end)
| |
| 9 | local noise = Sound("rock.wav")
| |
| 10 | hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2) vic:EmitSound(noise)
| |
| 11 | end |