d87's idea sounds like it would work for your specific purpose. Mostly.
You see, PLAYER_STARTED_MOVING does not fire on player pitching up/down (nor when turning around nor jumping), it fires ONLY ON changing position on map.
Still, although your autozoom wouldn't fire if you were only "lifting up" vertically (jump key when on a flying mount), it would as soon as you started moving forward (or backwards, or strafing).
|