if(event_type == EVENT_IMPACT | event_type == EVENT_ENTITY)

is wrong also:

if((event_type == EVENT_IMPACT) || (event_type == EVENT_ENTITY))