I want to create an entity that can count the number of monsters that died on a map (monsters that the player has killed or that have been killed by the environment/another NPC). Its name would be
env_counter
.It is not necessary to distinguish which monsters died (monster_headcrab, monster_alien_slave, monster_osprey, etc.). This entity must also be able to count the deaths of monsters that have been generated by the
monstermaker
entity.It is, so far, the most ambitious plan that I have proposed in terms of Half-Life programming.
I was wondering if you can give me a hand in guiding me on how to create such an entity.
I want it to be an entity that shows a text on the screen indicating the number of dead monsters (as can be achieved achieved by
env_message
entity).