PDA

View Full Version : zoom scope flicker


Vet
12-24-2007, 11:27 AM
I've written a plugin to make DOD scopes with zoom magnification (yes, I'm well aware that zooms wern't around in WW11). It all works fine except that whenever the zoom changes, there's a flicker when the zoom is changed. I assume its from the built-in fade routine. Is there a way to prevent this?

Wilson [29th ID]
12-24-2007, 08:44 PM
That's an interesting idea...trying to figure out exactly what's happening. Are you hooking when it zooms out and instead zooming in further, then allowing the 2nd zoom out to actually zoom out? (Like a CS awp or scout)

To stop the flicker, hook the message "Scope" and change the value of its only param. For example, it usually sends like arg 6 or something..change it to arg 1 and it won't flicker (can't remember the numbers but you'll have to test them)

Vet
12-24-2007, 08:55 PM
Ya, I'm hooking the SetFOV message and then setting my own value. It will allow the scope to be a variable zoom on the first (only) click. I wrote a version for CS also and that one doesn't have the flicker problem. So I figured it must be in that fade-in routine. I'll check out the 'Scope' message. May be just what I need. Thanks!

Vet
12-25-2007, 07:38 PM
The Scope message only seemed to trigger upon returning to scoped after reloading the weapon. I'm guessing its something client-side that can't be controlled with my plugin. Bummer.