1 | if (noise_timer > 0) |
2 | { |
3 | noise_timer -= 1 |
4 | noise_alpha = lerp(noise_alpha, 0.8, 0.1) |
5 | } |
6 | else |
7 | noise_alpha = lerp(noise_alpha, 0, 0.35) |
8 | if (irandom(20) == 1) |
9 | noise_timer = noise_timer_max |