Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- rumbleboost modified from spuck deboop script
- -- replaces turbo sound with meatier one mixed from 10 different samples from freesounds.
- arkoz = arkoz or {}
- local function load_rumbleboost()
- local sounds = {
- "plugins/rumbleboost/sounds/rumble1.ogg",
- "plugins/rumbleboost/sounds/rumble2.ogg"
- }
- for i,v in pairs(sounds) do
- gksound.GKLoadSound{soundname="rumbleboost"..tostring(i), filename=v}
- end
- local gkps = gksound.GKPlaySound
- function gksound.GKPlaySound(name, vol)
- if name == "ship.engine.turbo" then
- name = "rumbleboost"..math.random(#sounds)
- end
- gkps(name, vol)
- end
- end
- -- rumbleboost should only be loaded once because ReloadInterface won't reset gkps
- if not arkoz.rumbleboost then
- load_rumbleboost()
- end
- arkoz.rumbleboost = true
Advertisement
Add Comment
Please, Sign In to add comment