Batfoxkid / Freak-Fortress-2-Rewrite

The gamemode that's now also a standalone boss maker.
https://forums.alliedmods.net/forumdisplay.php?f=154
GNU General Public License v3.0
19 stars 9 forks source link

Fix switching to previous weapon not working correctly #147

Closed naydef closed 11 months ago

naydef commented 11 months ago

Fixes:

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).

This should fix https://github.com/Batfoxkid/Freak-Fortress-2-Rewrite/issues/141