Default dance
Relatively minor update with some new functionality and a couple of deprecations. There is no urgent need to update.
If coming from an older version of the plugin, you will need to update tf2.econ_data.txt
.
If you are on Windows, you are highly recommended to update tf2.econ_data.txt
, regardless of your currently installed plugin version (the gamedata should be backwards compatible with all previous releases).
Added
- Native
TF2Econ_GetItemDefaultLoadoutSlot
, which returns the default loadout slot for player classes that don't quite support the item normally.
Fixed
TF2Econ_TranslateAttributeNameToDefinitionIndex
now only reads off 16 bits of data instead of 32. Attribute indices only use 16 bits of storage. This resolves a seemingly extremely rare issue where there is data in the MSB.
Changed / Deprecated
- The
CEconItemDefinition::m_aiItemSlot
offset entry was finally renamed toCTFItemDefinition::m_aiItemSlot
. We're arguing words at this point, but this was bothering me for a while. The old name will remain functional for backwards compatibility for the time being. - Native
TF2Econ_GetItemSlot
was renamed toTF2Econ_GetItemLoadoutSlot
. There is no change in behavior; this just emphasizes the "loadout slot" concept in an attempt to remove the confusion between weapon slots (used in generic Source game handling) and loadout slots (an exclusively TF2 item schema construct). The old name will still map to the native and will not be removed entirely; this just adds a warning if a plugin is compiled with the newest version of the include file using that function.