Credit to Wingitp for this info.
if (wind_power) (abs(cos(wind_angle))) >= 1 then "it hooks"
Pretty simple.