Skip to content

Commit 30614e4

Browse files
committed
Updated documentation of WeaponMixin
Added WeaponMixin to the wiki
1 parent 9c1f6b2 commit 30614e4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

addons/source-python/docs/source-python/source/developing/modules/weapons.entity.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ weapons.entity module
55
:members:
66
:undoc-members:
77
:show-inheritance:
8+
9+
.. autoclass:: _weapons._entity.WeaponMixin
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

src/core/modules/weapons/weapons_entity_wrap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ void export_weapon_entity(scope _entity)
133133
&WeaponMixin::GetPrimaryAmmoCount,
134134
&WeaponMixin::SetPrimaryAmmoCount,
135135
"Get/set the weapons's primary ammo count.\n\n"
136+
".. note:: Only available in CS:GO.\n\n"
136137
":rtype: int");
137138

138139
_WeaponMixin.add_property(
139140
"secondary_ammo_count",
140141
&WeaponMixin::GetSecondaryAmmoCount,
141142
&WeaponMixin::SetSecondaryAmmoCount,
142143
"Get/set the weapons's secondary ammo count.\n\n"
144+
".. note:: Only available in CS:GO.\n\n"
143145
":rtype: int");
144146

145147

0 commit comments

Comments
 (0)