Advertisement
Guest User

Untitled

a guest
Feb 17th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. function ChatterMiscHighPriority(shipnm, parm2, code)
  2. shiptype=getType(shipnm)
  3. genericshipnm=strsub(shipnm, 5)
  4. if (code==CD_CapturedAtUnitCap) then
  5. if (shipnm=="Hgn_MarineFrigate") then
  6. playSpeechActor("STATUS_MARINEFRIGATE_SUCCESS_CAPFULL", NameMarinePilot, NumMarinePilots, Frequency_Command)
  7. else
  8. playSpeechActor("STATUS_INFILTRATORFRIGATE_SUCCESS_CAPFULL", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
  9. end
  10.  
  11. if (code==CD_CaptureHalfway) then
  12. if (shipnm=="Hgn_MarineFrigate") then
  13. playSpeechActor("CHATTER_MARINEFRIGATE_50PERCENT", NameMarinePilot, NumMarinePilots, Frequency_Command)
  14. else
  15. playSpeechActor("CHATTER_INFILTRATORFRIGATE_50PERCENT", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
  16. end
  17.  
  18. if (code==CD_CaptureStarted) then
  19. if (shipnm=="Hgn_MarineFrigate") then
  20. playSpeechActor("CHATTER_MARINEFRIGATE_BEGIN", NameMarinePilot, NumMarinePilots, Frequency_Command)
  21. else
  22. playSpeechActor("CHATTER_INFILTRATORFRIGATE_BEGIN", NameInfiltratorPilot, NumInfiltratorPilots, Frequency_Command)
  23. end
  24.  
  25. if (code==CD_EnemyCaptureStarted) then
  26. if (genericshipnm=="Carrier") then
  27. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Carrier_1", raceHelper(), 0, Frequency_Command)
  28. elseif (genericshipnm=="Destroyer") then
  29. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Destroyer_1", raceHelper(), 0, Frequency_Command)
  30. elseif (strupper(genericshipnm)=="BATTLECRUISER") then
  31. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Battlecruiser_1", raceHelper(), 0, Frequency_Command)
  32. elseif (genericshipnm=="MotherShip") then
  33. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Mothership_1", raceHelper(), 0, Frequency_Command)
  34. elseif (genericshipnm=="Shipyard") then
  35. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Shipyard_1", raceHelper(), 0, Frequency_Command)
  36. elseif (genericshipnm=="Dreadnaught") then
  37. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Dreadnaught_1", raceHelper(), 0, Frequency_Command)
  38. elseif (shiptype==Frigate) then
  39. playSpeechActor("STATUS_EnemyMarineFrigateAttack_Frigate_1", raceHelper(), 0, Frequency_Command)
  40. else
  41. if (code==CD_ShipArrived) and (genericshipnm=="Probe") then
  42. playSpeechActor("STATUS_ProbeArrived", raceHelper(), 0, Frequency_Command)
  43. elseif (code==CD_ShipArrived) and (genericshipnm=="Probe_ECM") or (genericshipnm=="ECMProbe") then
  44. playSpeechActor("STATUS_EMPProbeArrived_1", raceHelper(), 0, Frequency_Command)
  45. elseif (code==CD_ShipArrived) and (genericshipnm=="HSInhibitor") then
  46. playSpeechActor("STATUS_InhibitorProbeArrived_1", raceHelper(), 0, Frequency_Command)
  47. elseif (code==CD_ShipEmergingFromHyperpace) then
  48. playSpeechActor("STATUS_HyperspaceUnitEmerging_1", raceHelper(), 0, Frequency_Command)
  49. elseif (code==CD_ShipSpotted) and (genericshipnm=="Probe") then
  50. if (parm2=="c") then
  51. playSpeechActor("STATUS_ProximityProbeWarning_1", raceHelper(), 0, Frequency_Command)
  52. else
  53. playSpeechActor("STATUS_ProbeDetected", raceHelper(), 0, Frequency_Command)
  54. end
  55. end
  56. end
  57. end
  58. end
  59. end
  60. end
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement