Releases: nosoop/SM-TFUtils
Releases · nosoop/SM-TFUtils
1.3.2.3
1.3.2.2
1.3.2.1
1.3.2
1.3.1.1
1.3.1
1.3.0
Added
- Native
TF2Util_CanWeaponAttack
, which takes a weapon entity and confirms that it has an owner that is able to attack. Useful in weapon attack hooks, as those may still be called when the player is stunned or using attack bindings on taunts that trigger special animations.- This does not check for ammo or attack times in the future; you still need to check those properties yourself.
- Native
TF2Util_SetPlayerActiveWeapon
, which, as the name describes, attempts to switch the player's active weapon to the one specified. The game verifies that the player can switch to the weapon and that the current one can be holstered, so plugins that hook on those operations will work as intended.
1.2.1.2
Plugin is unchanged.
Fixed
- Gamedata should now be up to date for TF2 version 7695204 (released 2022-12-02).
- For real, this time (?). This should fix assertion failures on Windows and brings
m_hMyWearables
offsets up to date for whoever's still running on 0.5.1 or older. Or if you're one of the resilient few stragglers on SM 1.10 without theCUtlVector
sendprop changes. - Note that there may be invalid entity exceptions raised with this and other plugins — be sure to update your Metamod:Source and SourceMod versions, as the problem is due to TF2 entity-related changes.
- For real, this time (?). This should fix assertion failures on Windows and brings
1.2.1.1
1.2.1
No new features in this update, but there has been work done on the internals. If you're able to test, please do so.
Changed
- Natives now use the
GetNative*
validation wrappers from stocksoup. This deduplicates the native errors thrown and ensures consistency. - This change also adds those validation checks to more natives.