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
VeteranXX
Old
21 - 05-03-2017, 21:31
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
lemon
Sour++
Contributor
Old
22 - 05-03-2017, 21:51
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
 
lemon is offline
 
Last edited by lemon; 05-03-2017 at 22:01..
Milk-Man
VeteranXX
Old
23 - 05-04-2017, 19:22
Reply With Quote
new thread with my sounds made
 
Milk-Man is offline
 
Milk-Man
VeteranXX
Old
24 - 05-13-2017, 14:28
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 14:31..
lemon
Sour++
Contributor
Old
25 - 05-13-2017, 15:13
Reply With Quote
U MOTHER****ER

(looking at that now but idk)
 
lemon is offline
 
Milk-Man
VeteranXX
Old
26 - 05-13-2017, 18:26
Reply With Quote
 
Milk-Man is offline
 
groove
VeteranXX
Old
27 - 05-15-2017, 03:13
Reply With Quote
neato gj milk and lemo
 
groove is offline
 
lemon
Sour++
Contributor
Old
28 - 05-15-2017, 23:01
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
 
lemon is offline
 
Milk-Man
VeteranXX
Old
29 - 05-16-2017, 09:43
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, 13:51
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
 
lemon
Sour++
Contributor
Old
31 - 05-16-2017, 22:09
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");
 
lemon is offline
 
Milk-Man
VeteranXX
Old
32 - 05-16-2017, 23:42
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
VeteranXX
Old
33 - 05-20-2017, 00:33
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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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: claudebot / Y
All times are GMT -4. The time now is 11:30.