Switching from minigun while revved up causing slowdown
Code calls SetEntPropEnt(client, Prop_Send, "m_hActiveWeapon", other); all the time, since TF2Util_SetPlayerActiveWeapon may not switch weapons sometimes, so it acts as a fallback. At least
TF2Util_SetPlayerActiveWeapon always calls the necessary weapon switching hooks (so I guess it works similar to use %s, without needing classnames and other overheads applied).
Fixes:
use %s
doesn't always permit that)Code calls
SetEntPropEnt(client, Prop_Send, "m_hActiveWeapon", other);
all the time, sinceTF2Util_SetPlayerActiveWeapon
may not switch weapons sometimes, so it acts as a fallback. At leastTF2Util_SetPlayerActiveWeapon
always calls the necessary weapon switching hooks (so I guess it works similar touse %s
, without needing classnames and other overheads applied).This should fix https://github.com/Batfoxkid/Freak-Fortress-2-Rewrite/issues/141