-- -- Super Ring Racers 67 - v1.0 -- "super toad 67 character; any button you press makes a toad noise" - Udgey, 4/2/25 -- Programmed by FrivolousAqua -- -- Now that I think about it does anyone really read these blurbs local version = "1.0" print("Super Ring Racers 67 - Version " .. version) print("An awful mod by FrivolousAqua that will most likely kill your speakers.") -- 67_stoptalking -- Please stop talking. My ears. local pleasestoptalking = CV_RegisterVar({ name = "67_stoptalking", defaultvalue = "Off", flags = CV_NOINIT|CV_CALL, possiblevalue = CV_OnOff, func = function (cvar) if cvar.value then print("Super Ring Racers 67 has been turned off. Peace and quiet...") else print("Super Ring Racers 67 has been turned on. Oh no.") end end, description = "Do you want to save your ears?" }) -- 67_volume -- Continue talking, but at a quieter volume. local whyareyousoloud = CV_RegisterVar({ name = "67_volume", defaultvalue = "255", flags = CV_NOINIT|CV_CALL, possiblevalue = {MIN = 0, MAX = 255}, func = function (cvar) print("Character volume has been changed to " .. cvar.value .. " locally.") end, description = "How loud are the character's voices?" }) addHook("ThinkFrame", function () -- Roll a random number for a random sound local randSound = P_RandomRange(0, 1) for p in players.iterate -- Gotta make sure the player's actually real so that sounds don't play from a ghost if not (p and p.valid) then continue end if p.spectator then continue end if not (p.mo and p.mo.valid) then continue end -- Battle / Dynamite Derby compatibility - if you're dead, shut up if (p.pflags & PF_ELIMINATED) then continue end -- Alternatively, if the client wants you to stop talking, then please do if pleasestoptalking.value then return end -- Also, don't play a sound if the current buttons pressed match the old ones -- (Ideally prevents situations where sounds keep going off) if (p.cmd.buttons == p.oldcmd.buttons) then continue end -- -- Behold: -- if hell -- i do not know if there's a better way to do this, this does not matter -- -- Check if the player's holding accelerate -- Don't play it if you were still accelerating in the last input if ((p.cmd.buttons & BT_ACCELERATE) and not (p.oldcmd.buttons & BT_ACCELERATE)) or ((p.cmd.buttons & BT_DRIFT) and not (p.oldcmd.buttons & BT_DRIFT)) then if S_SoundPlaying(p.mo, skins[p.skin].soundsid[SKSKBST1] + randSound) then S_StopSoundByID(p.mo, skins[p.skin].soundsid[SKSKBST1] + randSound) end S_StartSoundAtVolume(p.mo, skins[p.skin].soundsid[SKSKBST1] + randSound, whyareyousoloud.value) end -- Check if the player's holding brake -- Don't play it if you were still braking in the last input if (p.cmd.buttons & BT_BRAKE) and not (p.oldcmd.buttons & BT_BRAKE) then if S_SoundPlaying(p.mo, skins[p.skin].soundsid[SKSKATK1] + randSound) then S_StopSoundByID(p.mo, skins[p.skin].soundsid[SKSKATK1] + randSound) end S_StartSoundAtVolume(p.mo, skins[p.skin].soundsid[SKSKATK1] + randSound, whyareyousoloud.value) end -- Check if the player's holding attack -- Don't play it if you were still attacking in the last input if (p.cmd.buttons & 1<<4) and not (p.oldcmd.buttons & 1<<4) then if S_SoundPlaying(p.mo, skins[p.skin].soundsid[SKSKHITM]) then S_StopSoundByID(p.mo, skins[p.skin].soundsid[SKSKHITM]) end S_StartSoundAtVolume(p.mo, skins[p.skin].soundsid[SKSKHITM], whyareyousoloud.value) end -- Check if the player's holding lookback -- Don't play it if you were still looking back in the last input if (p.cmd.buttons & 1<<5) and not (p.oldcmd.buttons & 1<<5) then if S_SoundPlaying(p.mo, skins[p.skin].soundsid[SKSKSLOW]) then S_StopSoundByID(p.mo, skins[p.skin].soundsid[SKSKSLOW]) end S_StartSoundAtVolume(p.mo, skins[p.skin].soundsid[SKSKSLOW], whyareyousoloud.value) end -- Check if the player's holding the vote button -- Don't play it if you were still... Voting? in the last input if (p.cmd.buttons & 1<<7) and not (p.oldcmd.buttons & 1<<7) then if S_SoundPlaying(p.mo, skins[p.skin].soundsid[SKSKWIN]) then S_StopSoundByID(p.mo, skins[p.skin].soundsid[SKSKWIN]) end S_StartSoundAtVolume(p.mo, skins[p.skin].soundsid[SKSKWIN], whyareyousoloud.value) end end end)