TITLE SurfAvoidWeap ; Timer 4 : Evade Torpedo legs RULE Init IF INIT = 1 THEN ; employ any available countermeasures COUNTERMEASURE Decoy COUNTERMEASURE Jammer COUNTERMEASURE TowedCM END RULE Default Evade Torpedo IF TIMER4 = -1 AND SILOS < 0 THEN DEBUG "Evading Torpedo!" VAR_SET 1 {180,360} PERSIST VAR1 PRIORITY 255 STEER_EVASIVE SET_TIMER 4 VAR1 ; RULE Emergency Speed? ; IF RNG < 3500 THEN ; PRIORITY 255 MAX_SPD ; END END