Modme Forums
Menu:

help with sound

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: alexisloic21

hello i have a problem

I put a custom sound on my map but that I click on the trigger and the sound is not played my sound is in 4800 HZ and wav 16 bit if someone could help me ca would be nice

my sound aliases

screamer_audio,,,Alexisloic21\screamer.wav,,,UIN_MOD,,,,,,,,,0,0,95,100,0,3000,3000,,,,,,,,,,,,,,,,3d,,,NONLOOPING,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,



my script :

trigscreamer waittill("trigger",player);
	player PlayLocalSound("screamer_audio");
	skip = player screamer_shader( "screamer_materlial");
	if( skip )
		return;


ModmeBot:

Reply By: HitmanVere

Does rest of the stuff work like the actual image for jumpscare?

Edit: Also, since you are doing playLocalSound, change sound from 3D to 2D


ModmeBot:

Reply By: alexisloic21

HitmanVere

Does rest of the stuff work like the actual image for jumpscare?

Edit: Also, since you are doing playLocalSound, change sound from 3D to 2D

Why ? you wat m'y script for image its Just a hud


ModmeBot:

Reply By: HitmanVere

alexisloic21
HitmanVere

Does rest of the stuff work like the actual image for jumpscare?

Edit: Also, since you are doing playLocalSound, change sound from 3D to 2D

Why ? you wat m'y script for image its Just a hud

Nope, just to make sure that function is running


ModmeBot:

Reply By: alexisloic21

HitmanVere
alexisloic21
HitmanVere

Does rest of the stuff work like the actual image for jumpscare?

Edit: Also, since you are doing playLocalSound, change sound from 3D to 2D

Why ? you wat m'y script for image its Just a hud

Nope, just to make sure that function is running

while(1)
	{
	trigscreamer waittill("trigger",player);
	player PlayLocalSound("screamer_audio");
	skip = player screamer_shader( "screamer_materlial");
	if( skip )
		return;


	}
}

function screamer_shader(powerup)
{
	if ( !isDefined( self.powerup_hud ) )
		self.powerup_hud = [];

	self endon( "disconnect" );
	hud = NewClientHudElem( self );
	hud.powerup = powerup;
	hud.foreground = true;
	hud.hidewheninmenu = false;
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.x = hud.x;
	hud.y = hud.y - 50;
	hud.alpha = 1;
	hud SetShader( powerup , 320, 320 );
	self.powerup_hud[ powerup ] = hud;

	if( isDefined( self.powerup_hud[powerup] ) )
	{
		return true;
	}
	
}


ModmeBot:

Reply By: alexisloic21

its a problem with m y sound But nevertheless it is in 4800 hz and in 16 nit signed wav

view in spoiler

Spoiler!


ModmeBot:

Reply By: alexisloic21

anithing ;' (


ModmeBot:

Reply By: alexisloic21

i make this :