Update CenterOnCell (COC) function behavior
Description of the CenterOnCell (coc) function: The "coc" function drops the player in a specified cell, either exterior or interior. The following is a description of that behavior.
If exterior: It selects the most Eastern column of cells matching the input string and then picks the most Northern one. It then places the PC in the center of this cell facing the positive Y direction (North) on the surface of the terrain regardless of whether it is beneath or intersecting other statics or beneath the water line. This is why when you enter: coc "wilderness", it puts the PC into the right most "wilderness" cell at (-15,-8), even though it is the lowest of all cells explicitly named "wilderness" in the CS. Also, this is why when you enter: coc "Molag Mar" it puts the PC underwater AND beneath the models of Molag Mar facing North.
If interior: It selects the Door Marker based on the order in which the Doors themselves were placed, with the first door placed having its corresponding Door Marker be the chosen one for the COC function. Since the Door objects are usually not in the same cell as their Door Marker this leads me to believe that the door markers contain this data or are in some way part of the Door object's record. To repeat, it doesn't matter in which order the door markers were placed, only the Door objects themselves. Like exteriors, the function always inserts the PC facing the positive Y direction (not necessarily North this time) at the door marker.
(RM-538 from redmine: created on 2013-01-14 by Paul McElroy, , closed on 2014-07-03 by Artem Kotsynyak)