Page 1 of 1

Round_end_sound

Posted: Sun May 17, 2020 8:10 am
by cssbestrpg

Re: Round_end_sound

Posted: Sun May 24, 2020 9:48 am
by Painkiller
Hello, very nice plugin.

Is there a possibility to close this also for HL2:DM?
The problem is, there is no round_end in HL2:DM.

Re: Round_end_sound

Posted: Mon May 25, 2020 6:44 am
by DeaD_EyE
I guess yes. I just forked his project days ago for fun.
https://github.com/sosi-deadeye/round_end_sound

But I tested nothing. The command play could be replaced with a function from sourcepython to play sounds.

Re: Round_end_sound

Posted: Fri Aug 28, 2020 6:17 pm
by botmaster
Instead of having a bunch of "ifs" you should just generate a random index based on the total number of sounds (stored in a list) and then play the sound at that index.

Re: Round_end_sound

Posted: Sun Aug 30, 2020 6:47 am
by cssbestrpg
I updated now the code, it doesn't anymore have if lines when sound, instead it get the from list

Re: Round_end_sound

Posted: Sun Aug 30, 2020 9:36 pm
by VinciT
The Downloadables class has the quite useful add_directory() function, which you can use to reduce the size of setDL():

Syntax: Select all

dl = Downloadables()
dl.add_directory('sound/round_end_sound')

Re: Round_end_sound

Posted: Wed Sep 02, 2020 12:35 pm
by cssbestrpg
Updated the code use shorter add download stuff. Thanks VinciT i even didn't know of that function