anyone ever tried...
#9
Not quite; it's dynamic, depending on the amount of time you've been scoped.
#define SCOPESETTLETIME 180
int sniperrifle::dynspread()
{
    if(scoped)
    {
        int scopetime = lastmillis - scoped_since;
        if(scopetime > SCOPESETTLETIME)
            return 1;
        else
            return max((info.spread * (SCOPESETTLETIME - scopetime)) / SCOPESETTLETIME, 1);
    }
    return info.spread;
}
It's not linear, but if you 'wait' 90ms, your spread is halved. If you 'wait' 150ms it's 1/6 the unscoped spread, and if you 'wait' 177ms there's no spread. Obviously, waiting a specific number of milliseconds is tricky. I think my maths is right; please correct me if necessary.
Thanks given by:


Messages In This Thread
anyone ever tried... - by trolled123 - 29 Apr 12, 10:59PM
RE: anyone ever tried... - by MorganKell - 29 Apr 12, 11:10PM
RE: anyone ever tried... - by gambino - 29 Apr 12, 11:57PM
RE: anyone ever tried... - by Nightmare - 30 Apr 12, 01:46AM
RE: anyone ever tried... - by Ronald_Reagan - 30 Apr 12, 01:47AM
RE: anyone ever tried... - by ExodusS - 01 May 12, 02:49PM
RE: anyone ever tried... - by Mr.OpTic - 30 Apr 12, 01:55AM
RE: anyone ever tried... - by M__Stayla - 30 Apr 12, 01:58AM
RE: anyone ever tried... - by jamz - 01 May 12, 09:02PM
RE: anyone ever tried... - by ExodusS - 02 May 12, 11:15AM
RE: anyone ever tried... - by Bloodsport - 03 May 12, 05:39PM
RE: anyone ever tried... - by jamz - 03 May 12, 06:07PM
RE: anyone ever tried... - by VenteX - 02 May 12, 01:25AM
RE: anyone ever tried... - by MykeGregory - 02 May 12, 09:09AM
RE: anyone ever tried... - by Reedie-oH - 02 May 12, 10:03AM
RE: anyone ever tried... - by MykeGregory - 02 May 12, 03:05PM
RE: anyone ever tried... - by TackyMan - 12 May 12, 04:21PM