Explanation:
This line checks whether the enemy is less that 7 spaces in front of
Torque. If it is, then Torque calculates the negative of the distamce that
the enemy is to the side of him (did that make any sense?)
This is used in the line below, in the following way:
-
~v1 = -1 indicates that the enemy is
less than 7 spaces in front of Torque and only one to the side. Therefore,
it is possibly in a position where it can be hit with a grenade.
-
~v1 = 0 indicates that the enemy is
directly in front of Torque and less than 7 spaces away, so it could possibly
be hit by a missile