View Single Post
Author Message
EHG
Senior Member
Join Date: May 2009
Location: 127.0.0.1
Old 04-24-2011 , 05:43   [TF2] Double Regen in Spawn (Invisible Hat Fix)
Reply With Quote #1

Description:
With the Hatless Update valve introduced some changes to the item system. A new bug exists where a players equipped item is invisible until a second regen/respawn. This plugin fixes that by making the player regen a second time if he is in spawn and has just changed his inventory.

Cvars:
sm_DoubleRegen_delay "0.2" //Delay between the original regen and second.

Dependencies:
sdkhooks2 for hooking the spawn room trigger on touch.
http://forums.alliedmods.net/showthread.php?t=106748

Changelog
1.1 - fixed a typo in cvar
1.0 - release
Attached Files
File Type: sp Get Plugin or Get Source (DoubleRegen.sp - 445 views - 2.5 KB)
File Type: smx DoubleRegen.smx (3.4 KB, 306 views)

Last edited by EHG; 03-01-2012 at 11:49.
EHG is offline