Releases: nosoop/SM-TFUtils
Releases · nosoop/SM-TFUtils
0.16.0
0.15.0
Added
- Native
TF2Util_GetPlayerHealer
, which returns a healer entity in the player's healer list. (This provides the same functionality as Pelipoika's snippet, but as a native for future-proofing reasons.)
0.14.1.1
0.14.1
0.14.0
Gamedata provided here is up-to-date for the 2021-11-16 update.
Added
- Native
TF2Util_GetConditionName
, which returns a condition name based on its index. - Stock function
TF2Util_GetLastCondition
, which returns the last valid condition, for those instances when you need to iterate over them all. - Build tooling; now available on the repository, and generate builds on published releases.
Changed
TF2Util_EquipPlayerWearable
now runs an assertion to make sure that the wearable was actually equipped. This should prevent quiet issues with outdated gamedata.
0.13.0
Added
- Native
TF2Util_GetEntityMaxHealth
, which is used to retrieve an entity's maximum health (on players, this excludes overheal). This can be used on any valid entity.
Changed
- Native
TF2Util_GetPlayerMaxHealth
was renamed toTF2Util_GetPlayerMaxHealthBoost
to be more in line with its true functionality. TheTF2Util_GetPlayerMaxHealth
identifier has been marked as deprecated as a result. See #1.
0.12.0
Added
- Native
TF2Util_GetConditionCount
, which returns the number of conditions currently available in the game. This is read from the game, so it should remain current. - Natives
TF2Util_GetPlayerConditionDuration
/TF2Util_SetPlayerConditionDuration
, which accesses the remaining time on a player condition until it expires. - Natives
TF2Util_GetPlayerConditionProvider
/TF2Util_SetPlayerConditionProvider
, which accesses the entity providing a given player condition. - Natives
TF2Util_GetPlayerBurnDuration
/TF2Util_SetPlayerBurnDuration
, which accesses the remaining burn time on a player.
0.11.0
Added
- Native
TF2Util_GetPlayerLoadoutEntity
, to get the entity associated with a player's loadout slot. - Native
TF2Util_IsEntityWearable
, to check if an entity is a wearable item. - Native
TF2Util_EquipPlayerWearable
, to attach a wearable entity onto a player. This does not fix visibility of wearables.
Observant developers will notice that these natives are duplicates of the ones in sourcemod-tf2wearables. While I'll still maintain that repository with regards to game updates and having both installed will not cause conflicts, the intent is to provide a single solution and reduce dependencies if you don't happen need the enum typing or stock functions.