Jump to content
Sign in to follow this  
Tankbuster

put function to play a custom noise ?

Recommended Posts

My IED disruptor is just a reconfigegd satchel with a fancy model.

I've got a nice sound effect that is the three ratchet legs being opened then the device being armed with a little beep. I thought that referencing this is the new put function from with the config might make it play the sound when a player puts the disruptor down, but it doesnt.

Am I fundamentally misunderstanding the sound part of the config?

class tky_Disruptor: Put
{
	scope = 0;
	enableAttack = 1;
	ammo = "tky_Disruptor_A";
	displayName = "Disruptor Charge";
	nameSound = "satchelcharge";
	count = 1;
	initSpeed = 0;
	maxLeadSpeed = 0;
	showEmpty = 0;
	useAction = 1;
	useActionTitle = "Put %1 (%2 left)";
	sound[] = {"\tky_ied_kit\disruptorputsound.wss",20,1,1000};
	magazines[] = {"this"};
	class Library
	{
		libTextDesc = "An IED disruptor uses a high pressure jet of water to break up an IED without detonating it.";
	};
	descriptionShort = "Disruptor Charge";
};

Share this post


Link to post
Share on other sites

I think Put is a weapon but it needs a Muzzle ,

the muzzle will define what magazine is to be carried , so I think you need to create a sound when the new put weapon is fired (put = fire putmuzzle and magazine will be satchel or IED in your case). , try look allinone config for further clarification

Share this post


Link to post
Share on other sites

Yes. You're right! The sound needs to be on the muzzle, not the put. Working a treat. Many thanks mate.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×