added the use of rayhats to identify character proximity