![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
Weapon library.
Public Member Functions | |
| bool | IsValid (entity weaponRef=__NULL__) |
| Returns whether this entity reference to a weapon is still valid. | |
| string | GetTitle (entity weaponRef=__NULL__) |
| Returns the title of the weapon specified. | |
| int | GetSlot (entity weaponRef=__NULL__) |
| Returns the slot number of the weapon specified. | |
| int | GetSlotPos (entity weaponRef=__NULL__) |
| Returns if the slot position of the weapon specified. | |
| string | GetIcon (entity weaponRef=__NULL__) |
| Returns the inventory icons of the weapon specified. | |
| string | GetSelectedIcon (entity weaponRef=__NULL__) |
| Returns the selected variant inventory icons of the weapon specified. | |
| int | GetAmmo1 (entity weaponRef=__NULL__) |
| Returns if the current/active weapons present reserve ammo. | |
| int | GetAmmo2 (entity weaponRef=__NULL__) |
| Returns if the current/active weapons present reserve ammo, but for the second ammo type. | |
| int | GetClip (entity weaponRef=__NULL__) |
| Returns if the current/active weapons present clip/magazine size. | |
| int | GetClipSize (entity weaponRef=__NULL__) |
| Returns if the current/active weapons maximum clip/magazine size. | |
| int | MaxAmmo (entity weaponRef=__NULL__) |
| Returns if the maximum reserve ammo. | |
| bool | UsesSecondaryAmmo (entity weaponRef=__NULL__) |
| Returns if the current/active weapon item in the player's inventory makes use of a secondary ammo type. | |
| bool | AmmoRequired (entity weaponRef=__NULL__) |
| Returns if the current/active weapon item in the player's inventory requires ammo. | |
| entity | GetActiveWeapon (void) |
| Returns the current/active weapon item in the player's inventory. | |
| entity | GetFirstWeaponInInventory (void) |
| Returns the first weapon item in the player's inventory. | |
| entity | GetLastWeaponInInventory (void) |
| Returns the last weapon item in the player's inventory. | |
| entity | GetNextWeaponRelativeTo (entity) |
| Returns the weapon that comes after (in the player's inventory) the input weapon. | |
| entity | GetPreviousWeaponRelativeTo (entity playerWeapon) |
| Returns the weapon that comes before (in the player's inventory) the input weapon. | |
| void | SelectWeapon (entity) |
| Attempts to make the player switch to the specified weapon reference. | |
| bool weaponAPI_t::AmmoRequired | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapon item in the player's inventory requires ammo.
| entity weaponAPI_t::GetActiveWeapon | ( | void | ) |
Returns the current/active weapon item in the player's inventory.
| int weaponAPI_t::GetAmmo1 | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapons present reserve ammo.
| int weaponAPI_t::GetAmmo2 | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapons present reserve ammo, but for the second ammo type.
| int weaponAPI_t::GetClip | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapons present clip/magazine size.
| int weaponAPI_t::GetClipSize | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapons maximum clip/magazine size.
| entity weaponAPI_t::GetFirstWeaponInInventory | ( | void | ) |
Returns the first weapon item in the player's inventory.
| string weaponAPI_t::GetIcon | ( | entity | weaponRef = __NULL__ | ) |
Returns the inventory icons of the weapon specified.
| weaponRef | is the weapon entity to reference |
| entity weaponAPI_t::GetLastWeaponInInventory | ( | void | ) |
Returns the last weapon item in the player's inventory.
| entity weaponAPI_t::GetNextWeaponRelativeTo | ( | entity | ) |
Returns the weapon that comes after (in the player's inventory) the input weapon.
| playerWeapon | the weapon entity of the player. |
| entity weaponAPI_t::GetPreviousWeaponRelativeTo | ( | entity | playerWeapon | ) |
Returns the weapon that comes before (in the player's inventory) the input weapon.
| playerWeapon | the weapon entity of the player. |
| string weaponAPI_t::GetSelectedIcon | ( | entity | weaponRef = __NULL__ | ) |
Returns the selected variant inventory icons of the weapon specified.
| weaponRef | is the weapon entity to reference |
| int weaponAPI_t::GetSlot | ( | entity | weaponRef = __NULL__ | ) |
Returns the slot number of the weapon specified.
| weaponRef | is the weapon entity to reference |
| int weaponAPI_t::GetSlotPos | ( | entity | weaponRef = __NULL__ | ) |
Returns if the slot position of the weapon specified.
| weaponRef | is the weapon entity to reference |
| string weaponAPI_t::GetTitle | ( | entity | weaponRef = __NULL__ | ) |
Returns the title of the weapon specified.
| weaponRef | is the weapon entity to reference |
| bool weaponAPI_t::IsValid | ( | entity | weaponRef = __NULL__ | ) |
Returns whether this entity reference to a weapon is still valid.
| weaponRef | is the weapon entity to reference |
| int weaponAPI_t::MaxAmmo | ( | entity | weaponRef = __NULL__ | ) |
Returns if the maximum reserve ammo.
| void weaponAPI_t::SelectWeapon | ( | entity | ) |
Attempts to make the player switch to the specified weapon reference.
| weaponRef | is the weapon entity to switch to. |
| bool weaponAPI_t::UsesSecondaryAmmo | ( | entity | weaponRef = __NULL__ | ) |
Returns if the current/active weapon item in the player's inventory makes use of a secondary ammo type.