function ChatterMiscHighPriority(shipnm, parm2, code)
shiptype=getType(shipnm)
genericshipnm=strsub(shipnm, 5)
if (code==CD_CapturedAtUnitCap) then
if (shipnm=="Hgn_MarineFrigate") then
playSpeechActor("STATUS_MARINEFRIGATE_SUCCESS_CAPFULL", NameMarinePilot, NumMarinePilots, Frequency_Command)
else
playSpeechActor("STATUS_INFILTRATORFRIGATE_SUCCESS_CAPFULL", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
end
if (code==CD_CaptureHalfway) then
if (shipnm=="Hgn_MarineFrigate") then
playSpeechActor("CHATTER_MARINEFRIGATE_50PERCENT", NameMarinePilot, NumMarinePilots, Frequency_Command)
else
playSpeechActor("CHATTER_INFILTRATORFRIGATE_50PERCENT", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
end
if (code==CD_CaptureStarted) then
if (shipnm=="Hgn_MarineFrigate") then
playSpeechActor("CHATTER_MARINEFRIGATE_BEGIN", NameMarinePilot, NumMarinePilots, Frequency_Command)
else
playSpeechActor("CHATTER_INFILTRATORFRIGATE_BEGIN", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
end
if (code==CD_EnemyCaptureStarted) then
if (genericshipnm=="Carrier") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Carrier_1", raceHelper(), 0, Frequency_Command)
elseif (genericshipnm=="Destroyer") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Destroyer_1", raceHelper(), 0, Frequency_Command)
elseif (strupper(genericshipnm)=="BATTLECRUISER") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Battlecruiser_1", raceHelper(), 0, Frequency_Command)
elseif (genericshipnm=="MotherShip") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Mothership_1", raceHelper(), 0, Frequency_Command)
elseif (genericshipnm=="Shipyard") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Shipyard_1", raceHelper(), 0, Frequency_Command)
elseif (genericshipnm=="Dreadnaught") then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Dreadnaught_1", raceHelper(), 0, Frequency_Command)
elseif (shiptype==Frigate) then
playSpeechActor("STATUS_EnemyMarineFrigateAttack_Frigate_1", raceHelper(), 0, Frequency_Command)
else
if (code==CD_ShipArrived) and (genericshipnm=="Probe") then
playSpeechActor("STATUS_ProbeArrived", raceHelper(), 0, Frequency_Command)
elseif (code==CD_ShipArrived) and (genericshipnm=="Probe_ECM") or (genericshipnm=="ECMProbe") then
playSpeechActor("STATUS_EMPProbeArrived_1", raceHelper(), 0, Frequency_Command)
elseif (code==CD_ShipArrived) and (genericshipnm=="HSInhibitor") then
playSpeechActor("STATUS_InhibitorProbeArrived_1", raceHelper(), 0, Frequency_Command)
elseif (code==CD_ShipEmergingFromHyperpace) then
playSpeechActor("STATUS_HyperspaceUnitEmerging_1", raceHelper(), 0, Frequency_Command)
elseif (code==CD_ShipSpotted) and (genericshipnm=="Probe") then
if (parm2=="c") then
playSpeechActor("STATUS_ProximityProbeWarning_1", raceHelper(), 0, Frequency_Command)
else
playSpeechActor("STATUS_ProbeDetected", raceHelper(), 0, Frequency_Command)
end
end
end
end
end
end
end
end