Something set to trigger different sounds at 2 different speeds reached. I'd like to add it to this flag sounds file so I can keep local sound events all together. No center print needed. Can anyone hook it up?
Code:
$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);