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

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

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

Postby iPlayer » Tue Feb 02, 2016 4:57 am

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?
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
satoon101
Project Leader
Posts: 2698
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Feb 02, 2016 12:15 pm

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.
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 8 guests