SA-MP Forums Archive
Question about lag shooting? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about lag shooting? (/showthread.php?tid=503107)



Question about lag shooting? - Dokins - 27.03.2014

Quote:

An optional lag compensation mode improves sync accuracy.

Can someone explain how I can activate this mode and what exactly it does?


Re: Question about lag shooting? - iThePunisher - 27.03.2014

to active it add to server.cfg
shotcompmode 1 or 2 or 0

Setting this to 0 (default) will disable joypad auto-aiming and shooting will be lag compensated. Setting it to 2 will enable 'legacy mode' which will disable lag compensation (meaning players have to lead aim) and joypad auto-aim will be enabled. Setting 1 is for debugging purposes, and only the player's position will be lag compensated, not their rotation.


When lag com is on players cannot use joypad and they get damaged in the body without doing lag shot...
When lagcom is off players need to do lag shot to hit eachother


Re: Question about lag shooting? - Bingo - 27.03.2014

Its a new function added in 0.3z it is like when you turn it off you get lag shoots like in 0.3x.

As you may have seen in some servers (0.3z) There's lagcomp on/off.

When the :-

Lag compensation mode is ON - Lead-Aim is OFF
Lag compensation mode is OFF - Lead-Aim is ON


Re: Question about lag shooting? - Dokins - 27.03.2014

Thanks man!

EDIT: Does this affect server performance?


Re: Question about lag shooting? - jakejohnsonusa - 27.03.2014

It's automatically activated by default.

It improves sync so 'high-pingers' are able to be shot as easy as 'low-pingers'. Without it people with a high ping had to be shot at their actual position when lagging, rather than where they appeared to be on other peoples screen.

EDIT: It does not affect server performance.

"shotcompmode- Setting this to 0 (default) will disable joypad auto-aiming and shooting will be lag compensated. Setting it to 2 will enable 'legacy mode' which will disable lag compensation (meaning players have to lead aim) and joypad auto-aim will be enabled. Setting 1 is for debugging purposes, and only the player's position will be lag compensated, not their rotation"


Re: Question about lag shooting? - Bingo - 27.03.2014

Quote:
Originally Posted by Dokins
Посмотреть сообщение
Thanks man!

EDIT: Does this affect server performance?
Yes, I guess so because it helps players in killing and all etc.