Skip to content

Commit 4e22e36

Browse files
satoon101Ayuto
authored andcommitted
CS:GO weapons update (#169)
* Added weapons to csgo weapon data that do not have their own entity classnames. Added item_definition_index to all weapons in csgo weapon data to help differentiate between weapons. Changed maxammo for all non-grenade weapons in csgo weapon data to hard code the value instead of using the ConVars. The ConVars seem to no longer work, as changing their values does not affect the reserver ammo for the weapons. * Issue #153. Added the ini ConfigObj to the weapon_manager instance. * Issue #153. Added Weapon.get_weapon_name to the base Weapon class and CS:GO specific. * Issue #153. Added CEconEntity data for CS:GO. * Issue #153. Fixed issue with weapon_knifegg. * Added parent_class to CS:GO weapons that are not members of dumpentityfactories. Fixed name of one CS:GO weapon. * Changed entities.entity to be engine/game specific. Implemented changes to Entity.find and Entity.create for csgo engine. * Fixed setting _item_definition_index values to the basename instead of the classname of the weapons. * Added 'earned' tags for knives that must be earned/purchased. These weapons should never be given to players that have not earned/purchased them as any server doing so could be banned. * Fixed slowness in Entity.find for CS:GO. * Changed Weapon.get_weapon_name() method to Weapon.weapon_name property. * Improved performance of Entity.find for CS:GO. * More speed improvements for Entity.find for CS:GO. * Added return type to documentation
1 parent ba736fb commit 4e22e36

File tree

9 files changed

+1190
-904
lines changed

9 files changed

+1190
-904
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[property]
2+
3+
item_definition_index = m_AttributeManager.m_Item.m_iItemDefinitionIndex

0 commit comments

Comments
 (0)