Try changing:

my.emask |= ENABLE_IMPACT;

to:

my.emask = ENABLE_IMPACT | ENABLE_ENTITY;

and maybe remove:

set(my,ENABLE_IMPACT);