carPG-13: NPC Metrics

User Story: As a player, I want each NPC car to react to every action I take in its proximity.

In carPG-13, NPC cars react to how you behave when you are around them. If you get too close to a car who likes his space, he will get upset at you and back up. He will also angerCounter++ his metrics. If he hits his angerThreshold, say 3, he will getAngry(). In the video below, I show the programming of a Mechanic NPC’s getAngry() function which triggers a machine gun turret to start firing at the player. Check it out:

 

Book Recommendation: “Inner Work” by Robert Johnson for anyone who wants to learn how to incorporate their dreams into their spiritual life and conscious self.