Different sounds for BE/DS caps? by Milk-Man - Page 2 - 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 2 of 2
Thread Tools
Milk-Man
VeteranXV
Old
21 - 05-03-2017, 09:31 PM
Reply With Quote
I made a blank sound file, I just thought there may be a way to override it. Still I'm not able to get the assigned cap sounds to work. As I mentioned above, it's triggering the return sound.

.... and I just looked and saw this while rolling the marbles around in my hollow head...

Code:
}

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

	return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::ReturnSound[friendlyflag] ) ) : ( localSound( $Flag::ReturnSound[enemyflag] ) );
}
You may want to edit to reflect capsound rather than return sound to avoid future confusion.
 
Milk-Man is offline
 
Sponsored Links
lemontw
Veteran
Old
22 - 05-03-2017, 09:51 PM
Reply With Quote
good catch

copy/paste ftw

I honestly haven't tested it fully but it should work. WE'LL BE OUT OF BETA BY 2018.

edit: flagcapture.ogg flagreturn.ogg and flag1.ogg are sounds played via messages sent from the server (in objectives.cs) so that's why we have to delete them or rename them. if they still play you have that sound (with that name) somewhere else in ur base folder
 
lemontw is offline
 
Last edited by lemontw; 05-03-2017 at 10:01 PM.
Milk-Man
VeteranXV
Old
23 - 05-04-2017, 07:22 PM
Reply With Quote
new thread with my sounds made
 
Milk-Man is offline
 
Milk-Man
VeteranXV
Old
24 - 05-13-2017, 02:28 PM
Reply With Quote
question for lems:

The default flag sounds won't get overridden by another local sound that's played but in this script they will, which has caused me to be late in noticing a flag being capped. Is there a way to make it so that can't happen?

Not sure if the "profile" has anything to do with it in base\scripts\sound\nsound


SoundData SoundFlagCaptured
{
wavFileName = "flagcapture.wav";
profile = Profile3dMedium;
};

SoundData SoundFlagReturned
{
wavFileName = "flagreturn.wav";
profile = Profile3dMedium;
};

SoundData SoundFlagPickup
{
wavFileName = "flag1.wav";
profile = Profile3dMedium;
};

SoundData SoundFlagFlap
{
wavFileName = "flagflap.wav";
profile = Profile3dNear;
};
 
Milk-Man is offline
 
Last edited by Milk-Man; 05-13-2017 at 02:31 PM.
lemontw
Veteran
Old
25 - 05-13-2017, 03:13 PM
Reply With Quote
U MOTHER****ER

(looking at that now but idk)
 
lemontw is offline
 
Milk-Man
VeteranXV
Old
26 - 05-13-2017, 06:26 PM
Reply With Quote
 
Milk-Man is offline
 
Groove
VeteranXV
Contributor
Old
27 - 05-15-2017, 03:13 AM
Reply With Quote
neato gj milk and lemo
 
Groove is offline
 
lemontw
Veteran
Old
28 - 05-15-2017, 11:01 PM
Reply With Quote
client-side local sound on caps is not ideal

when ur going fast the sound fades too

I could make an onlocalsound script that mutes anything but cap sounds for a delay_time but still...

it's funny how I look at this every 4 or 5 years and reach same conclusion insanity lol etc.

best would be server code ($zadmin::soundclient = 1; or something) that addresses friend vs. foe caps
 
lemontw is offline
 
Milk-Man
VeteranXV
Old
29 - 05-16-2017, 09:43 AM
Reply With Quote
There's got to be code somewhere that allows the default cap sound to not be overridden. It's not a big deal, I just commented out the cap sound lines for now. I appreciate you looking into it though.
 
Milk-Man is offline
 
[meph] still plays
Veteran
Old
30 - 05-16-2017, 01:51 PM
Reply With Quote
i want script to mute typed chat but not mute soundpack

i want it named stfumeph.cs
 
[meph] still plays is offline
 
lemontw
Veteran
Old
31 - 05-16-2017, 10:09 PM
Reply With Quote
Quote:
Originally Posted by Milk-Man View Post
There's got to be code somewhere that allows the default cap sound to not be overridden. It's not a big deal, I just commented out the cap sound lines for now. I appreciate you looking into it though.
The default cap sound is in a server message sent via chat and those always override local sounds. Local sounds are "local" in that they stay where they're played. When you move away from that location the sound diminishes. One fix would be to send a chat message to yourself with the proper sound. Another would be to hijack the command function and deliver the sound from there. I'd have to store the current waypoint and re-init it after the sound gets played. I'm not saying it's dead in the water but I'm going to sit on it for a bit and attempt to come up with an elegant solution. Bottom line is local sounds are not ideal for this.

Code:
Client::sendMessage(%playerClient, 0, "You captured the " @ getTeamName(%enemyTeam) @ " flag!~wflagcapture.wav");
 
lemontw is offline
 
Milk-Man
VeteranXV
Old
32 - 05-16-2017, 11:42 PM
Reply With Quote
Oh I see. Unless you're now determined to figure it out, don't worry about it. It's all good.
 
Milk-Man is offline
 
Exodus
VeteranX
Old
33 - 05-20-2017, 12:33 AM
Reply With Quote
 
Exodus is offline
 
Page 2 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 02:12 PM.