Skip to content

Releases: nosoop/SM-TFUtils

0.16.0

10 Mar 10:29
Compare
Choose a tag to compare

Added

  • Natives TF2Util_GetPlayerObject and TF2Util_GetPlayerObjectCount to iterate over a given player's buildings.

0.15.0

09 Jan 07:07
Compare
Choose a tag to compare

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

22 Nov 14:46
Compare
Choose a tag to compare

This release only changes gamedata. Plugin version is unchanged; it's still 0.14.1.

Fixed

  • Corrected Linux vtable offset for CBaseEntity::GetMaxHealth. Sorry about that!

0.14.1

18 Nov 15:16
Compare
Choose a tag to compare

Fixed

  • TF2Util_EquipPlayerWearable will now throw an error instead of crashing when a plugin attempts to equip an entity that hasn't been spawned.

0.14.0

15 Nov 18:09
Compare
Choose a tag to compare

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

01 Sep 10:06
Compare
Choose a tag to compare

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 to TF2Util_GetPlayerMaxHealthBoost to be more in line with its true functionality. The TF2Util_GetPlayerMaxHealth identifier has been marked as deprecated as a result. See #1.

0.12.0

16 Apr 13:44
Compare
Choose a tag to compare

⚠️ Note: Packaged gamedata is not up-to-date as of 2021-06-22. Please download it from the repo.

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

18 Mar 17:10
Compare
Choose a tag to compare

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.

0.10.0

14 Feb 05:15
Compare
Choose a tag to compare

Added

  • Native TF2Util_IsPointInRespawnRoom, which checks if the given point (and optional entity) is touching or inside an active respawn room. This also optionally performs team-related checks.

0.9.0

03 Feb 14:15
Compare
Choose a tag to compare

Added

  • Native TF2Util_GetPlayerShootPosition, which returns a float[3] containing the shot position from a player.