This plugin fixes a lot of bugs for Team Fortress Classic since Valve never did. The okapi module is required to use this plugin. Download the okapi bin here:
https://forums.alliedmods.net/showthread.php?t=234986
PHP Code:
/*
* Fixes:
* - #1: Nails that would have been stuck as "ghosts" are now removed.
* - #2: Flags will no longer get stuck in solid objects.
* - #3: Spys can now be infected while feigned. This also prevents the server from crashing due to the infecting/healing feigned spies bug.
* - #4: Spys can no longer quick disguise. This also prevents the server from crashing due to disguising too quickly.
* - #5: The camera entity will no longer break the players view if the player disconnects while using it.
* - #6: Players will no longer stay concussed when they respawn.
* - #7: Opening doors will no longer remove effects from caltrops.
* - #8: The engineer's teleport will no longer take the player to the exit location if the player dies before the teleport has finished.
* - #9: Players can no longer take flags through engineer's teleporters.
* - #10: Players can no longer uncover dead enemy spies.
* - #11: Grenades that are stuck inside of another entity will no longer do too much damage to any entities in its explosion radius.
* - #12: Nail grenades will no longer get stuck in ceilings.
* - #13: Mirv grenade's bomblets will no longer spawn in areas with a solid object between the mirv and bomblet.
* - #14: Grenades that prime immediately before death will no longer follow the player to their spawn if they respawn quick enough.
* - #15: Primed grenades will no longer be wrongly removed by item_tfgoal removal if the player has zero primary or secondary grenades left.
*
* Special thanks:
* - teh ORiON: Contributed towards fixing bug #8.
* - azul: Contributed towards fixing bug #14.
* - azul: Supplied the signatures and code for bug #15.
*
* Changelog:
* - v1.1 - 2018/06/15
* + NOTE: The okapi module is now required. https://forums.alliedmods.net/showthread.php?t=234986
* + Added a fix for grenades following players to spawn (fix #14).
* + Added a fix for primed grenades being wrongly removed by item_tfgoal removal (fix #15).
* + Fixed an issue with the nail bug fix (fix #1).
*
* - v1.0 - 2017/05/15
* + Initial release (fixes #1-13).
*/
Videos showing some of the bugs:
Nails of the same type will no longer collide with each other.
https://www.youtube.com/watch?v=bWvxsXv4Ht4
Spys can now be infected while feigned. This also prevents the server from crashing due to the infecting/healing feigned spies bug.
https://www.youtube.com/watch?v=DnE4ofoCV3o
Spys can no longer quick disguise. This also prevents the server from crashing due to disguising too quickly.
https://www.youtube.com/watch?v=GTYbDMOlYWI
Players will no longer stay concussed when they respawn.
https://www.youtube.com/watch?v=pvaVLTxPCOE
Opening doors will no longer remove effects from caltrops.
https://www.youtube.com/watch?v=b8HCNg14uhA
The engineer's teleport will no longer take the player to the exit location if the player dies before the teleport has finished.
https://www.youtube.com/watch?v=8Neca3QpjD4
Players can no longer take flags through engineer's teleporters.
https://www.youtube.com/watch?v=zg3oHe9w4uk
Players can no longer uncover dead enemy spies.
https://www.youtube.com/watch?v=SVQLcHZ1GB4
Nail grenades will no longer get stuck in ceilings.
Mirv grenade's bomblets will no longer spawn in areas with a solid object between the mirv and bomblet.
https://www.youtube.com/watch?v=pAbTR3cWEVY