Skip to content

Commit

Permalink
Slow down burst and semi-auto suppressive fire rates (#476)
Browse files Browse the repository at this point in the history
* Slow suppressive fire rates down

* Increase randomness
  • Loading branch information
bovine3dom authored and CreepPork committed Apr 4, 2019
1 parent 6f6f609 commit 53d2f74
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ if (_fireModeIndex == 3) then
_gunner setUnitPos (["DOWN","MIDDLE","UP"] select _stanceIndex);
// select muzzle and the corresponding turret
// get fire mode parameters
private _params = [[10,0],[3,0.7],[1,0.9],[10,0]] select _fireModeIndex;
// todo: make this configurable from the gui
private _params = [[10,0],[3,3],[1,3],[10,0]] select _fireModeIndex;
_params params ["_repeatFireCount", "_ceaseFireTime"];
// move gunner to a new group
private _new_group = createGroup (side _gunner);
Expand Down Expand Up @@ -298,7 +299,7 @@ if (_fireModeIndex == 3) then
// cease the fire (for semi-auto and burst)
if (_ceaseFireTime > 0) then
{
sleep random [_ceaseFireTime-0.3,_ceaseFireTime,_ceaseFireTime+0.3];
sleep random [_ceaseFireTime-1,_ceaseFireTime,_ceaseFireTime+1];
};
if (not isNull _vehicle) then
{
Expand Down

0 comments on commit 53d2f74

Please sign in to comment.