Ok so I have been trying to make it so that when a new round in TTT begins (map clean up happens) a certain sound doesn't stop.
I've looked through a lot of stuff and can't find out what I need to change so that the sound keeps playing through this event. This is the code that starts the sound.
[code]
mysound = CreateSound( LocalPlayer(), FilePath )
mysound:PlayEx( Volume:GetFloat(), 100 )
[/code]
If someone can get this to work for me I'll send you $1 with paypal (all I have)
I don't think you can. game.CleanUpMap() stops all sounds. You may try surface.PlaySound but it am not sure.
Can I edit the CleanUpMap() method?
or could I try adding arguments for it since they both seem relevant. [url]http://wiki.garrysmod.com/page/game/CleanUpMap[/url]
You can't edit it, nor are those methods relevant because sounds are not entities.
Even though the sound is created from the LocalPlayer() entity?
[QUOTE=Declivity;45016952]Even though the sound is created from the LocalPlayer() entity?[/QUOTE]
Try before asking. But I suspect the answer is yes.
I think I got it the best way its gonna be, I removed CleanUpMap() for the client and change the server's CleanUpMap() to CleanUpMap( true ). The client doesn't clean up but all that does is not remove decals.
If you want ill give you your dollar robotboy
You can clear the decals by running r_cleardecals on all clients using ply:ConCommand.
I don't need your dollar, it will be taxed by PayPal anyway.
Sorry, you need to Log In to post a reply to this thread.