Author Topic: what is unlaged and how does it work  (Read 7288 times)

blood2.0

  • Guest
what is unlaged and how does it work
« on: November 04, 2007, 08:41:33 pm »
just wondering

sSopris

  • Posts: 221
  • Turrets: +26/-11
what is unlaged and how does it work
« Reply #1 on: November 04, 2007, 09:21:02 pm »
Yeah me too
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

Yarou

  • Posts: 218
  • Turrets: +43/-109
what is unlaged and how does it work
« Reply #2 on: November 04, 2007, 09:54:31 pm »


Currently:
{&}Yarou

Yahoo

  • Posts: 202
  • Turrets: +18/-78
what is unlaged and how does it work
« Reply #3 on: November 04, 2007, 11:18:51 pm »
KEYLOGGER NO CLICK

n00b pl0x

  • Posts: 2412
  • Turrets: +55/-168
what is unlaged and how does it work
« Reply #4 on: November 05, 2007, 03:01:47 am »
OMG WTF Y DIDNT I READ YAHOOS POST BEFORE I CLICKED YAROUS

DAMNIT ALL TO HELL HOW DO I RESTART WINDOWS
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

Yahoo

  • Posts: 202
  • Turrets: +18/-78
what is unlaged and how does it work
« Reply #5 on: November 05, 2007, 03:54:27 am »
/UNBINDALL LOL OMG

Yarou

  • Posts: 218
  • Turrets: +43/-109
what is unlaged and how does it work
« Reply #6 on: November 06, 2007, 05:42:53 pm »
Taken from http://www.ra.is/unlagged/faq.html:
Quote

How does Unlagged work?

Common Answer

Everybody knows that when you play online, it takes a bit for your attacks (or any movement, really) to reach the server. The most annoying part about that is that, with a class of weapons called “hitscan” (in Quake 3, the machinegun, shotgun, lightning gun, and railgun), you have to aim ahead of your targets.

Unlagged compensates for that by:

   1. Remembering where every player has been, back to about a second ago
   2. Doing hit tests against your potential targets based on where you saw them, rather than where they are

If you have a consistent enough connection, the server knows exactly where you saw your target when you pressed the button. That's not too far out: it sent you the information on where to draw them in the first place.

The end result is that you can put your crosshair on your target, fire, and hit.


Technical Answer

Unlagged uses a technique called “backward reconciliation” for hitscan weapons' hit tests. For the duration of a hit test, it moves players to where you saw them when you fired. (It knows because it sent you the player origins in the first place, it saves that information up in a history queue, and your fire command contains a timestamp.) After the hit test, it moves them back.

Moving player entities around like that is perfectly fine, as long as the entities' states are restored exactly, and as long as no code runs which requires players in their correct state while the server is in a backward-reconciled state. Unlagged is very careful about such things, so it doesn't present any problems.


Currently:
{&}Yarou

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
what is unlaged and how does it work
« Reply #7 on: November 06, 2007, 11:48:59 pm »
I think Dustin / Yahoo, n00b pl0x and Yarou are all brothers.

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
duck soup!
« Reply #8 on: November 07, 2007, 01:13:12 am »
Quote from: "Death On Ice"
I think Dustin / Yahoo, n00b pl0x and Yarou are all brothers.



doomagent13

  • Posts: 506
  • Turrets: +18/-18
what is unlaged and how does it work
« Reply #9 on: November 12, 2007, 01:46:34 am »
I'll give it a try:

Unlagged records everyone's location into a "circular" array once every server frame.

When someone fires an unlagged weapon, it shifts everyone back to about where they were when the attacker shot, examines the shot for hit/miss, and then puts everything back where it was

NOTE:
Part of this I am just guessing at, but I have done some looking through it.
The biggest problem is that it does NOT give the target time to react, as they end up appearing to have died in the past. While it could result in deaths being administered maybe upto a second late, a possible solution would be for it to wait the target's ping before actually inflicting the damage.


Heh.
Mostly copied from a different forum.

Lava Croft

  • Guest
what is unlaged and how does it work
« Reply #10 on: November 12, 2007, 03:36:31 am »
Please start posting in the correct section.