Raised This Month: $ Target: $400
 0% 

[CS:GO] Round Sound!


Post New Thread Reply   
 
Thread Tools Display Modes
Useless
Member
Join Date: Jun 2012
Old 11-24-2012 , 13:43   Re: [CS:GO] Round Sound!
Reply With Quote #31

Hello Zyberis, I tried to use your tutorial to fix the sounds to be louder but instead of that I can't hear any sounds I put now.. If it's not too difficult to you, could you please post the ready and re-fixed sound plugin in this forum? Or at least re-write the tutorial so it will work please?
Useless is offline
saubermachfrau
New Member
Join Date: Aug 2012
Old 01-13-2013 , 10:16   Re: [CS:GO] Round Sound!
Reply With Quote #32

Hello,

my problem is

[Sound] S_StartSound(): Failed to load sound 'bier\ctwinnar1.mp3'. Can't create mixer.

I convertet the mp3 in ogg and than in mp3 too.

The File is in the Loction and it was downloaded to the client...

What can i do ???


Code:
/* *
 * RoundSound BY TUMMIETUM (TUMTUM)
 * -------------------------
 * Changelog Original Roundsound++ by ANTiCHRiST
 * -------------------------
 * by TanaToS aka ANTiCHRiST
 */
#include <sourcemod>
#include <sdktools>
#include <sdktools_sound>
#include <console>
#include <string>

#pragma semicolon 1

#define PLUGIN_VERSION "1.1.0"
#define MAX_FILE_LEN 256

new Handle:g_hEnabled = INVALID_HANDLE;
new bool:g_bEnabled = true;

public Plugin:myinfo = {
	name = "RoundSound CS:GO",
	author = "ANTiCHRiST Edited by TumTum",
	description = "Plays a Sound at RoundEnd.",
	version = PLUGIN_VERSION,
	url = "http://www.team-secretforce.com"
};

public OnPluginStart() {
	CreateConVar("sm_roundsound_version", PLUGIN_VERSION, "RoundSound version.", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
	g_hEnabled = CreateConVar("sm_roundsound_enable", "1", "RoundSound Enable/Disable CVar.", FCVAR_PLUGIN|FCVAR_NOTIFY);

	HookEvent("round_end", EventRoundEnd);
	HookConVarChange(g_hEnabled, CVarEnabled);
}

public OnMapStart()
{
	decl String:tewin_snd1[MAX_FILE_LEN];
	decl String:tewin_snd2[MAX_FILE_LEN];
	decl String:tewin_snd3[MAX_FILE_LEN];
	decl String:ctwin_snd1[MAX_FILE_LEN];
	decl String:ctwin_snd2[MAX_FILE_LEN];
	decl String:ctwin_snd3[MAX_FILE_LEN];

	Format(tewin_snd1, sizeof(tewin_snd1), "sound/bier/twinnar1.mp3");
	Format(tewin_snd2, sizeof(tewin_snd2), "sound/bier/twinnar2.mp3");
	Format(tewin_snd3, sizeof(tewin_snd3), "sound/bier/twinnar3.mp3");
	Format(ctwin_snd1, sizeof(ctwin_snd1), "sound/bier/ctwinnar1.mp3");
	Format(ctwin_snd2, sizeof(ctwin_snd2), "sound/bier/ctwinnar2.mp3");
	Format(ctwin_snd3, sizeof(ctwin_snd3), "sound/bier/ctwinnar3.mp3");

	if(FileExists(tewin_snd1) && FileExists(tewin_snd2) && FileExists(tewin_snd3) && FileExists(ctwin_snd1) && FileExists(ctwin_snd2) && FileExists(ctwin_snd3)) {
		AddFileToDownloadsTable(tewin_snd1);
		AddFileToDownloadsTable(tewin_snd2);
		AddFileToDownloadsTable(tewin_snd3);
		AddFileToDownloadsTable(ctwin_snd1);
		AddFileToDownloadsTable(ctwin_snd2);
		AddFileToDownloadsTable(ctwin_snd3);

		PrecacheSound("bier/ctwinnar1.mp3", true);
		PrecacheSound("bier/ctwinnar2.mp3", true);
		PrecacheSound("bier/ctwinnar3.mp3", true);
		PrecacheSound("bier/twinnar1.mp3", true);
		PrecacheSound("bier/twinnar2.mp3", true);
		PrecacheSound("bier/twinnar3.mp3", true);
	}
	else {
		LogError("Not all sound files exists.");
		LogError("Unload the Plugin.");
		ServerCommand("sm plugins unload \"RoundSound.smx\"");
	}
}

public OnConfigsExecuted() {
	if(GetConVarBool(g_hEnabled)) {
		g_bEnabled = true;
	}
	else if(!GetConVarBool(g_hEnabled)) {
		g_bEnabled = false;
	}
	else {
		g_bEnabled = true;
		LogError("False value plugin continued");
	}
}

public CVarEnabled(Handle:convar, const String:oldValue[], const String:newValue[]) {
	if(GetConVarBool(g_hEnabled)) {
		g_bEnabled = true;
	}
	else if(!GetConVarBool(g_hEnabled)) {
		g_bEnabled = false;
	}
	else {
		g_bEnabled = true;
		LogError("False value plugin continued");
	}
}

public EventRoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
	new rnd_sound = GetRandomInt(1, 3);
	new ev_winner = GetEventInt(event, "winner");
	if(g_bEnabled) {
		if(ev_winner == 2) {
			if(rnd_sound == 1) {
				EmitSoundToAll("bier/twinnar1.mp3");
			}
			else if(rnd_sound == 2) {
				EmitSoundToAll("bier/twinnar2.mp3");
			}
			else if(rnd_sound == 3) {
				EmitSoundToAll("bier/twinnar3.mp3");
			}
			else {
				LogError("Ramdom Sound CVar Error.");
			}
		}
		else if(ev_winner == 3) {
			if(rnd_sound == 1) {
				EmitSoundToAll("bier/ctwinnar1.mp3");
			}
			else if(rnd_sound == 2) {
				EmitSoundToAll("bier/ctwinnar2.mp3");
			}
			else if(rnd_sound == 3) {
				EmitSoundToAll("bier/ctwinnar3.mp3");
			}
			else {
				LogError("Ramdom Sound CVar Error.");
			}
		}
		else {
			LogError("No team has win the round.");
		}
	}
}

