AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Lagless soldier rockets for TFC (https://forums.alliedmods.net/showthread.php?t=146568)

wirehead 12-29-2010 11:59

Lagless soldier rockets for TFC
 
2 Attachment(s)
Lagless TFC rockets
v1.3

This server plugin evens out the rocket delay for all players under 120 ping, so that the rockets are fired as if the player had 5 ping.

What it does is hook the rocket firing event, measure the player's ping at that time, find the rocket's velocity and project it ahead that many milliseconds, so that the rockets have a more LAN-like feel.

To turn the effect on or off, say "lr" or type it in the console.

Cvars:

lan_rockets: This is for having the effect on or off when a person connects, and is 0 (off) by default.
lr_base_ping: This is the ping to simulate, set to a default of 5.
lr_max_ping: This is the max ping to compensate for, set to a default of 120. You can raise this as high as you want, but 120 is a reasonable cutoff, well before the effect starts to impede gameplay.

You can set these in server.cfg.

To-do:

Fix the rocket trail, since it stops short of the target (requires knowledge of how to trigger a TFC rocket fire event at an origin instead of teleporting the player-fired rocket there; and I can't recreate that trail convincingly with a TE_BEAMFOLLOW either.)

Changelist:

v1.0-1.1 Test versions.

v1.2: First release candidate, added comments.

v1.3: Added a cvar for default on/off, and fixed the rocket-skipping issue, so players can bounce around properly with it.

Arkshine 12-29-2010 12:34

Re: Lagless soldier rockets for TFC
 
Attach the plugin, don't use code bbcode.

wirehead 12-29-2010 12:51

Re: Lagless soldier rockets for TFC
 
Thanks.

Vechta 12-30-2010 07:00

Re: Ping-compensated soldier rockets for TFC
 
Still don't understand what it does..

wirehead 12-30-2010 17:34

Re: Ping-compensated soldier rockets for TFC
 
I'll write up diagrams and add a revision that has fixed rocket trails later today.

wirehead 12-30-2010 22:58

Re: Ping-compensated soldier rockets for TFC
 
Edit: Removed lengthy explanation. First post should suffice.

Also that rocket trail issue ended up being over my head.

wirehead 04-14-2011 20:07

Re: Lagless rockets for TFC
 
I have nothing more to add to this plugin.

It seems stable on a server, so hopefully it can be approved.

aLaDiN 04-15-2011 05:47

Re: Lagless soldier rockets for TFC
 
Plugin is good , but why you wrote triple post ? You should get a warn , i reported you ...

Seta00 04-15-2011 06:38

Re: Lagless soldier rockets for TFC
 
Quote:

Originally Posted by aLaDiN (Post 1450112)
Plugin is good , but why you wrote triple post ? You should get a warn , i reported you ...

Call the cops, he triple posted!

wirehead 04-15-2011 19:01

Re: Lagless soldier rockets for TFC
 
Quote:

Originally Posted by aLaDiN (Post 1450112)
Plugin is good , but why you wrote triple post ? You should get a warn , i reported you ...

Post #6 and #7 are three months apart ...


All times are GMT -4. The time now is 13:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.