Sandbox.Game.Weapons
MyGunBase
Assembly: Sandbox.Game.dll
public class MyGunBase: MyDeviceBase
Fields
| Member | Description |
|---|---|
| static AMMO_PER_SHOOT | |
| static DUMMY_KEY_HOLDING | |
| static DUMMY_KEY_MISSILE | |
| static DUMMY_KEY_PROJECTILE | |
| ActiveLoopEffects | |
| m_holdingDummyMatrix |
Events
| Member | Description |
|---|---|
| OnAmmoAmountChanged |
Properties
| Member | Description |
|---|---|
| BackkickForcePerSecond | |
| CurrentAmmo | |
| CurrentAmmoDefinition | |
| CurrentAmmoMagazineDefinition | |
| CurrentAmmoMagazineId | |
| CurrentMagazines | |
| DeviateAngle | |
| DeviateAngleWhileAiming | |
| HasAmmoMagazines | |
| HasDummies | |
| HasIronSightsActive | |
| HasMissileAmmoDefined | |
| HasProjectileAmmoDefined | |
| IsAmmoMissile | |
| IsAmmoProjectile | |
| IsUserControllableGunBlock | |
| LastShootTime | |
| MechanicalDamage | |
| MuzzleFlashLifeSpan | |
| NoAmmoSound | |
| PreShotSound | |
| ReleaseTimeAfterFire | |
| ReloadSound | |
| ReloadTime | |
| SecondarySound | |
| ShootIntervalInMiliseconds | |
| ShootIntervalModifier | |
| ShootSound | |
| ShotsInBurst | |
| SupportReloading | |
| UseDefaultMuzzleFlash | |
| User | |
| WeaponDefinition | |
| WeaponProperties | |
| WorldMatrix | |
| InventoryItemId | Reference to the inventory item that this device originated from. Can be used to update the inventory item (when ammo changes etc...) Inherited from MyDeviceBase |
Constructors
| Member | Description |
|---|---|
| MyGunBase() |
Methods
Inheritance: MyDeviceBase