ITEM.Weapon
The weapon item base.
- SharedITEM:BlockGovernment() → ITEMSource ☍
-
Blocks the government from using this weapon.
Returns
- SharedITEM:onDestroy(ply)Source ☍
-
onDestroyhook/override for this item base.Parameters
- plyPlayer
- SharedITEM:onDrop(ply, pos)Source ☍
-
onDrophook/override for this item base.Parameters
- SharedITEM:onGive(ply, amt, to)Source ☍
-
onGivehook/override for this item base.Parameters
- SharedITEM:onUse(ply) → booleanSource ☍
-
onUsehook/override for this item base.Parameters
- plyPlayer
Returns
- boolean
- SharedITEM:postUse(ply, old, new) → booleanSource ☍
-
postUsehook/override for this item base.Parameters
- plyPlayer
- oldstring?
- newstring?
Returns
- boolean
- SharedITEM:preUse(ply, old) → booleanSource ☍
-
preUsehook/override for this item base.Parameters
- plyPlayer
- oldstring?
Returns
- boolean
- SharedITEM:uponLoad()Source ☍
-
uponLoadhook/override for this item base.
- SharedITEM.ammoSource ☍
- SharedITEM.ammoSource ☍
- SharedITEM.f1infoSource ☍
- SharedITEM.f1infoSource ☍
- SharedITEM.SetAmmoSource ☍
-
Sets the type of ammo this weapon uses. If this is not called, this is attempted to be inferred from the weapon type.
- SharedITEM.SetWeaponTypeSource ☍
-
Sets the type of weapon this is.