Skip to content

v1.3.0

Compare
Choose a tag to compare
@markus-wa markus-wa released this 17 Aug 16:23
· 831 commits to master since this release

Deprecation Notices

  • ItemPickup.Weapon has been deprecated, use ItemPickup.WeaponTraceable() instead.
  • ItemEquip.Weapon has been deprecated, use ItemEquip.WeaponPtr instead.
  • ItemDrop.Weapon has been deprecated, use ItemDrop.WeaponPtr instead.
  • RankUpdate.SteamID has been deprecated, use RankUpdate.SteamID32 instead.

New Features / Changes

  • Added GameState.ConVars() which returns a map[string]string of CVar key-value pairs (#97)
  • Added events.ConVarsUpdated which signals that CVars have been changed (#97)
  • Added events.WeaponReload which signals that a player is reloading his weapon (#137)
  • Added Inferno.Owner() which returns the player that threw the fire grenade (#131)
  • Added GameState.GamePhase() which returns the current GamePhase (#136)
  • Added common.EquipmentElementNames() which returns a map[EquipmentElement]string containing weapon names (#135)
  • Added common.GamePhaseNames() which returns a map[GamePhase]string containing the names of the GamePhases (#135)
  • GenericGameEvent will now always be dispatched, regardless of whether there is a custom, corresponding event in the events package or not

Fixes

  • Fixed weapon-ID not being consistent for ItemPickup, ItemEquip & ItemDrop (#119)
  • Fixed Equipment.AmmoReserve never being updated (#133)
  • Delayed dispatching of FireGrenadeStart to the end of the tick so EntityID is useful (#131)
  • Documented that RankUpdate.SteamID contains the 32-bit SteamID (#128)

Contributors

Thanks to @xXxhaxmeister42xXx for the various contributions to this release.