Page 1 of 1

Is it just me or weapons.instance.WeaponClass does not provide 'cost' in cstrike?

Posted: Tue Feb 02, 2016 4:57 am
by iPlayer
Nor does it allow direct access to its INI properties. Say, you iter over weapon classes through

Syntax: Select all

WeaponClassIter('primary')

And there's no way to access weapon price?

Or am I missing something?

Posted: Tue Feb 02, 2016 12:15 pm
by satoon101
We never fully added that. If I remember correctly, when I was adding the cost to the data files, I discovered that there were multiple weapons in CS:GO that used the same entity classname. We still haven't updated our system to handle these extra weapoms. Adding the cost to the WeaponClass objects would be easy enough of a change, though.

It was also around that time that we added the weapon scripts functionality, which holds much more information than our data. So, we could even go that route to store info per each weapon.