AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   End Round Sounds (https://forums.alliedmods.net/showthread.php?t=6784)

PaintLancer 10-14-2004 11:20

End Round Sounds
 
2 Attachment(s)
Simple plugin that plays random music at the end of a round according to who wins, instead of just "Terrorists Win" or "Counter-Terrorists Win"

kalel 10-14-2004 15:37

Thats F*en Aswome Love it testing it right now

antileet 10-14-2004 17:46

I love this plugin! I have a bada$$ sound for when Terrorists win...(who has 1 for CTs?)

-=STN=- MaGe 10-14-2004 18:25

Quote:

Originally Posted by kalel
Thats F*en Aswome Love it testing it right now

how you know its soo good before testing lol.

is this like fusion pack, their music when win the round?

PaintLancer 10-14-2004 21:21

ya basically... except i have multiple ones for each team that are chosen randomly

kalel 10-15-2004 02:43

any ways I ran the plugin for a half a day i did get a few people who said there fps was droping becuse of it but I didn't get a change to test that theroy I just took it off but yea thats badd ass

MassAsster 10-15-2004 11:26

FPS
 
Yeah , had a few people complain of "lag" due to the plug-in
mainly people on crap computers


but the strange part of it was it was not when the music was playing, it was durring normal game play

some odd "pauses" where caused by this plugin -

great idea, just a few bugs

Dr.Jones 10-15-2004 13:10

Hi PaintLancer

Thanks for the Plugin

Great Plugin, and the sounds are very good

manorastroman 10-15-2004 15:37

i friggin love the T music, where did you get it??

PaintLancer 10-15-2004 16:17

all the T music i ripped from songs by DJ Punjabi

I don't understand how it could be lagging at all... if someone could look at it and tell me if i'm missing something its only like 10 lines of code nothing complicated going on.

MassAsster 10-16-2004 08:10

im starting to think these "pauses" are comming from 2 or more people joining and grabbing the sounds - which is strange - because im using a download URL -

but i've noticed them while a few new people join at the same time ( more then 2 )

Striker 10-19-2004 18:02

1 Attachment(s)
Here are two other "Win-Sounds"...

fitzy6868 10-23-2004 14:14

sick
 
This Is A SICK PLUGIN I USE IT ON MY SERVER and it rocks
The default sounds are great only a 25 sec precache max
And you can even put ur own sounds in


-Fitzy-

Macelarul 10-28-2004 14:07

Why there is lag
 
I read the plugin code and I think the lag came from the fact that all the events SendAudio are traped by the plugin. That's way you may experience lag during the play. There are a lot of SendAudio probabilly.
To correct this you must trap some other event at the end of the round.
That's my opinion after a quick look over your code.
Have fun!

Ward 11-25-2004 10:27

It doesnt trap every sendaudio event. It only traps the sendaudio event on t_win, or ct_win.

TruuSti 12-02-2004 12:54

it didnt work :? .. i put the sounds and the .amxx file in the plugins folder but nothing came.. and wrote roundsound.amxx in the plugins.ini. do i have to do something else?

speedeR 12-08-2004 15:58

Can you please tell me what the name is of twinnar3 i would really love to buy and album of the artist or something!!

Please help me :)

PaintLancer 12-08-2004 17:57

all the T sounds were by DJ Punjabi

WTF Capiotan Kirkiotan 12-09-2004 01:54

Re: sick
 
Quote:

Originally Posted by fitzy6868
This Is A SICK PLUGIN I USE IT ON MY SERVER and it rocks
The default sounds are great only a 25 sec precache max
And you can even put ur own sounds in


-Fitzy-


hey man I need help putting my own.. in .. how woudl I do that..? the amxx.cfg file or something?

speedeR 12-09-2004 11:48

Quote:

Originally Posted by PaintLancer
all the T sounds were by DJ Punjabi

Thanks a whole fucking bunch!

Arsenal_Fan 12-11-2004 17:14

Cool plugin. TNX to autor.

MeTaL69 12-11-2004 21:35

So r u all still getting lag from this?? :?:

Arsenal_Fan 12-12-2004 01:27

I'm not getting lags on my server. :wink:

Shalfey 12-23-2004 10:39

A little upgrade :)
So, then client executes
setinfo no_winsound 1
no sound will be played at the end of round...

Code:

//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
  register_cvar("cl_round_end", "1");
  register_plugin("RoundSound","1.1","PaintLancer&Sha!")
  register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
  register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}

public t_win()
{
new no_winsound[32]
new i=1
while(i<31)
{
  get_user_info(i, "no_winsound", no_winsound, 31)

  if(!(str_to_num(no_winsound)))
  {
  new rand = random_num(0,4)
  client_cmd(i,"stopsound")
  switch(rand)
  {
    case 0: client_cmd(i,"spk misc/twinnar1")
    case 1: client_cmd(i,"spk misc/twinnar2")
    case 2: client_cmd(i,"spk misc/twinnar3")
    case 3: client_cmd(i,"spk misc/twinnar4")
    case 4: client_cmd(i,"spk misc/twinnar5")
  }
  }
  i=i+1
}
return PLUGIN_HANDLED
}

