WeaponConfig
Provides properties to customize the functionality of a weapon.
Properties
reloadTime
Time required to reload ammo (in seconds).
- Default: 1
- Min: 0.1
- Max: 10
rate
Minimum time between shots (in seconds).
- Default: 0.3
- Min: 0.1
- Max: 100
clip
Quantity of rounds that can be fired before reloading.
- Default: 7
- Min: 1
- Max: 999999
ammo
Total quantity of rounds that can be fired.
- Default: 100
- Min: 1
- Max: 999999
attackSpeed
Controls the swiftness of your melee strikes. Higher attack speed means faster attacks.
- Default: 1
- Min: 0.1
- Max: 4
blockDamage
Reduces the amount of damage you take from attacks.
- Default: 5
- Min: 0
- Max: 3.402823E+38
blockImpulse
Decreases the force of enemy blows, making it harder for them to knock you back.
- Default: 0
- Min: 0
- Max: 100
infiniteAmmo
Indicates whether the weapon has unlimited ammo. If true, the weapon will never run out of ammo.
- Default: false
automatic
Indicates whether the weapon fires automatically.
- Default: true