Different sounds for BE/DS caps? by Milk-Man - TribalWar Forums
Click Here to find great hosting deals from Branzone.com


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page Different sounds for BE/DS caps?
Page 1 of 2
Thread Tools
Milk-Man
VeteranXV
Old
1 - 04-29-2017, 06:41 PM
Reply With Quote
Can anyone add to this to make it happen?

Thanks!



Code:
// Flag Drop Sounds

$Flag::DropSound[enemyflag]		="mine_act";
$Flag::DropSound[friendlyflag]		="shieldhit";

function Flag::DropSounds( %team, %cl ) {
	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::DropSound[friendlyflag] ) ) : ( localSound( $Flag::DropSound[enemyflag] ) );
}

Event::Attach(eventFlagDrop, Flag::DropSounds);
 
Milk-Man is offline
 
Sponsored Links
lemontw
Veteran
Old
2 - 04-30-2017, 12:37 AM
Reply With Quote
edit
 
lemontw is offline
 
Last edited by lemontw; 04-30-2017 at 12:50 AM.
lemontw
Veteran
Old
3 - 04-30-2017, 06:12 PM
Reply With Quote
This will allow you to replace all flag related sounds for each team individually.

1. Open sounds.zip in base folder and rename flag1.ogg, flagreturn.ogg, and flagcapture.ogg to bflag1.ogg, bflagreturn.ogg, and bflagcapture.ogg. You can use these for either team now.

2. Save code below as flagsounds140.acs.cs and put it in your modules folder.

3. Edit the sounds for each event. I made them all the same initially but you can use (most of) the sounds in sounds.zip or put custom .wav or .ogg sounds in your base folder.

Code:
// flag sounds for 1.40

$Flag::DropSound[0]="shieldhit"; // BE
$Flag::DropSound[1]="bxplo4"; // DS
$Flag::DropSound[def]="bxplo4"; // default

$Flag::ReturnSound[0]="shieldhit";
$Flag::ReturnSound[1]="bxplo4";
$Flag::ReturnSound[def]="bxplo4";

$Flag::GrabSound[0]="shieldhit";
$Flag::GrabSound[1]="bxplo4";
$Flag::GrabSound[def]="bxplo4";

$Flag::PickupSound[0]="shieldhit";
$Flag::PickupSound[1]="bxplo4";
$Flag::PickupSound[def]="bxplo4";

$Flag::CapSound[0]="shieldhit";
$Flag::CapSound[1]="bxplo4";
$Flag::CapSound[def]="bxplo4";

function Flag::DropSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::DropSound[0] );
			break;
		case "1":
			localSound( $Flag::DropSound[1] );
			break;
		default:
			localSound( $Flag::DropSound[def] );
			break;
		}
}

function Flag::ReturnSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::ReturnSound[0] );
			break;
		case "1":
			localSound( $Flag::ReturnSound[1] );
			break;
		default:
			localSound( $Flag::ReturnSound[def] );
			break;
		}
}

function Flag::GrabSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::GrabSound[0] );
			break;
		case "1":
			localSound( $Flag::GrabSound[1] );
			break;
		default:
			localSound( $Flag::GrabSound[def] );
			break;
		}
}

function Flag::PickupSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::PickupSound[0] );
			break;
		case "1":
			localSound( $Flag::PickupSound[1] );
			break;
		default:
			localSound( $Flag::PickupSound[def] );
			break;
		}
}

function Flag::CapSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::CapSound[0] );
			break;
		case "1":
			localSound( $Flag::CapSound[1] );
			break;
		default:
			localSound( $Flag::CapSound[def] );
			break;
		}
}

Event::Attach(eventFlagDrop, Flag::DropSounds);
Event::Attach(eventFlagReturn, Flag::ReturnSounds);
Event::Attach(eventFlagGrab, Flag::GrabSounds);
Event::Attach(eventFlagPickup, Flag::PickupSounds);
Event::Attach(eventFlagCap, Flag::CapSounds);
 
lemontw is offline
 
Last edited by lemontw; 04-30-2017 at 06:31 PM.
Milk-Man
VeteranXV
Old
4 - 04-30-2017, 07:56 PM
Reply With Quote
This is a script that should have been around for the past decade. You have done Gods work lemon. Bless you child.
 
Milk-Man is offline
 
