Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

zoom scope flicker

by Vet · 2007-12-24 · 3 replies · 768 views · 30 downloads

Read the thread (4 posts)

From the first post

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?

Files

dod_zoomscope_v01.sma Plugin Source 2 KB 30 dl Download Compile

The thread

All 4 posts from 2 people on zoom scope flicker, kept as they were written.

Vet
started this thread
Posts: 229
Threads: 24
Joined: Oct 2006
12-24-2007, 11:27 AM #1

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]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
12-24-2007, 08:44 PM #2

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)nnTo 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
started this thread
Posts: 229
Threads: 24
Joined: Oct 2006
12-24-2007, 08:55 PM #3

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
started this thread
Posts: 229
Threads: 24
Joined: Oct 2006
12-25-2007, 07:38 PM #4

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.

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC