Plugin Info:
|
Modification: Team Fortress Classic
Category: Gameplay
|
Junior Member
|
12-29-2010
, 11:59
Lagless soldier rockets for TFC
|
#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.
Last edited by wirehead; 04-15-2011 at 04:02.
|
|
|
|