-
Notifications
You must be signed in to change notification settings - Fork 0
ADroneWeapon
Ivory edited this page Nov 2, 2024
·
2 revisions
Methodmap wrapping the entity associated with this drone weapon. Weapons have several properties which can be modified at run time to change the weapon behavior.
This handle is automatically closed and freed upon the owning drone being removed.
-
int Ammo
- Ammo currently loaded in this weapon. -
int MaxAmmo
- Maximum ammo which can be loaded in this weapon at once -
bool BottomlessAmmo
- If true, this weapon never needs to reload. -
float FireRate
- The fire rate of this weapon, in rounds per second. -
float Damage
- The damage dealt by this weapon. -
float NextPrimaryAttack
- Next gametime value when this weapon can fire again. -
float Inaccuracy
- Error angle for this weapon upon consecutive attacks. -
float ReloadDelay
- How long this weapon takes to reload. -
STimer ReloadTimer
- Timer used for reloading. -
EWeaponState
State
- Current state of this weapon. -
EWeaponType
Type
- Weapon type. Determines the type of projectile fired by this weapon. -
float TurnRate
- If this weapon uses a model, how quickly it turns towards the player's view angles, in degrees per second. -
float MaxPitch
- Max pitch angle this weapon can fire at, relative to the drone. -
float MaxYaw
- Max yaw angle this weapon can fire at, relative to the drone. -
bool Fixed
- If true, this weapon model does not rotate. -
int ProjPerShot
- Number of projectiles fired by this weapon. Works with bullets and other projectiles.