Page 2 of 2

Re: Two ways to give a weapon + something about CS:GO weapons

Posted: Thu Nov 02, 2017 9:05 am
by battleweaver
Tested new build. Works correctly.
Thank you!

And i would like to continue the discussion about item IDs.
There is parameter m_AttributeManager.m_Item.m_iItemDefinitionIndex, which stores economy ID of an item. In comparison with traditional weapon ID, economy ID is always unique. The issue I encountered with this approach: golden knife does not have economy ID.

Re: Two ways to give a weapon + something about CS:GO weapons

Posted: Thu Nov 02, 2017 1:18 pm
by L'In20Cible
I don't know about the IDs, but just thought I would mention that you can directly use Weapon.item_definition_index. Also, I just noticed that you was printing __dict__. However, if you want to print the dynamic attributes of the entity you must use dir(weapon).