lemontw
Veteran
Old
5 - 04-30-2017, 08:24 PM
Reply With Quote
 
lemontw is offline
 
Last edited by lemontw; 04-30-2017 at 10:37 PM.
lemontw
Veteran
Old
6 - 04-30-2017, 08:29 PM
Reply With Quote
 
lemontw is offline
 
Last edited by lemontw; 04-30-2017 at 10:37 PM.
lemontw
Veteran
Old
7 - 04-30-2017, 10:36 PM
Reply With Quote
 
lemontw is offline
 
Plasmatic
VeteranX
Old
8 - 05-01-2017, 12:39 PM
Reply With Quote


Last edited by lemontw; 04-30-2017 at 09:37 PM.
 
Plasmatic is offline
 
hyung
VeteranX
Contributor
Old
9 - 05-01-2017, 07:35 PM
Reply With Quote
Quote:
Originally Posted by lemontw View Post
This will allow you to replace all flag related sounds for each team individually.

1. Open sounds.zip in base folder and rename flag1.ogg, flagreturn.ogg, and flagcapture.ogg to bflag1.ogg, bflagreturn.ogg, and bflagcapture.ogg. You can use these for either team now.

2. Save code below as flagsounds140.acs.cs and put it in your modules folder.

3. Edit the sounds for each event. I made them all the same initially but you can use (most of) the sounds in sounds.zip or put custom .wav or .ogg sounds in your base folder.

Code:
// flag sounds for 1.40

$Flag::DropSound[0]="shieldhit"; // BE
$Flag::DropSound[1]="bxplo4"; // DS
$Flag::DropSound[def]="bxplo4"; // default

$Flag::ReturnSound[0]="shieldhit";
$Flag::ReturnSound[1]="bxplo4";
$Flag::ReturnSound[def]="bxplo4";

$Flag::GrabSound[0]="shieldhit";
$Flag::GrabSound[1]="bxplo4";
$Flag::GrabSound[def]="bxplo4";

$Flag::PickupSound[0]="shieldhit";
$Flag::PickupSound[1]="bxplo4";
$Flag::PickupSound[def]="bxplo4";

$Flag::CapSound[0]="shieldhit";
$Flag::CapSound[1]="bxplo4";
$Flag::CapSound[def]="bxplo4";

function Flag::DropSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::DropSound[0] );
			break;
		case "1":
			localSound( $Flag::DropSound[1] );
			break;
		default:
			localSound( $Flag::DropSound[def] );
			break;
		}
}

function Flag::ReturnSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::ReturnSound[0] );
			break;
		case "1":
			localSound( $Flag::ReturnSound[1] );
			break;
		default:
			localSound( $Flag::ReturnSound[def] );
			break;
		}
}

function Flag::GrabSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::GrabSound[0] );
			break;
		case "1":
			localSound( $Flag::GrabSound[1] );
			break;
		default:
			localSound( $Flag::GrabSound[def] );
			break;
		}
}

function Flag::PickupSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::PickupSound[0] );
			break;
		case "1":
			localSound( $Flag::PickupSound[1] );
			break;
		default:
			localSound( $Flag::PickupSound[def] );
			break;
		}
}

function Flag::CapSounds( %team, %cl ) {

	switch ( %team ) {
		case "0":
			localSound( $Flag::CapSound[0] );
			break;
		case "1":
			localSound( $Flag::CapSound[1] );
			break;
		default:
			localSound( $Flag::CapSound[def] );
			break;
		}
}

Event::Attach(eventFlagDrop, Flag::DropSounds);
Event::Attach(eventFlagReturn, Flag::ReturnSounds);
Event::Attach(eventFlagGrab, Flag::GrabSounds);
Event::Attach(eventFlagPickup, Flag::PickupSounds);
Event::Attach(eventFlagCap, Flag::CapSounds);
nice!!
 
hyung is offline
 
lemontw
Veteran
Old
10 - 05-01-2017, 09:58 PM
Reply With Quote
friendly/enemy version

Code:
// flag sounds for 1.40

$Flag::DropSound[friendlyflag]="shieldhit";
$Flag::DropSound[enemyflag]="bxplo4";

$Flag::ReturnSound[friendlyflag]="shieldhit";
$Flag::ReturnSound[enemyflag]="bxplo4";

