Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server setting => g_antilag ?

#1
Can anyone explain this g_antilag server feature to me?

g_antilag 2 // 0 to disable the antilag feature, 1 and 2 use different methods

What are options 1 and 2?
Reply

#2
Where did you get that line from? My defaultXonotic.cfg has this to say:
set g_antilag 2 "AntiLag (0 = no AntiLag, 1 = verified client side hit scan, 2 = server side hit scan in the past, 3 = unverified client side hit scan)"

I think that's pretty self-descriptive. If you want details on the implementation, read the sources Wink It's in cl_weaponsystem.qc and g_subs.qc
Reply

#3
That line is from the server.cfg that is shipped with the game. Maybe the description from defaultXonotic.cfg should be copied to server.cfg, you would sooner need it there I think.
"Yes, there was a spambot some time ago on these forums." - aa
Reply

#4
Yes, this is from server.cfg. Much more detail should be added there... Yes, I would be happy to add a bunch in a few weeks
@Mr. Bougo - Thanks for the reply. Unfortunately, I'm still at a loss as to what you are trying to explain here. As for specifying the sources, I'm not a programmer.

????
set g_antilag 2 "AntiLag (0 = no AntiLag, 1 = verified client side hit scan, 2 = server side hit scan in the past, 3 = unverified client side hit scan)

Should the average user have to understand C to configure the game or a server?
Reply

#5
It's QC. Not extremely hard to read but I won't pressure you. Antilag 3 asks the client what entity it was pointing at when shooting and trusts the client not to lie. Bad, because it makes cheating possible.

The other two, I'm not really sure. Stick with the defaults I'd say.
Reply

#6
Unless you have a good reason to, dont change this. It defines how the server tries to compensate for lag with hitscan weapons.
method 2, the default, keeps records of where each client was X steps into the past, and can thus correctly hit them in the past with inst-hit weapons. The other methods are there for completeness, and its not recommended to change this. If you have issues with antilag, its better that you report them so we can fix it.
Reply

#7
Thank you all. I got it now! =)
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Server does not start saddesad 2 221 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 226 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 849 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  Docker Xonotic Dedicated Server ich777 15 3,159 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,558 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 579 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 941 08-19-2020, 10:36 PM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 2,430 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,482 07-22-2020, 04:42 AM
Last Post: Kotangens
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 683 06-01-2020, 07:11 AM
Last Post: Jewel

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-