Explanation:
 
If Torque has enough ammo left to lay a mine, then he goes to a routine which lays a mine in front of him and then checks to see whether the enemy is next to the mine, in which case it can be fragged.