// Flag Drop Sounds
$Flag::DropSound[enemyflag] ="shieldhit";
$Flag::DropSound[friendlyflag] ="mine_act";
function Flag::DropSounds( %team, %cl ) {
return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::DropSound[friendlyflag] ) ) : ( localSound( $Flag::DropSound[enemyflag] ) );
}
Event::Attach(eventFlagDrop, Flag::DropSounds);
Code:// Flag Drop Sounds $Flag::DropSound[enemyflag] ="shieldhit"; $Flag::DropSound[friendlyflag] ="mine_act"; function Flag::DropSounds( %team, %cl ) { return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::DropSound[friendlyflag] ) ) : ( localSound( $Flag::DropSound[enemyflag] ) ); } Event::Attach(eventFlagDrop, Flag::DropSounds);
can we please not abuse the ternary operator? ok, i lied, i don't really care, but that is not beautiful.
Code:// Flag Drop Sounds $Flag::DropSound[enemyflag] ="shieldhit"; $Flag::DropSound[friendlyflag] ="mine_act"; function Flag::DropSounds( %team, %cl ) { return ( %team == Client::GetTeam( getManagerId() ) ) ? ( localSound( $Flag::DropSound[friendlyflag] ) ) : ( localSound( $Flag::DropSound[enemyflag] ) ); } Event::Attach(eventFlagDrop, Flag::DropSounds);
Did you really just attach a 4.5 MB ss? It really is 1999 again!
Yeah. If we can get the green brackets patched out of HUDs + transchat that would be ultimate. Then you can do it all. Provided we also get that top/bottom ordering of HUDs script from NoFix as well.
if I wanted to replace the sounds with custom, non-tribes sounds (the ones from t2 specifically) is that possible? where would i put the sound files?
if I wanted to replace the sounds with custom, non-tribes sounds (the ones from t2 specifically) is that possible? where would i put the sound files?
For those wondering, only OGG sounds will work. Any of your old WAVs will need to be converted. Place custom ones in your Tribes\base or Tribes\base\voices folders. Or use current sounds from Tribes like Lemon did above (pulled from Tribes\base\sound.zip).