[highlight]I know there is a gmcl_beep released already. I released mine because of requests. He has spent like a week to try to properly thread his, and this one is not only properly threaded, it has more features, and works on both the server and client by default.[/highlight]
This module exposes the motherboard bell or its software emulated counterpart to gmod:
[code]
Beep(frequency, duration) - Queues a beep at the specified frequency for the specified duration in milliseconds
Beep(duration) - Queues a pause for the specified duration in milliseconds
Beep.Beeping - Boolean, whether or not gmod is currently making the bell beep
Beep.Queue - Number, The amount of currently queued beeps/pauses
Beep.Frequency - Number, the frequency of the current beep, or 0 if it's not currently beeping
Beep.Duration - Number, the duration (not the time left!) of the current beep, or 0 if it's not currently beeping
[/code]
Calls to Beep return immediately. Beeps are beeped sequentially, so you can schedule as many beeps/pauses as you want, and the module will beep them in order.
[B]Example: beep when mentioned in chat (clientside script)[/B]
[lua]
require("beep")
hook.Add("ChatText", "beep_chathighlight", function( index, nick, text, msgtype )
if text:lower():find(LocalPlayer():Nick():lower()) then
Beep(400, 200)
Beep(500, 200)
Beep(600, 200)
end
end )
[/lua]
Plays a primitive tune whenever your name is mentioned in chat, case insensitive.
[B]Download v1.0.4 (source included)[/B]
Extract the zip file to garrysmod/garrysmod/lua/includes/modules. You can delete gm_beep.cpp if you want to.
[URL=http://errur.com/f/Download.php?id=731][IMG]http://errur.com/f/images/u/731.png[/IMG][/URL]
[url=http://upl.luahelp.com/uploads/q0Dlvy5C/gm_beep1.0.4.zip]#luahelp mirror[/url]
[url=http://filesmelt.com/downloader/gm_beep1.0_.4_.zip]filesmelt mirror[/url]
Awesome! :)
because what we all need is our motherboard to beep while playing gmod
yeah another useless shitty module from known pedophile jA_cOp. awesome.
[QUOTE=A MF Beryd;16127778]...words...[/QUOTE]
yeah another useless shitty post from known pedophile A MF Beryd. awesome.
[QUOTE=The-Stone;16128422]yeah another useless shitty post from known pedophile A MF Beryd. awesome.[/QUOTE]
don't defend him you retard it's completely fucking true, actually read the channel you idle in and shit up on daily basis.
Azu bitched about me pretending thread synchronisation issues don't exist, so I synchronised it. Update in the first post.
-snip-
there are 2 now?
[QUOTE=A MF Beryd;16127778]yeah another useless shitty module from known pedophile jA_cOp. awesome.[/QUOTE]
Serously, what the fuck is wrong with you?
Also, great release, unlike the other ;)
Hey Deco Da Man, suck my nut:
[url]http://luaduck.co.uk/2009/07/20/video-beepnam-demo/[/url]
I'll release beepnam later today
-snip-
Released an update, fixes a few possible bugs and adds Beep.Frequency and Beep.Duration. I probably won't add any more to this module unless someone requests something.
Nothing real more needs to be added now. Might I suggest gm_midi for midi synthesizers?
[QUOTE=The-Stone;16151652]Hey Luaduck, suck my nut:
[url=http://www.garrysmod.org/downloads/?a=view&id=73497][img]http://www.garrysmod.org/img/?t=dll&id=73497[/img][/url][/QUOTE]
You really don't need to compete with Beepnam, it's a completely different objective to what you're trying to accomplish. Where as yours will probably be able to accept notes at it's best, beepnam will accept NAM codes (the same type as used in BeepMaker).
[QUOTE=leach139;16151651]Nothing real more needs to be added now. Might I suggest gm_midi for midi synthesizers?[/QUOTE]
Just use gm_bass by AzuiSleet, it's on Google Code somewhere
[QUOTE=leach139;16151711]You really don't need to compete with Beepnam, it's a completely different objective to what you're trying to accomplish. Where as yours will probably be able to accept notes at it's best, beepnam will accept NAM codes (the same type as used in BeepMaker).[/QUOTE]
Ohwell, i'll implement a piano like thing later on :)
Thats totally awesome :3
[QUOTE=jA_cOp;16151713]Just use gm_bass by AzuiSleet, it's on Google Code somewhere[/QUOTE]
What about gm_clipboard, for reading and writing to the clipboard?
I think that clipboard reading isn't a good idea because you can steal sensitive information that way.
For writing, there is [url]http://wiki.garrysmod.com/?title=G.SetClipboardText[/url] already.
The client still has to install the module, you know
CAn soemone reupload it please? upl.luahelp.com is down.
Added filesmelt mirror to the first post.
filesmelt only goes halfway, then it stops. (download percent)
please upload it to [url]www.errur.com[/url]
[QUOTE=CapsAdmin;16979356]please upload it to [url]www.errur.com[/url][/QUOTE]
Done.
[URL=http://errur.com/f/Download.php?id=731][IMG]http://errur.com/f/images/u/731.png[/IMG][/URL]
And does it use gmcl_gspeak? Or it really beeps from pc speaker? I twould be nice to get beeps from it :D.
[QUOTE=Amic;17018691]And does it use gmcl_gspeak? Or it really beeps from pc speaker? I twould be nice to get beeps from it :D.[/QUOTE]
It uses the motherboard bell. If you're in doubt what that means, you should just try it :)
IDK how to explain iut but.. it is "laggy" :/.
This is an under appreciated module, there need to be more songs than just the OIFY song for it.
Maybe some Christmas songs since it's close to it?
[url]http://www.youtube.com/watch?v=c2pL44uOKWk[/url]
[QUOTE=iRzilla;18819300]Maybe piss off your server providers by running it every second?[/QUOTE]
Now that's just evil! Maybe just once in a while at random intervals to keep them guessing?
Sorry, you need to Log In to post a reply to this thread.