View Single Post
larrybrains
Senior Member
Join Date: May 2017
Old 03-26-2021 , 18:57   Re: [L4D2] Airstuck teleportation patch
Reply With Quote #42

Quote:
Originally Posted by Krevik View Post
It may be better to check three things at once:
-is outside world
-is distance made lastly big (ONLY XY coords, to avoid fake reports while jumping with survivor from height especially near 0,0,0 position)
-is close to 0,0,0 when the distance is big
I've been testing a new version of the plugin for a few weeks on my server that basically does what you mentioned. It seems to work about 90% of the time, and the other 10% are situations such as on Parish Map 1 where the 0,0,0 origin is inside the map but above the ground, so the player drops instantly and the plugin may not have time to catch it.

New plugin is attached.

You can exclude maps where you don't want the plugin to run such as c7m3_port by adding a cvar to your server.cfg:

PHP Code:
// Maps where the unteleport jockey plugin is disabled because the (0,0,0) origin is inside the map
jockey_unteleport_disabled c6m3_port //Passing finale
jockey_unteleport_disabled c7m3_port //Sacrifice finale 
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_unteleport_jockey.sp - 80 views - 7.2 KB)
File Type: smx l4d2_unteleport_jockey.smx (8.5 KB, 49 views)
larrybrains is offline