• Simple script that disables thruster sounds when players join
    7 replies, posted
Tired of noobs filling your server with thruster sounds? I am at least, so i decided to try making a lua script to disable the sounds. This script disables sounds for both normal and wire thrusters. Put the code in the lua/autorun folder Here is the code: if SERVER then function ThrSoundDisable( ply ) ply:ConCommand("thruster_sound 0") ply:ConCommand("wire_thruster_sound 0") end hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", ThrSoundDisable ) end if CLIENT then function ThrSoundDisable( ply ) RunConsoleCommand("thruster_sound 0") RunConsoleCommand("wire_thruster_sound 0") end hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", ThrSoundDisable ) end
You should make it run on think (on clientside) that way they can't enable it after they connect.
run 2 commands every think 0_o? better to do it like 1 second else u might get lagg from it
If you're not using script enforcer just modify the files.
[QUOTE=TehBigA;15947700]If you're not using script enforcer just modify the files.[/QUOTE] Who is going to do that just to get thruster sounds... In other news you can probably just hook into OnEntityCreated and disable the thruster sounds on the server.
Just edit the thruster entity and remove the thruster sounds completely. Just remember that if you update Garry's Mod with HLDSUpdateTool it will replace the file.
[QUOTE=conman420;15947831]Who is going to do that just to get thruster sounds... In other news you can probably just hook into OnEntityCreated and disable the thruster sounds on the server.[/QUOTE] Um, me. It's a 5 second edit to remove the sounds. They are annoying as all hell.
[QUOTE=MadParakeet;48763675]Again? I give him two weeks.[/QUOTE] Looks like your statement is indeed not correct. Now that I look back on you all, I find it funny how I even got involved with you all Facepunch dickheads. [IMG]http://i.imgur.com/BzIXhKd.png[/IMG] I have over 20 more alt accounts blended in better than a communist in 1960's New York so cut off one head, and two more shall take its place. Baldur out :D
Sorry, you need to Log In to post a reply to this thread.