Raised This Month: $ Target: $400
 0% 

[TF2] Arena Late Spawn Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mikusch
AlliedModders Donor
Join Date: Oct 2019
Location: Germany
Plugin ID:
7904
Plugin Version:
1.1.1
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes players spawning during the round in arena mode
    Old 12-29-2021 , 16:27   [TF2] Arena Late Spawn Fix
    Reply With Quote #1

    As of the 08/07/2022 TF2 update, this plugin is not needed anymore!

    [TF2] Arena Late Spawn Fix

    This plugin fixes an ancient bug that allows players to spawn during a running round in arena mode. It also prevents players from joining a class before joining a team first.

    Unlike the Anti-Arena Latespawn plugin by Batfoxkid, this one fixes the bug properly instead of simply slaying the player if they respawn mid-round.

    See below for an in-depth explanation of the bug.


    Explanation

    The game allows players without a class to instantly respawn after joining one. That functionality has not been disabled in arena mode.
    The instant respawn can be triggered by joining a team during pre-round without joining a class, then joining the same class twice after the round has started and the minimum respawn time has passed. This will instantly respawn the player.

    This could be fixed in game code by Valve adding a check for arena mode in CTFPlayer::ShouldGainInstantSpawn.

    Download | Source Code
    Requires dhooks2 with detour support (included in SM 1.11)
    __________________

    Last edited by Mikusch; 09-10-2022 at 08:57.
    Mikusch is offline
    Zabaniya
    Junior Member
    Join Date: Oct 2020
    Location: Fyrestone
    Old 12-29-2021 , 17:44   Re: [TF2] Arena Latespawn Fix
    Reply With Quote #2

    Lovely. It was about time someone properly fixed this ancient bug. The previous methods would often cause issues especially in gamemodes like Freak Fortress 2 whenever plugins tried to spawn the player for X reason. I was thinking to eventually look into this myself but you beat me to it. Great job!
    Zabaniya is offline
    Mikusch
    AlliedModders Donor
    Join Date: Oct 2019
    Location: Germany
    Old 12-29-2021 , 22:08   Re: [TF2] Arena Late Spawn Fix
    Reply With Quote #3

    I've updated the plugin to also prevent spawning on team "unassigned" by choosing a class before joining a team first, which is apparently another common arena bug/exploit.
    __________________

    Last edited by Mikusch; 12-29-2021 at 22:09.
    Mikusch is offline
    Mr_panica
    Senior Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 12-30-2021 , 11:07   Re: [TF2] Arena Late Spawn Fix
    Reply With Quote #4

    Quote:
    Originally Posted by Zabaniya View Post
    The previous methods would often cause issues especially in gamemodes like Freak Fortress 2 whenever plugins tried to spawn the player for X reason.Great job!
    Was my plugin causing the same problem?
    https://forums.alliedmods.net/showthread.php?p=2722008
    __________________
    Sorry for my English.
    Mr_panica is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 01-07-2022 , 14:03   Re: [TF2] Arena Late Spawn Fix
    Reply With Quote #5

    Both "join_class" and "joinclass" are valid commands btw.

    Thank you so much for this plugin!
    __________________

    Last edited by Chdata; 01-07-2022 at 14:16.
    Chdata is offline
    Mikusch
    AlliedModders Donor
    Join Date: Oct 2019
    Location: Germany
    Old 01-07-2022 , 16:36   Re: [TF2] Arena Late Spawn Fix
    Reply With Quote #6

    Quote:
    Originally Posted by Chdata View Post
    Both "join_class" and "joinclass" are valid commands btw.

    Thank you so much for this plugin!
    Thank you for pointing this out to me, I've updated the plugin accordingly.
    __________________
    Mikusch is offline
    Mikusch
    AlliedModders Donor
    Join Date: Oct 2019
    Location: Germany
    Old 07-08-2022 , 17:39   Re: [TF2] Arena Late Spawn Fix
    Reply With Quote #7

    This isn't needed anymore as of 07/07/2022. Valve properly implemented these fixes into the game. Hurrah!
    __________________
    Mikusch 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 23:44.


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