Skip to content

Commit

Permalink
SimpleCoil 1.9 and fix recoil for 3 shot burst on rifle
Browse files Browse the repository at this point in the history
Change recoil strength for the rifle in 3 shot burst mode so that
the rifle recoils exactly 3 times. Previously, part of a fourth
recoil could be felt on the rifle.
  • Loading branch information
Dees-Troy committed May 17, 2018
1 parent 8431547 commit b04e7b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.simplecoil.simplecoil"
minSdkVersion 21
targetSdkVersion 26
versionCode 9
versionName "1.8"
versionCode 10
versionName "1.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ private void setShotMode(int shotMode) {
config[2] = (byte)0x09;
config[7] = (byte)0xFF;
config[8] = (byte)0xFF;
config[9] = (byte)0x80;
config[9] = (byte)0x80; // Recoil strength
config[10] = (byte)0x02;
config[11] = (byte)0x34;
if (shotMode == Globals.SHOT_MODE_SINGLE) {
Expand All @@ -1425,6 +1425,8 @@ private void setShotMode(int shotMode) {
} else if (shotMode == Globals.SHOT_MODE_BURST) {
config[3] = (byte)0x03;
config[4] = (byte)0x03;
if (mBlasterType == BLASTER_TYPE_RIFLE)
config[9] = (byte)0x78; // Reduce recoil strength on the rifle to make 3 shot mode recoil the correct number of times
mCurrentShotMode = Globals.SHOT_MODE_BURST;
mShotModeTV.setText(R.string.shot_mode_burst3);
} else if (shotMode == Globals.SHOT_MODE_FULL_AUTO) {
Expand Down

0 comments on commit b04e7b5

Please sign in to comment.