$Flag::GrabSound[friendlyflag]="shieldhit";
$Flag::GrabSound[enemyflag]="CapturedTower";

$Flag::PickupSound[friendlyflag]="shieldhit";
$Flag::PickupSound[enemyflag]="bxplo4";

$Flag::CapSound[friendlyflag]	="shieldhit";
$Flag::CapSound[enemyflag]="bxplo4";

function Flag::DropSounds( %team, %cl ) {

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::DropSound[friendlyflag] ) ) : ( localSound( $Flag::DropSound[enemyflag] ) );
}

function Flag::ReturnSounds( %team, %cl ) {

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::ReturnSound[friendlyflag] ) ) : ( localSound( $Flag::ReturnSound[enemyflag] ) );
}

function Flag::GrabSounds( %team, %cl ) {

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::GrabSound[friendlyflag] ) ) : ( localSound( $Flag::GrabSound[enemyflag] ) );
}

function Flag::PickupSounds( %team, %cl ) {

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::PickupSound[friendlyflag] ) ) : ( localSound( $Flag::PickupSound[enemyflag] ) );
}

function Flag::CapSounds( %team, %cl ) {

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::CapSound[friendlyflag] ) ) : ( localSound( $Flag::CapSound[enemyflag] ) );
}

Event::Attach(eventFlagDrop, Flag::DropSounds);
Event::Attach(eventFlagReturn, Flag::ReturnSounds);
Event::Attach(eventFlagGrab, Flag::GrabSounds);
Event::Attach(eventFlagPickup, Flag::PickupSounds);
Event::Attach(eventFlagCap, Flag::CapSounds);
 
lemontw is offline
 
Last edited by lemontw; 05-03-2017 at 09:49 PM.
S_hift
Veteran++
Old
11 - 05-01-2017, 10:01 PM
Reply With Quote
sworders have captured our flag!

butchers have captured our flag
 
S_hift is offline
 
Exodus
VeteranX
Old
12 - 05-02-2017, 11:11 AM
Reply With Quote
 
Exodus is offline
 
vamp
Veteran
Old
13 - 05-02-2017, 11:36 PM
Reply With Quote
thats awesome
 
vamp is offline
 
lemontw
Veteran
Old
14 - 05-03-2017, 12:18 AM
Reply With Quote
Quote:
Originally Posted by vamp View Post
thats awesome
ty

tribes code is p ez
 
lemontw is offline
 
hyung
VeteranX
Contributor
Old
15 - 05-03-2017, 12:55 AM
Reply With Quote
milk, do you have good sounds to use for these?
 
hyung is offline
 
Milk-Man
VeteranXV
Old
16 - 05-03-2017, 09:21 AM
Reply With Quote
working on it. haven't settled on them yet. will post when done
 
Milk-Man is offline
 
S_hift
Veteran++
Old
17 - 05-03-2017, 10:52 AM
Reply With Quote
you should use those sounds krogoth ripped from ascend. or maybe some other version of tribes.
 
S_hift is offline
 
Milk-Man
VeteranXV
Old
18 - 05-03-2017, 05:55 PM
Reply With Quote
Lemon, when a flag is captured it plays the default cap sound, not the ones assigned, and its also triggering the enemy return sound. Any ideas?
 
Milk-Man is offline
 
Milk-Man
VeteranXV
Old
19 - 05-03-2017, 05:56 PM
Reply With Quote
Quote:
Originally Posted by S_hift View Post
you should use those sounds krogoth ripped from ascend. or maybe some other version of tribes.
I am using some of them.
 
Milk-Man is offline
 
lemontw
Veteran
Old
20 - 05-03-2017, 09:19 PM
Reply With Quote
Quote:
Originally Posted by Milk-Man View Post
Lemon, when a flag is captured it plays the default cap sound, not the ones assigned, and its also triggering the enemy return sound. Any ideas?
did u delete flagcapture.ogg and flagreturn.ogg in sounds.zip? if the sound is playing you have a copy of it somewhere
 
lemontw is offline
 
Page 1 of 2
Reply


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page Different sounds for BE/DS caps?

Social Website Bullshit

Thread Tools

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

AGENT: CCBot/2.0 (http://commoncrawl.org/faq/) / Y
All times are GMT -5. The time now is 10:48 AM.