added a die() proc for entities

the die() proc can be overriden so certain entities can execute
different actions when they die.
add somed entity-related vars
added some entity-related vars