]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Apply some math to only fire the (rounded) fraction of clip_load divided by burst_ammo.
authorDavid Knapp <mazecraze96@gmail.com>
Fri, 19 Jul 2019 23:11:41 +0000 (19:11 -0400)
committerDavid Knapp <mazecraze96@gmail.com>
Fri, 19 Jul 2019 23:11:41 +0000 (19:11 -0400)
commit22940c9052680d1c4e177a316f7db0aa8738fa41
treebcfaf742b9dd7b3c951482eefbb5acbb238bbafb
parenta22adaa8d34e90ff345aa85b1ef6efcc1b670c56
Apply some math to only fire the (rounded) fraction of clip_load divided by burst_ammo.

This means if each burst costs 3 rounds, fires 10, and there's only 2 left,
it'll only fire 6 rounds.
qcsrc/common/weapons/weapon/machinegun.qc