Round_end_sound
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
- Painkiller
- Senior Member
- Posts: 751
- Joined: Sun Mar 01, 2015 8:09 am
- Location: Germany
- Contact:
Re: Round_end_sound
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.
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
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.
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
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.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: Round_end_sound
I updated now the code, it doesn't anymore have if lines when sound, instead it get the from list
Re: Round_end_sound
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')
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: Round_end_sound
Updated the code use shorter add download stuff. Thanks VinciT i even didn't know of that function
Who is online
Users browsing this forum: No registered users and 104 guests