wootguy / LagCompensator

Sven Co-op plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LagCompensator

Lag compensation "rewinds" enemies so that you don't have to aim ahead of them to get a hit. The higher your ping, the more noticeable this will be.

Type '.lagc' in console for help.

Demonstration video:
Demo Video

This works only for weapons that shoot bullets or beams. Projectiles and melee weapons are not compensated. Projectiles and melee attacks don't have client-side prediction anyway (there's a delay between clicking and the gun firing, which is equal to your ping).

Custom weapons are also not lag compensated by default. I added support for a few maps (pizza_ya_san1-2, alienshooter_demo, rust), but every custom weapon will need special logic added to this plugin in order to be compensated.

Installation

  1. Download and extract to svencoop_addon
  2. Add this to default_plugins.txt:
	"plugin"
	{
		"name" "LagCompensator"
		"script" "LagCompensator/LagCompensator"
	}

Lag compensation is enabled for everyone by default.

Server impact

  • 1 sprite and 1 sound is precached for the MLG hit comfirmation effect (.lagc x).
  • Potentially heavy CPU usage when lots of players (20-30) are shooting at the same time in a map with lots of monsters (200+).
    • Type .lagc perf to see how much work the plugin is doing. If the info text is colored red and player pings are rising, try temporarily disabling the plugin with .lagc pause/resume.

About

Sven Co-op plugin


Languages

Language:AngelScript 54.8%Language:C++ 44.8%Language:CMake 0.3%Language:Batchfile 0.1%Language:Shell 0.0%