Skip to content

Releases: nosoop/SM-TFUtils

1.2.0

12 Aug 16:54
Compare
Choose a tag to compare

Added

  • Native TF2Util_GetPlayerActiveBleedCount, returning the number of bleed effects currently active on the given player.
  • Natives TF2Util_GetPlayerBleedAttacker, TF2Util_GetPlayerBleedWeapon, TF2Util_GetPlayerBleedNextDamageTick, TF2Util_GetPlayerBleedDuration, TF2Util_GetPlayerBleedDamage, TF2Util_GetPlayerBleedCustomDamageType, to access the properties of each active bleed effect on a player.
    • There aren't corresponding setters at the moment since I don't have a use-case for them, but they can be added if there is interest in them.
  • Native TF2Util_MakePlayerBleed, which is a version of SourceMod's TF2_MakeBleed with support for setting those properties.

1.1.0

10 Aug 14:23
Compare
Choose a tag to compare

Added

  • Native TF2Util_IsCustomDamageTypeDOT, which allows plugins to identify custom damage values that come from damage-over-time effects.
    • This is nothing more than a hardcoded list of custom damage types, but the benefit is that all plugins that use this are future-proofed from any future additions to the list.

1.0.0

25 Jul 13:24
Compare
Choose a tag to compare

Version numbers are a social construct

Added

  • Native TF2Util_SetWearableAlwaysValid, which prevents removal of wearables when touching resupply. This is mainly useful for items attached to weapons. (#5)
  • Native TF2Util_GetPlayerLastDamageReceivedTime, which indicates the last time the player was damaged. This is most commonly used in the game to increase the heal rate on players that have been out of combat.
  • ConVar tf2utils_version, solely for metrics tracking.

0.19.1

01 Jul 11:35
Compare
Choose a tag to compare

Added

  • Internal condition data accessors (TF2Util_*PlayerCondition* natives) will use SourceMod 1.11's support for CUtlVector sendprop offsets whenever possible, falling back to gamedata on 1.10.

Fixed

  • TF2Utils_EquipPlayerWearable no longer reports an assertion failure when an entity reference is provided; regression was introduced when the assertion was added in f9b6ab9.

0.19.0.2

22 Jun 02:35
Compare
Choose a tag to compare

This release brings the gamedata up to date with the changes in the 2022-06-22 patch.

0.19.0.1

18 Jun 12:24
Compare
Choose a tag to compare

Optional release; there is no urgent need to upgrade.

Changed

  • The plugin now fails-fast on initial load if any signatures are invalid, instead of causing invalid handle errors when something calls in at runtime.

0.19.0

02 Jun 04:54
Compare
Choose a tag to compare

Added

  • Native TF2Util_GetPlayerFromSharedAddress, which takes the address of a CTFPlayerShared instance and returns its associated player. This moves the player conversion responsibilities from various plugins that detoured CTFPlayerShared member functions to this library.

0.18.0.1

30 May 18:40
Compare
Choose a tag to compare

Changed

  • Gamedata for offsetof(CTFPlayer::m_aObjects) now uses a function that is less likely to be stomped on by detours. (#4)

0.18.0

19 May 17:04
Compare
Choose a tag to compare

Added

  • Native TF2Util_IsPlayerImmuneToPushback, which returns true if the player is immune to pushback effects. Aside from TF_COND_MEGAHEAL, the game also checks for spunup_push_force_immunity. This native is provided to ensure future-proofing if other checks are added.
  • Native TF2Util_IgnitePlayer, which is a drop-in replacement for TF2_IgnitePlayer that also supports the weapon parameter.

Fixed

  • Corrected array parameter declaration for TF2Util_IsPointInRespawnRoom native, allowing it to be compiled in SourceMod 1.11 (#3).

0.17.0 (Prepare to Die™ Edition)

16 Mar 06:35
Compare
Choose a tag to compare

Added

  • Natives TF2Util_GetPlayerRespawnTimeOverride and TF2Util_SetPlayerRespawnTimeOverride, allowing plugins to take advantage of the game's built in respawn time-modifying functionality.