public ct_win()
{
new no_winsound[32]
new i=1
while(i<31)
{
  get_user_info(i, "no_winsound", no_winsound, 31)

  if(!(str_to_num(no_winsound)))
  {
  new rand = random_num(0,4)
  client_cmd(i,"stopsound")
  switch(rand)
  {
    case 0: client_cmd(i,"spk misc/ctwinnar1")
    case 1: client_cmd(i,"spk misc/ctwinnar2")
    case 2: client_cmd(i,"spk misc/ctwinnar3")
    case 3: client_cmd(i,"spk misc/ctwinnar4")
    case 4: client_cmd(i,"spk misc/ctwinnar5")
  }
  }
  i=i+1
}
return PLUGIN_HANDLED
}

public plugin_precache()
{
  precache_sound("misc/ctwinnar1.wav")
  precache_sound("misc/ctwinnar2.wav")
  precache_sound("misc/ctwinnar3.wav")
  precache_sound("misc/ctwinnar4.wav")
  precache_sound("misc/ctwinnar5.wav")
  precache_sound("misc/twinnar1.wav")
  precache_sound("misc/twinnar2.wav")
  precache_sound("misc/twinnar3.wav")
  precache_sound("misc/twinnar4.wav")
  precache_sound("misc/twinnar5.wav")

  return PLUGIN_CONTINUE
}

Sorry for my english :)

MP5Navyboy 12-23-2004 15:21

Quote:

Originally Posted by TruuSti
it didnt work :? .. i put the sounds and the .amxx file in the plugins folder but nothing came.. and wrote roundsound.amxx in the plugins.ini. do i have to do something else?

If you put the sounds in the plugin folder theres ur problem, the sounds stuff should go in the sounds folder located in the cstrike folder not the plugins folder, thats where the amxx file goes.

Navy

-=STN=- MaGe 12-31-2004 09:29

im getting alot of runtime errors with this upgrade. sounds not playing will post details asap

here
Code:
L 12/31/2004 - 09:25:14: [AMXX] Native error in "get_user_info" on line 45 (file "roundsound.sma"). L 12/31/2004 - 09:27:49: [AMXX] Native error in "get_user_info" on line 45 (file "roundsound.sma"). L 12/31/2004 - 09:28:34: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:29:55: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:30:40: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:31:43: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:32:43: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:34:07: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:34:56: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:35:53: [AMXX] Native error in "get_user_info" on line 45 (file "roundsound.sma"). L 12/31/2004 - 09:37:55: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:39:17: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:40:06: [AMXX] Native error in "get_user_info" on line 45 (file "roundsound.sma"). L 12/31/2004 - 09:40:52: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma"). L 12/31/2004 - 09:41:20: [AMXX] Native error in "get_user_info" on line 19 (file "roundsound.sma").

Front Line 01-30-2005 21:02

Just a quick question do u just have to ova lap the songs as in replace,
or can u add sum lik ctwinnar6.wav etc, is there away i have to do this coz i dunt have aproggy that can read those type of files e.g sma etc. but can i just do that or do i need to ova lap.

God_squad 02-19-2005 20:48

ugh
 
how do i add my own sounds????
i renamed the wavs (24 Khz 8 bit mono) to twinnar1, twinnar2, etc....
and i put them into sounds/misc overwritting the old ones and i restarted my server but it still plays the default ones :?

snoboi182 03-01-2005 17:08

Re: ugh
 
Quote:

Originally Posted by God_squad
how do i add my own sounds????
i renamed the wavs (24 Khz 8 bit mono) to twinnar1, twinnar2, etc....
and i put them into sounds/misc overwritting the old ones and i restarted my server but it still plays the default ones :?

u cant rename them, then the players wont download it, cus their sound folder has the existing ones.

Dontask-jello 03-22-2005 01:57

Anyone got any more PimPed out sounds? :lol:

v3x 03-22-2005 16:36

1 Attachment(s)
Yep, 2 of em..

Dontask-jello 03-22-2005 22:47

v3x pimp on man!

v3x 03-23-2005 00:04

Quote:

Originally Posted by Dontask-jello
v3x pimp on man!

My sounds are by FAR the pimpest yet. :D

Dontask-jello 03-23-2005 00:22

Definately, post anymore if you find any, or if you have... :lol:

Fulgraque 03-23-2005 03:27

Indeed! Those rock.

onedamage 03-25-2005 21:27

weird issues:

1. where people lose sound at the instance of the last kill, i'm guessing due to the stopsound in the code :roll:
would impact would there be just to take that out of the code ?

2. sometimes sounds dont always play, in fact, i'm using just 1 end-round sound for each team, sometimes we hear them, sometimes we dont.

onedamage 03-27-2005 11:10

anyone ?

Dontask-jello 03-29-2005 02:31

