Sounds good, but it will be not possible, I think.![]()
This i just a thought i had about having a wired microphone emitter tool that when activated by the owner it would enable a Microphone sound emitter that would output the owner microphone sound.
This could be useful for trains, stations, buses, ships, bases, whole servers...using this as warning equipments. Example if i say "Train arriving" in my microphone only guys near the station (where the emitters are) would hear me.
I bet theres a lua function for getting the microphone input and an other for calculating the distance between the player and the emitter and relating it to the sound volume =D.
An other thought was if it its possible to distort the sound to make it even more realistic and place a check box on the tool: [ ] Distortion
Sounds good, but it will be not possible, I think.![]()
No not really possable, however there is sormthing similar.
in HL1 there was a "vox <sentance>" command where the announcer in hl1 woudl say whatever you typed, like vox system lockdown the announcer would say "system lockdown". however I don't know about in hl2 if this is still the case or if they have the announcer as 1 file per sentance
It would certainly conflict with the voice chat for most purposes.
So it would need to be something like the Wired Keyboard, press Use and then anything you say is outside of voice chat and into the Wired Microphone.
You want us to pass real audio through a lua interface of an addon for a video game.
I do believe voice chat is coded outside the lua engine so it cannot be manipulated.
Wiremod has contraints. Please use common sense and you should know these contraints
A-Z Materials - Released!!!!!!!
The microphone engine inside the game IS lua coded ahref (you CAN control it with addons such as assmod admin addon).
But Lyinginbedmon had a good idea, using a USE key microphone would be nice.
And if its not possible as you guys sad we could use this text-to-speech engine from half-life2 using strings to send the data...
i don't follow you thereAnd if its not possible as you guys sad we could use this text-to-speech engine from half-life2 using strings to send the data...
sorry couldn't find any lua functions that could tweak the output except for muting(http://wiki.garrysmod.com/wiki/?title=Player.SetMuted) and some weird client side thing that can make the sound of the whole client distorted(i think being underwater uses this). see http://wiki.garrysmod.com/wiki/?title=Player.SetDSP your more than welcome to find one though
http://wiki.garrysmod.com/wiki/?title=Lua
also why did you link my name seems odd.
Last edited by ahref; 03-16-2009 at 06:48 PM.
A-Z Materials - Released!!!!!!!
And if its not possible as you guys sad we could use this text-to-speech engine from half-life2 using strings to send the data...
text-to-speech idea came from:
and the link was because i used ctrl-c ctrl-v....sorryin HL1 there was a "vox <sentance>" command where the announcer in hl1 woudl say whatever you typed, like vox system lockdown the announcer would say "system lockdown". however I don't know about in hl2 if this is still the case or if they have the announcer as 1 file per sentance
Anyway if its not lua coded than its what, c++? because the sound engine used to communicate inside the game differs from the steam chat engine...
wiremod cannot control C functions. The voice system is inside the C therefore its not possible. EXCEPT for muting of players on the client. :P
HL1 was so last century were on a new engine now and the old function wasnt needed
A-Z Materials - Released!!!!!!!
Bookmarks