Gun statistics structure. More...
#include <gun.h>
Public Attributes | |
| float | fireRate |
| Shots per minute. | |
| float | spread_angle |
| Bullet spread in degrees. | |
| int | damage |
| Damage per bullet. | |
| float | bulletLifetime |
| How long bullets exist before despawning. | |
| int | bulletsPerShot |
| Number of bullets fired per shot (>1 only for shotguns) | |
| GunFireMode | fireMode |
| Firing mode (auto or semi) | |
| int | bulletVelocity |
| Velocity of the bullet. | |
| int | ammoConsumption |
| Ammo consumed per shot. | |
Gun statistics structure.
Contains the configuration values that define a gun's capabilities
| int GunStats::ammoConsumption |
Ammo consumed per shot.
| float GunStats::bulletLifetime |
How long bullets exist before despawning.
| int GunStats::bulletsPerShot |
Number of bullets fired per shot (>1 only for shotguns)
| int GunStats::bulletVelocity |
Velocity of the bullet.
| int GunStats::damage |
Damage per bullet.
| GunFireMode GunStats::fireMode |
Firing mode (auto or semi)
| float GunStats::fireRate |
Shots per minute.
| float GunStats::spread_angle |
Bullet spread in degrees.