Last edited by saubermachfrau; 01-13-2013 at 11:38.
saubermachfrau is offline
deltadude
SourceMod Donor
Join Date: Mar 2010
Old 01-15-2013 , 03:41   Re: [CS:GO] Round Sound!
Reply With Quote #33

works but even adding the cvar listed it can barely be heard over actual in game sound.
__________________
deltadude is offline
BeckxXx
New Member
Join Date: Jan 2013
Old 01-18-2013 , 12:39   Re: [CS:GO] Round Sound!
Reply With Quote #34

hi,
i started to install the round sound mod on my public arms race server.
the installation were very easy.

my problem is that i get no sounds at roundend.

is this plugin compatible with arms race mode?
BeckxXx is offline
Saugjunkie
New Member
Join Date: Oct 2010
Old 01-25-2013 , 09:11   Re: [CS:GO] Round Sound!
Reply With Quote #35

Quote:
Originally Posted by BeckxXx View Post
hi,
i started to install the round sound mod on my public arms race server.
the installation were very easy.

my problem is that i get no sounds at roundend.

is this plugin compatible with arms race mode?
No it isn't Look in your sm log

Last edited by Saugjunkie; 01-25-2013 at 09:11.
Saugjunkie is offline
ANTiCHRiST
Member
Join Date: Mar 2009
Location: Vienna, Austria
Old 02-13-2013 , 04:17   Re: [CS:GO] Round Sound!
Reply With Quote #36

u didnt modify it u just renamed it with CSGO thats not ok
__________________
ANTiCHRiST is offline
Send a message via ICQ to ANTiCHRiST Send a message via MSN to ANTiCHRiST
marcintojatak
BANNED
Join Date: Sep 2010
Location: PL
Old 05-19-2013 , 19:56   Re: [CS:GO] Round Sound!
Reply With Quote #37

http://forums.alliedmods.net/showpos...&postcount=119

this plugin works with csgo but i dont now how to add volume in game. in my srv works

copy pack change map or restart srv and you now it works


music/misc/yours-directory-name/1.mp3=BOTH <--yours path to file

res_list.cfg <---edit this file and add yours files


//
music/misc/rasta/1.mp3=BOTH \
music/misc/rasta/2.mp3=BOTH
music/misc/rasta/3.mp3=BOTH
music/misc/rasta/4.mp3=BOTH
music/misc/rasta/5.mp3=BOTH <---
music/misc/rasta/6.mp3=BOTH
music/misc/rasta/7.mp3=BOTH
music/misc/rasta/8.mp3=BOTH
music/misc/rasta/9.mp3=BOTH
music/misc/rasta/10.mp3=BOTH /
// --------------------------------

//
//
music/misc/rasta/11.mp3=BOTH \
music/misc/rasta/12.mp3=BOTH
music/misc/rasta/13.mp3=BOTH
music/misc/rasta/14.mp3=BOTH
music/misc/rasta/15.mp3=BOTH <----
music/misc/rasta/16.mp3=BOTH
music/misc/rasta/17.mp3=BOTH
music/misc/rasta/18.mp3=BOTH
music/misc/rasta/19.mp3=BOTH
music/misc/rasta/20.mp3=BOTH /
//
// --------------------------------

music/misc/rasta/17.mp3=MAPEND \
music/misc/rasta/18.mp3=MAPEND <---
music/misc/rasta/19.mp3=MAPEND < ---
music/misc/rasta/20.mp3=MAPEND /
//Mapend/1.mp3=MAPEND
//Mapend/2.mp3=MAP
//Mapend/3.mp3=END
Attached Files
File Type: 7z csgo-music.7z (4.64 MB, 686 views)

Last edited by marcintojatak; 05-19-2013 at 20:01.
marcintojatak is offline
dareksbs
Junior Member
Join Date: Dec 2013
Old 01-02-2014 , 20:27   Re: [CS:GO] Round Sound!
Reply With Quote #38

Hi Guys,

I've got two problems...

1. Is there is any way to play music longer than 10s ?? I would like to start when one of the team win, and keep playing it until they got guns in second round. In theory I would like to play music for 20-25s

2. The volume... it's too quiet, In CS 1.6 there was no problem with the volume, the music was smashing everyone ! (That was nice)
dareksbs is offline
_rXm
New Member
Join Date: Jul 2014
Old 07-05-2014 , 07:50   Re: [CS:GO] Round Sound!
Reply With Quote #39

When i tried this pluging it sas: [Sound] S_StartSound(): Failed to load sound 'music\misc\ctwinnar2.mp3'. Can't create mixer. Any help please :p
_rXm is offline
ANTiCHRiST
Member
Join Date: Mar 2009
Location: Vienna, Austria
Old 07-10-2014 , 20:37   Re: [CS:GO] Round Sound!
Reply With Quote #40

i think u realy should just kill the csgo sound i saw one plugin dat killed the regular css sounds to play some csgo sound u maybe can lurk in to the code and try a convertation but the plugin was in eventscript
__________________
ANTiCHRiST is offline
Send a message via ICQ to ANTiCHRiST Send a message via MSN to ANTiCHRiST
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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