• Delta chip
    13 replies, posted
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?
Every game tick? I'm not really sure...
It's the difference of a value from one tick to another.
Depends on the server
[QUOTE=StreetFight;21353219]Depends on the server[/QUOTE] Tickrate depends on the server, delta chip is still the same: The difference of a value from one tick to another.
not sure why you need a delta chip.
TargetVector = Target:pos() + (Target:pos():distance(entity():pos()) / PROJECTILESPEED * Target:vel())
ok mac, thanks? just asking how do you find the actual world time of the tickrate
IIRC all servers have tick rates defaulted to 66.666667
[QUOTE=alexxx4156;21430444]ok mac, thanks? just asking how do you find the actual world time of the tickrate[/QUOTE] I was giving you a formula for lead aiming so you dont have to use a delta gate. Sheesh.
[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 }[/code]That should report the server tick rate mathematically.
[QUOTE=MacTrekkie;21435931]I was giving you a formula for lead aiming so you dont have to use a delta gate. Sheesh.[/QUOTE] I know, I was really saying thanks. lol
[QUOTE=alexxx4156;21455154]I know, I was really saying thanks. lol[/QUOTE] ooh, ok!
:)
Sorry, you need to Log In to post a reply to this thread.