Round_end_sound

Release your plugins here!
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Round_end_sound

Postby cssbestrpg » Sun May 17, 2020 8:10 am

User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: Round_end_sound

Postby Painkiller » Sun May 24, 2020 9:48 am

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.
DeaD_EyE
Member
Posts: 34
Joined: Wed Jan 08, 2014 10:32 am

Re: Round_end_sound

Postby DeaD_EyE » Mon May 25, 2020 6:44 am

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.
botmaster
Junior Member
Posts: 16
Joined: Sun Sep 23, 2018 6:07 pm

Re: Round_end_sound

Postby botmaster » Fri Aug 28, 2020 6:17 pm

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.
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: Round_end_sound

Postby cssbestrpg » Sun Aug 30, 2020 6:47 am

I updated now the code, it doesn't anymore have if lines when sound, instead it get the from list
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Re: Round_end_sound

Postby VinciT » Sun Aug 30, 2020 9:36 pm

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')
ImageImageImageImageImage
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: Round_end_sound

Postby cssbestrpg » Wed Sep 02, 2020 12:35 pm

Updated the code use shorter add download stuff. Thanks VinciT i even didn't know of that function

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 14 guests