Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow down burst and semi-auto suppressive fire rates #476

Merged
merged 2 commits into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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