Im getting the same thing, when someone shoots the last bullet of the round it doesn't make sound (due to the stopsound issue). I dont really care much or I would have posted by now just letting you know that I have same problem. Also, with the not hearing any sounds at all never had that problem.
Oh and your question about taking out the stopsound part of the code, I dont think it would affect much (havent tried it) but Im thinking its mainly in there to stop any other music or something that would be a big disruption for the end round sound. I dont see what would be playing but its probably a precaution. Take the risk, if not change it back :wink:

at0me 04-07-2005 04:46

update with MP3 support
 
An update for you, enjoy with this.

MP3 support now work.

Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() { register_plugin("RoundSound","1.0","PaintLancer") register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin") register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin") } public t_win() { new rand = random_num(0,2) client_cmd(0,"mp3 stop") switch(rand) { case 0: client_cmd(0,"mp3 play sound/rsc002/rsc_t_win_1") case 1: client_cmd(0,"mp3 play sound/rsc002/rsc_t_win_2") case 2: client_cmd(0,"mp3 play sound/rsc002/rsc_t_win_3") } return PLUGIN_CONTINUE } public ct_win() { new rand = random_num(0,2) client_cmd(0,"mp3 stop") switch(rand) { case 0: client_cmd(0,"mp3 play sound/rsc002/rsc_ct_win_1") case 1: client_cmd(0,"mp3 play sound/rsc002/rsc_ct_win_2") case 2: client_cmd(0,"mp3 play sound/rsc002/rsc_ct_win_3") } return PLUGIN_CONTINUE } public plugin_precache() { precache_sound("rsc002/rsc_t_win_1.mp3") precache_sound("rsc002/rsc_t_win_2.mp3") precache_sound("rsc002/rsc_t_win_3.mp3") precache_sound("rsc002/rsc_ct_win_1.mp3") precache_sound("rsc002/rsc_ct_win_2.mp3") precache_sound("rsc002/rsc_ct_win_3.mp3") return PLUGIN_CONTINUE }

Schlesie 05-31-2005 18:36

Hi,

first sorry for my bad english ;)

I'm using the roundsound with my own sounds. It works fine but the sounds can hear not only the winning-team. The loosing-team can hear too.



Here my roundsound.sma, but with the original roundsound.amxx i have the same problem.


Code:

#include <amxmodx>

public plugin_init()
{
  register_plugin("RoundSound","1.0","PaintLancer")
  register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
  register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin") 
}

public t_win()
{
  new rand = random_num(0,2)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk misc/gfzwin1")
    case 1: client_cmd(0,"spk misc/gfzwin2")
    case 2: client_cmd(0,"spk misc/gfzwin3")
    case 3: client_cmd(0,"spk misc/gfzwin4")
    case 4: client_cmd(0,"spk misc/gfzwin5")
    case 5: client_cmd(0,"spk misc/gfzwin6")
    case 6: client_cmd(0,"spk misc/gfzwin7")
    case 7: client_cmd(0,"spk misc/gfzwin8")
    case 8: client_cmd(0,"spk misc/gfzwin9")
    case 9: client_cmd(0,"spk misc/gfzwin10")
    case 10: client_cmd(0,"spk misc/gfzwin11")
    case 11: client_cmd(0,"spk misc/gfzwin12")
  }

  return PLUGIN_CONTINUE
}

public ct_win()
{
  new rand = random_num(0,2)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk misc/gfzwin1")
    case 1: client_cmd(0,"spk misc/gfzwin2")
    case 2: client_cmd(0,"spk misc/gfzwin3")
    case 3: client_cmd(0,"spk misc/gfzwin4")
    case 4: client_cmd(0,"spk misc/gfzwin5")
    case 5: client_cmd(0,"spk misc/gfzwin6")
    case 6: client_cmd(0,"spk misc/gfzwin7")
    case 7: client_cmd(0,"spk misc/gfzwin8")
    case 8: client_cmd(0,"spk misc/gfzwin9")
    case 9: client_cmd(0,"spk misc/gfzwin10")
    case 10: client_cmd(0,"spk misc/gfzwin11")
    case 11: client_cmd(0,"spk misc/gfzwin12")
  }

  return PLUGIN_CONTINUE
}

public plugin_precache()
{
  precache_sound("misc/gfzwin1.wav")
  precache_sound("misc/gfzwin2.wav")
  precache_sound("misc/gfzwin3.wav")
  precache_sound("misc/gfzwin4.wav")
  precache_sound("misc/gfzwin5.wav")
  precache_sound("misc/gfzwin6.wav")
  precache_sound("misc/gfzwin7.wav")
  precache_sound("misc/gfzwin8.wav")
  precache_sound("misc/gfzwin9.wav")
  precache_sound("misc/gfzwin10.wav")
  precache_sound("misc/gfzwin11.wav")
  precache_sound("misc/gfzwin12.wav")
 
  return PLUGIN_CONTINUE
}



All times are GMT -4. The time now is 18:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.