Server-side plugin wrappers for weapon related functions.
More...
Server-side plugin wrappers for weapon related functions.
◆ isWeaponClipOnly()
bool isWeaponClipOnly |
( |
string |
weaponDef | ) |
|
- Returns
- true/false whether the weapon takes its ammo only through its clip.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ isWeaponDetonationTimed()
bool isWeaponDetonationTimed |
( |
string |
weaponDef | ) |
|
- Returns
- true/false whether or not the weapon creates a timed, fused detonating charge of sorts.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponClass()
- Returns
- The 'class' of weapon. Not spawnclass.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponClipSize()
int weaponClipSize |
( |
string |
weaponDef | ) |
|
- Returns
- The delay (in seconds) betwen shots of the specified weapon.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponFireTime()
- Returns
- The delay (in seconds) betwen shots of the specified weapon.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponInventoryType()
- Returns
- How this weapon is stored. Usually "item", unless it's temporary.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponIsSemiAuto()
bool weaponIsSemiAuto |
( |
string |
weaponDef | ) |
|
- Returns
- Whether the weapon is semi automatic.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponMaxAmmo()
int weaponMaxAmmo |
( |
string |
weaponDef | ) |
|
- Returns
- The amount of ammo the weapon can hold in total when it comes to reserve ammo. So this is really returning the max ammo of a given ammo type.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponStartAmmo()
int weaponStartAmmo |
( |
string |
weaponDef | ) |
|
- Returns
- The amount of ammo the specified weapon is meant to start with, when first given to the player. This can be distributed to both clip and reserve ammo types.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
◆ weaponType()
- Returns
- the "attack" type of the weapon.
- Parameters
-
weaponDef | the name of the entityDef that defines the weapon. |
- Returns
- Attack type of the weapon.