1. Post #1
    alexxx4156's Avatar
    November 2009
    134 Posts
    ok, so I'm making an anti-air gun that compensates for bullet travel time. does anyone know the exact sample rate for a wire delta chip?

  2. Post #2
    Quidsy the Squidsy's Avatar
    February 2009
    275 Posts
    Every game tick? I'm not really sure...

  3. Post #3
    PacX's Avatar
    March 2009
    612 Posts
    It's the difference of a value from one tick to another.
    Reply With Quote Edit / Delete Reply Denmark Show Events Agree Agree x 1 (list)

  4. Post #4
    StreetFight's Avatar
    May 2008
    121 Posts
    Depends on the server

  5. Post #5
    PacX's Avatar
    March 2009
    612 Posts
    Depends on the server
    Tickrate depends on the server, delta chip is still the same:

    The difference of a value from one tick to another.
    Reply With Quote Edit / Delete Reply Denmark Show Events Agree Agree x 1 (list)

  6. Post #6
    Hunta's Avatar
    March 2007
    907 Posts
    not sure why you need a delta chip.

  7. Post #7
    I'm dumb! You don't have an excuse!
    MacTrekkie's Avatar
    July 2009
    5,485 Posts
    TargetVector = Target:pos() + (Target:pos():distance(entity():pos()) / PROJECTILESPEED * Target:vel())

  8. Post #8
    alexxx4156's Avatar
    November 2009
    134 Posts
    ok mac, thanks? just asking how do you find the actual world time of the tickrate

  9. Post #9
    Tibbles!'s Avatar
    April 2009
    388 Posts
    IIRC all servers have tick rates defaulted to 66.666667

  10. Post #10
    I'm dumb! You don't have an excuse!
    MacTrekkie's Avatar
    July 2009
    5,485 Posts
    ok mac, thanks? just asking how do you find the actual world time of the tickrate
    I was giving you a formula for lead aiming so you dont have to use a delta gate. Sheesh.

  11. Post #11
    Lyinginbedmon's Avatar
    March 2009
    184 Posts
    Code:
    @outputs TickRate
    @persist N
    if(first()){
        N=curtime() #Server time in seconds
        runOnTick(1) #Run chip every server tick
    }
    else{
        N=curtime()-N #Difference in time between ticks
        TickRate=1/N #Number of ticks per second (tickrate)
        
        runOnTick(0) #Cease running chip
    }
    That should report the server tick rate mathematically.

  12. Post #12
    alexxx4156's Avatar
    November 2009
    134 Posts
    I was giving you a formula for lead aiming so you dont have to use a delta gate. Sheesh.
    I know, I was really saying thanks. lol

  13. Post #13
    I'm dumb! You don't have an excuse!
    MacTrekkie's Avatar
    July 2009
    5,485 Posts
    I know, I was really saying thanks. lol
    ooh, ok!

  14. Post #14
    alexxx4156's Avatar
    November 2009
    134 Posts
    :)