Section 115(6) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(6)When in foreign ports, if warships of the countries concerned half-mast their colours on the death of one of their Nationals, Indian Naval Ships shall as a matter of courtesy conform by half-masting their own colours. In the event of a foreign ship being in an Indian port on such an occasion. Indian Naval Ships in company shall half-mast their colour on the day of the funeral only unless special orders are issued by the Chief of the Naval Staff.