Releases: nosoop/SM-TFUtils
Releases · nosoop/SM-TFUtils
1.2.0
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'sTF2_MakeBleed
with support for setting those properties.
1.1.0
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
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
Added
- Internal condition data accessors (
TF2Util_*PlayerCondition*
natives) will use SourceMod 1.11's support forCUtlVector
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
This release brings the gamedata up to date with the changes in the 2022-06-22 patch.
0.19.0.1
0.19.0
Added
- Native
TF2Util_GetPlayerFromSharedAddress
, which takes the address of aCTFPlayerShared
instance and returns its associated player. This moves the player conversion responsibilities from various plugins that detouredCTFPlayerShared
member functions to this library.
0.18.0.1
0.18.0
Added
- Native
TF2Util_IsPlayerImmuneToPushback
, which returns true if the player is immune to pushback effects. Aside fromTF_COND_MEGAHEAL
, the game also checks forspunup_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 forTF2_IgnitePlayer
that also supports theweapon
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)
Added
- Natives
TF2Util_GetPlayerRespawnTimeOverride
andTF2Util_SetPlayerRespawnTimeOverride
, allowing plugins to take advantage of the game's built in respawn time-modifying functionality.