Raised This Month: $7 Target: $400
 1% 

Lagless soldier rockets for TFC


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   Gameplay       
wirehead
Junior Member
Join Date: Dec 2010
Old 12-29-2010 , 11:59   Lagless soldier rockets for TFC
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (laglessrockets_1p2.sma - 1308 views - 6.6 KB)
File Type: sma Get Plugin or Get Source (laglessrockets_1p3.sma - 1230 views - 6.8 KB)

Last edited by wirehead; 04-15-2011 at 04:02.
wirehead is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-29-2010 , 12:34   Re: Lagless soldier rockets for TFC
Reply With Quote #2

Attach the plugin, don't use code bbcode.
__________________
Arkshine is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 12-29-2010 , 12:51   Re: Lagless soldier rockets for TFC
Reply With Quote #3

Thanks.
wirehead is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-30-2010 , 07:00   Re: Ping-compensated soldier rockets for TFC
Reply With Quote #4

Still don't understand what it does..
Vechta is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 12-30-2010 , 17:34   Re: Ping-compensated soldier rockets for TFC
Reply With Quote #5

I'll write up diagrams and add a revision that has fixed rocket trails later today.
wirehead is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 12-30-2010 , 22:58   Re: Ping-compensated soldier rockets for TFC
Reply With Quote #6

Edit: Removed lengthy explanation. First post should suffice.

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

Last edited by wirehead; 04-14-2011 at 01:33.
wirehead is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 04-14-2011 , 20:07   Re: Lagless rockets for TFC
Reply With Quote #7

I have nothing more to add to this plugin.

It seems stable on a server, so hopefully it can be approved.
wirehead is offline
aLaDiN
Member
Join Date: Jan 2011
Location: Bulgarian
Old 04-15-2011 , 05:47   Re: Lagless soldier rockets for TFC
Reply With Quote #8

Plugin is good , but why you wrote triple post ? You should get a warn , i reported you ...
aLaDiN is offline
Send a message via Skype™ to aLaDiN
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 04-15-2011 , 06:38   Re: Lagless soldier rockets for TFC
Reply With Quote #9

Quote:
Originally Posted by aLaDiN View Post
Plugin is good , but why you wrote triple post ? You should get a warn , i reported you ...
Call the cops, he triple posted!
Seta00 is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 04-15-2011 , 19:01   Re: Lagless soldier rockets for TFC
Reply With Quote #10

Quote:
Originally Posted by aLaDiN View Post
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 ...
wirehead is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:56.


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